Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Algorithm To Select Lines Based On Attributes

by jethro (Monsignor)
on Jan 15, 2009 at 18:00 UTC ( [id://736618]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    return 1 if ($a[2] eq 'n' or $a[4] neq 'x');
    return 0;
    
  2. or download this
    my @return=();
    if ($a[2] eq 'n') { push @return,2; }
    if ($a[2] neq 'x') { push @return,4; }
    return @return;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found