Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: One piece of code, two mysteries!

by Anonymous Monk
on Oct 05, 2012 at 06:33 UTC ( #997393=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    async BLOCK;
        "async" creates a thread to execute the block immediately followin
    +g
    ...
        "undef" if the thread terminates *normally*. Otherwise, it returns
        the value of $@ associated with the thread's execution status in i
    +ts
        "eval" context.
    
  2. or download this
    print timedCommand( 3, $cmd, $_ ) || "\$@ $@" for 2, 3, 4; ### LINE B 
    +###
    
  3. or download this
    $ perl huh
    1
    ...
     4
    
    4
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997393]
help
Chatterbox?
[marto]: Corion I've been toying with this as a background task
[marto]: along with the pod for perlmodinstall

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-08-21 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (319 votes). Check out past polls.

    Notices?