I had a system crash and had to install a new hard drive, hence all software. After installation of activestate perl, trying to execute scripts via command line.
The command works when "perl" is present with the script name and arguments, e.g, test.pl is a script to output string thrown by user.
perl test.pl -n hello
Output: "hello".
However, when "perl" is not present it executed but there is no output on the cmd screen. e.g., test.pl -n hello
I did check .pl file association and it is with PERL. Checked all environment variables required. Digging a little more, I found that it did not like the arguments that are being sent when running without perl command. Colleague’s system work fine with same script with and without perl command at the start of the filename.
Has anyone faced similar issue? Any help would be appreciated.
Thanks.