Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 examining the Monastery: (4)
As of 2016-06-28 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (348 votes). Check out past polls.