Hello visionaries,
I am using ActiveState on WinXP (perl 5.8.0).
I am trying to call a batch file which in turn calls an executable using backtick. The batch file looks at "errorlevel" and then echos some string base on errorlevel. I then assign a variable to the return of the backtick. I am having weird problems when porting this script.
It works fine on XP. On windows 95 instead of returning the echoed string to Perl the batch file prints it in the command window and my variable comes up empty.
This behavior occurs on both operating systems when I use system instead of backtick.
The executable I am calling determines what Windows OS it is running on. If there is a handy Perl module that does the same it would alleviate my whole problem.