|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Re: Scoping issue when sorting with subroutinesby broquaint (Abbot) |
| on Apr 12, 2002 at 11:49 UTC ( [id://158614]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
> Keep in mind that perl currently doesn't do nested subs Ack, how un-DWIM! But if we use a closure, all is well with the scope of $x I was vaguely aware of the fact that nested subs in perl were broken (i.e scoped to current package, not current sub) and now I know the full extent (but I guess the logic should've followed really). Oh well, not much longer til Perl6 anyway ... HTH broquaint
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||