in reply to Is 'last' redundant in this code?
If you're wondering why, see BrowserUks reply -- he completely missed that a function called msg exit's the program, which is quite a weird thing for a function called msg to do ;)foreach (@bar){ if(/foo/){ msg("bar bar"); last; } } exit(); sub msg { print "@_\n"; }
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests. ** The Third rule of perl club is a statement of fact: pod is sexy. |
|
|---|