Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Re: Re: A Perl aptitude test

by tilly (Archbishop)
on May 13, 2003 at 18:02 UTC ( [id://257853]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (my ($k, $v) = each %foo) {
      ...
    }
    
  2. or download this
    foreach my $k (keys %foo) {
      my $v = $foo{$k};
      ...
    }
    
  3. or download this
    print join ",", map { &{$field_info{$_}{format}}($deal) } @fields;
    print "\n";
    
  4. or download this
    my @field_subs = map {$field_info{$_}{format}} @fields;
    # time passes..
    print join ",", map $_->($deal), @field_subs;
    print "\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-03-28 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found