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

Re: including another perl file

by hiseldl (Priest)
on Jun 02, 2003 at 13:09 UTC ( #262356=note: print w/replies, xml ) Need Help??


in reply to including another perl file

B.pl would have to contain valid perl code, and then in your A.pl you could...

eval { require "B.pl"; } if ($@) { # deal with error } ...
...this will make all your variables in B.pl available in A.pl.

Cheers!

--
hiseldl
What time is it? It's Camel Time!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://262356]
help
Chatterbox?
choroba isn't sure
[choroba]: I plan to break the monolith into modules and create a CPAN App distribution, but I haven't expolored the details yet
[1nickt]: choroba Is it a safe assumption that if there is a threaded perl then the user will want to use Thread::Queue?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-10-18 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (244 votes). Check out past polls.

    Notices?