Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

•Re^2: remote subroutine call

by merlyn (Sage)
on Sep 26, 2004 at 10:56 UTC ( [id://393920]=note: print w/replies, xml ) Need Help??


in reply to Re: calling perl subroutines in other files
in thread calling perl subroutines in other files

eval `cat subroute_file.pl`;
Why would you do that when the built-in function of do is defined as that, only better?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^3: calling perl subroutines in other files
by tachyon (Chancellor) on Sep 26, 2004 at 11:51 UTC

    ....and evaluate why would you do that when you should be required to use the lovely module architecture ;-)

    As merlyn notes do is better than eval cat which is not portable.

    cheers

    tachyon

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-25 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found