Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Process mail logs

by influx (Beadle)
on Aug 13, 2012 at 07:45 UTC ( #987062=note: print w/replies, xml ) Need Help??


in reply to Re: Process mail logs
in thread Process mail logs

Actually, you should try and refrain from using given/when. Brian D Foy explains why Here

A pretty nice alternative I use, is

for ($string) { # given if (/<=/) { .. } # when elsif (/=>/) { .. } # when else { .. } # default }

Replies are listed 'Best First'.
Re^3: Process mail logs
by Kenosis (Priest) on Aug 13, 2012 at 20:19 UTC

    Good call to address this given/when issue. Have updated my original post to reflect this...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2016-09-26 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (478 votes). Check out past polls.