Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: STDIN method?by charnos (Friar) |
on Oct 17, 2002 at 20:56 UTC ( [id://206144]=note: print w/replies, xml ) | Need Help?? |
That makes the most sense to me too. Plus if you need to scale up your switch statement, it's easy with a hash! ..Obviously for just picking what to print, you're making work for yourself, but if you need to accomplish more than that (which is usually the case), it can save time (without a million elsifs cluttering your code).
In Section
Seekers of Perl Wisdom
|
|