in reply to Problems with using Modules in script

If you are running as a daemon/service, does Windows change the root directory of your program once it starts? And, I don't think the "current directory", even if it is the same as the program for your service, is in @INC by default. So, you'll need use lib "$RealDir/"; to find your module.

Secondly, you'll need to call your parse routine as, MyParser::parse($myinput), not with the arrow syntax.

---
echo S 1 [ Y V U | perl -ane 'print reverse map { $_ = chr(ord($_)-1) } @F;'
Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.

  • Comment on Re: Problems with using Modules in script