Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Open a .pl file form a .pl file

by krujos (Curate)
on Sep 18, 2002 at 15:57 UTC ( #198881=note: print w/ replies, xml ) Need Help??


in reply to Open a .pl file form a .pl file

You are not executing the code; all you are doing is opening it and reading the file. To call the code and get the results, as you want you need to use back ticks.

$test = `test_two.pl`;
Read the CGI tutorials to get yourself off to a good start.
Good luck
Josh
UPDATE: fixed newlines...


Comment on Re: Open a .pl file form a .pl file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-06 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls