Sign in to follow this  
Followers 0
NSearch

Opening a Perl File

7 posts in this topic

When I use this code, I get an error saying something like, the external file can not be opened.

$PID1 = Run("C:\test.pl")

Do I need to open Perl first?

Any help would be much appreciated.

Thank you.

Share this post


Link to post
Share on other sites



When I go to start, run, and type in C:\test.pl the file will open and run properly, but when I use this code:

$PID1 = Run(@ComSpec & " /c start " & "C:\test.pl")

I get the following error:

Use of uninitialized value in numeric lt (<) at C:\test.pl line 30

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

sounds like a variable issue within the perl script. Can you post the perl script up here?

Edited by MSLx Fanboy

Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

The perl script runs when I double click it or if I run it from start->run, so I do not believe that it is the perl code.

The problem only happens when I try to run the script through autoit.

Any solutions?

Share this post


Link to post
Share on other sites

What is:

/c

/k

so on and so on.....

Share this post


Link to post
Share on other sites

I figured it out. The script has to be located in the same folder as the perl script.

Thanks for the help everyone!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0