Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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

by matija (Priest)
on Jun 15, 2004 at 05:23 UTC ( #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:
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://366782]
and the universe expands...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-07-20 22:17 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (316 votes). Check out past polls.