Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 dust plays in a shaft of sunlight...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-10-23 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (285 votes). Check out past polls.

    Notices?