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 }
In reply to Re^2: Process mail logs
by influx
in thread Process mail logs
by stevbutt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |