in reply to Perl script runs fine if exec'd from the directory, but gives error if run outside the directory.

Respected Monks,

Update: I wrote this answer before checking the replies here. I guess my impatience knows no bounds.

Issue got resolved after I gave the full path to the file being read by Config::Tiny!! I am truly sorry to waste your time on this. It was my negligence and impatience that caused this.

But, that is not worst. What is worst is, jwkrahn had indicated the same, and I completely mis understood his question!!. This issue is resolved. But as usual, thank you monks for your amazing replies. This place and Perl never cease to amaze me.

As an aside, this issue helped me clean up the PATH variable setting in windows. It was not related to this issue, but while cleaning up the PATH, I went back and read what jwkrahn had stated and it made sense.

  • Comment on Re: Perl script runs fine if exec'd from the directory, but gives error if run outside the directory.
  • Select or Download Code