Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Unhappy returns

by tlm (Prior)
on Oct 10, 2005 at 01:33 UTC ( [id://498672]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my @row = map $_->value, @$arr;
    
  2. or download this
    for my $arr ( @results ) {
      ...
    ...
      }
      return;
    }
    
  3. or download this
    sub foo {
      if ( $_[ 0 ] % 3 } {
    ...
    print join( ':', map foo( $_ ), 1..5 ), "\n";
    __END__
    1:2:4:5
    
  4. or download this
    print join( ':', map scalar foo( $_ ), 1..5 ), "\n";
    __END__
    1:2::4:5
    
  5. or download this
    print join( ' ', grep sub { wantarray ? 0 : 1 }, 1..3 ), "\n";
    __END__
    1 2 3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://498672]
Approved by GrandFather
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2024-04-23 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found