Opening programs with perl...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mjg2004
    New Member
    • Jul 2008
    • 2

    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,

    >>
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    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:
    system("/script/to/run");
    If you look up the system() function on Perldoc, you will get a more definitive description.

    Regards,

    Jeff

    Comment

    • mjg2004
      New Member
      • Jul 2008
      • 2

      #3
      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,

      >>

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        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

        Comment

        Working...