467,179 Members | 1,276 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,179 developers. It's quick & easy.

Opening programs with perl...

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
  • viewed: 1427
Share:
3 Replies
numberwhun
Expert Mod 2GB
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
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 2GB
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.

Similar topics

3 posts views Thread by sangith | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.