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

Re^5: Learning to use fork()

by kroach (Pilgrim)
on Jan 15, 2019 at 14:09 UTC ( [id://1228593]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub sub1 { print "sub1 ran, got args: [@_]\n" }
    sub sub2 { print "sub2 ran, got args: [@_]\n" }
    ...
        sub { sub2('some', 'string') },
    );
    $_->() foreach @refs;
    
  2. or download this
    sub foo { print "Got args: [@_]\n" }
    
    ...
    foreach my $arg_ref (@args) {
        foo(@$arg_ref)
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1228593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-26 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found