Just another Perl shrine | |
PerlMonks |
Re (tilly) 3: What Happened...(perils of porting from c)by tilly (Archbishop) |
on Jan 05, 2001 at 22:35 UTC ( [id://50119]=note: print w/replies, xml ) | Need Help?? |
The reason for removing the return statement is that you are not supposed to use that outside of functions (eval, do). Just end with: and it will work. As for the pointer logic, sorry. No energy to go through it. It looked like a mess FWIW. I would just use recursion for this problem. (OK, so you take a performance hit.)
In Section
Seekers of Perl Wisdom
|
|