Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: improving the aesthetics of perl code

by sleepingsquirrel (Hermit)
on Jan 21, 2005 at 22:43 UTC ( #424157=note: print w/ replies, xml ) Need Help??


in reply to Re^4: improving the aesthetics of perl code
in thread improving the aesthetics of perl code

Why not...

@hosts = map { /^([\w.]+)$/ ? $1 : () } @tmp;
update: might as well get rid of the @tmp while we're at it...
@hosts = map { /^([\w.]+)$/ ? $1 : () } <CFGFILE>;


-- All code is 100% tested and functional unless otherwise noted.


Comment on Re^5: improving the aesthetics of perl code
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2014-09-30 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (385 votes), past polls