in the main script and&numbers($b);
in your external_subs.txt? That way, it will work with my, and use strict and all the rest of the stuff that will save you from having your brain fried once your script gets a bit more complex.sub numbers { my $b=shift @_; print "$b"; }
In reply to Re: Passing Variables to External Subroutines (Perl/Tk)
by matija
in thread Passing Variables to External Subroutines (Perl/Tk)
by antioch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |