Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: improving the aesthetics of perl code

by sleepingsquirrel (Chaplain)
on Jan 21, 2005 at 22:43 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found