in reply to Re^2: Perl script does not work on other directories?
in thread Perl script does not work on other directories?

the script complained when i tried to declare them only when i needed them. but yes you are correct and i completely missed that. i changed the script on my machine and declared the variables inside their respective subroutine and its working fine. thanks for pointing that out :)
  • Comment on Re^3: Perl script does not work on other directories?

Replies are listed 'Best First'.
Re^4: Perl script does not work on other directories?
by Anonymous Monk on Nov 24, 2014 at 23:27 UTC

    ... i changed the script on my machine and declared the variables inside their respective subroutine and its working fine....

    Hmm, I don't think I see that reflected in the code you posted, will you do an update?

      sure thing :)