Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 imbibing at the Monastery: (7)
As of 2015-07-08 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls