Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^8: in search of a more elegant if then else

by TimToady (Parson)
on Feb 21, 2010 at 03:13 UTC ( #824458=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @filtered = do for $s.comb -> $a, $b {
       [ $a, $b ] if $a ne $b;
    }
    
  2. or download this
    my @filtered = gather for $s.comb -> $a, $b {
       take [ $a, $b ] if $a ne $b;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2022-01-20 01:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?