Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How Much Is Too Much (on one line of code)?

by snoopy (Deacon)
on Jun 19, 2007 at 05:22 UTC ( #621945=note: print w/replies, xml ) Need Help??


in reply to How Much Is Too Much (on one line of code)?

I'd consider using map and grep:
my ($country) = map {$_ eq 'gbr'? '': uc "[$_]"} grep {$_} ($card->country);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://621945]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2018-07-18 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (396 votes). Check out past polls.

    Notices?