in reply to Passing Variables to External Subroutines (Perl/Tk)
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"; }
|
|---|