Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: (Mis)Understanding grep...eq $_ (versus ex-bang-bang)

by grinder (Bishop)
on Feb 24, 2009 at 07:50 UTC ( #745926=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @part = (
        'http://example.net/app',
    ...
        ( $id      ) x!! defined $id,
        ( $submode ) x!! defined $submode,
    );
    
  2. or download this
    my @part = (
        'http://example.net/app',
    ...
        grep( defined($id),      $id      ),
        grep( defined($submode), $submode ),
    );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-12-29 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (186 votes), past polls