If %nos is a local-Variable (my), you have to give it (or better a reference to it) to the subs &up and &down.
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
In reply to Re: Scoping issue when sorting with subroutines
by strat
in thread Scoping issue when sorting with subroutines
by Dave05
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |