Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Passing Variables to External Subroutines (Perl/Tk)

by matija (Priest)
on Jun 15, 2004 at 05:23 UTC ( [id://366782]=note: print w/replies, xml ) Need Help??


in reply to Passing Variables to External Subroutines (Perl/Tk)

Maybe I'm missing something, but what's wrong with saying:
&numbers($b);
in the main script and
sub numbers { my $b=shift @_; print "$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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://366782]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-19 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found