Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Variable number of foreach loops (improving performance)

by smls (Friar)
on Dec 11, 2013 at 11:35 UTC ( #1066607=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub multi_foreach(&@) {
      my $code = shift;
    ...
    }
    
    multi_foreach { say join ' ', @_ } \( @a, @b, @c );
    
  2. or download this
    sub multi_foreach(&@) {
      my $code = shift;
    ...
    }
    
    multi_foreach { say join ' ', @_ } \( @a, @b, @c );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-05-25 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?