Don't ask to ask, just ask | |
PerlMonks |
Re^6: setup of a small perl gameby sulfericacid (Deacon) |
on Apr 12, 2005 at 05:46 UTC ( [id://446860]=note: print w/replies, xml ) | Need Help?? |
Although I like the overall syntax and simplicity of the pseudocode it does bring two things to my attention. 1) You need to predeclare the variables at the top of the script otherwise when working in subs you'll get blasted with errrors, especially under strict. 2) Not being one of the "sub geniuses" myself, I don't think you can get by using last; inside of a sub routine and at the moment I can't think of a different way to go about doing that. "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us" sulfericacid
In Section
Seekers of Perl Wisdom
|
|