Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
[Corion]: Maybe I should mail them to find out if they can provide me a "hotdog / no hotdog" model for developping the XS bindings. It would be nice to have a self-contained XS library for applying models to data. Or maybe I should look at TensorFlow, which can...
[Corion]: ... at least be trained by me, instead of relying on a vendor
[Discipulus]: complex and interesting
[Corion]: Discipulus: My hope would be that you can install the module from CPAN, download a model, and get image descriptions/ object detection within half a day, which would be great :)
[Corion]: But it seems that at least for that library, this won't work. But maybe the TensorFlow people have made pretrained model data available, and my task is then to repackage the TensorFlow C API and an example into a proper XS file :)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2018-06-18 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (109 votes). Check out past polls.

    Notices?