Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Opening programs with perl...

Question posted by: mjg2004 (Newbie) on July 3rd, 2008 06:31 PM
So I am new to using Perl, and I am trying to create a Perl program to open a previous Perl program (one I already created) with Perl. what does the script look like/ or what are the commands I have to use for this operation? I am doing this on my PC using windows 2003. Any help would be much appreciated!

Thanks,

>>
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
numberwhun's Avatar
numberwhun
Forum Leader
1,860 Posts
July 3rd, 2008
06:37 PM
#2

Re: Opening programs with perl...
Let me get this right, you want to run a Perl script from another Perl script? Is the calling Perl script going to do more than just the script call? If so, you can do:

Code: ( text )
  1. system("/script/to/run");


If you look up the system() function on Perldoc, you will get a more definitive description.

Regards,

Jeff

Reply
mjg2004's Avatar
mjg2004
Newbie
2 Posts
July 3rd, 2008
06:54 PM
#3

Re: Opening programs with perl...
Sorry I was a little unclear on what I am doing, actually (I am very unclear on Perl alone lol) but anyways... I created a Perl script "hello world" named hello.plx it is located in C:\Perl\Perl Programs, now what I am looking to do is create another Perl script to open my hello.plx script....so would that line of code you provided still be correct?

Thanks,

>>

Reply
numberwhun's Avatar
numberwhun
Forum Leader
1,860 Posts
July 3rd, 2008
07:09 PM
#4

Re: Opening programs with perl...
Quote:
Originally Posted by mjg2004
Sorry I was a little unclear on what I am doing, actually (I am very unclear on Perl alone lol) but anyways... I created a Perl script "hello world" named hello.plx it is located in C:\Perl\Perl Programs, now what I am looking to do is create another Perl script to open my hello.plx script....so would that line of code you provided still be correct?

Thanks,

>>


Yes, it would still be correct, but again, verify the syntax on Perldoc.

What is the extension "plx" from? Normally you use a '.pl' extension for Perl scripts.

Regards,

Jeff

Reply
Reply
Not the answer you were looking for? Post your question . . .
184,038 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Perl Forum Contributors