By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,773 Members | 1,724 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,773 IT Pros & Developers. It's quick & easy.

Opening programs with perl...

P: 2
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,

>>
Jul 3 '08 #1
Share this Question
Share on Google+
3 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
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:

Expand|Select|Wrap|Line Numbers
  1. system("/script/to/run");
  2.  
If you look up the system() function on Perldoc, you will get a more definitive description.

Regards,

Jeff
Jul 3 '08 #2

P: 2
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,

>>
Jul 3 '08 #3

numberwhun
Expert Mod 2.5K+
P: 3,503
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
Jul 3 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.