1

I am trying to run the perl script through command line but it is not reorganizing the script file ie.

myscript.pl... is not working but perl myscript.pl is working fine

I have tried the following suggestions but they didn't work either

How do I make my Perl scripts act like normal programs on Windows?

Perl execution from command line question

I am using Active Perl:- Perl 5 , Version 18.

It gives following warnings in both cases. Using a hash as a reference is deprecated

earlier I installed strawberry perl before installing active perl, is that causing some problem.

Community
  • 1
  • 1
user3649361
  • 944
  • 4
  • 20
  • 40

1 Answers1

1

The error message

Using a hash as a reference is deprecated

is a Perl message. Your script is being run just fine, but contains an error.

(It is remotely possible that you have two Perl versions installed, and that you configured Windows to use the wrong one. Reconfigure it to use the correct on then, using the guides you already found.)

tripleee
  • 175,061
  • 34
  • 275
  • 318
  • I uninstalled the strawberry one then I installed the Active perl, is it still possible that the strawberry perl Is still installed. assoc .pl=PerlScript ftype PerlScript=C:\perl\bin\perl.exe "%1" %*, through this command I m pointing to my Active Perl directory. C:\Perl\bin this is the path to perl.exe – user3649361 May 27 '15 at 06:58
  • Without proper technical diagnostics, anything is "possible". You should update the question to describe **exactly** what you did and **exactly** what the problem is. – tripleee May 27 '15 at 09:31