in reply to code works in Windows (Strawberry Perl), fails in Unix - possible path/environment issue

The code you provided compiles fine on Linux for me. The error messages you show do not match the code you posted; they refer to lines that do not exist in the code. Please see How do I post a question effectively? and post the actual script and/or the actual error messages.

  • Comment on Re: code works in Windows (Strawberry Perl), fails in Unix - possible path/environment issue

Replies are listed 'Best First'.
Re^2: code works in Windows (Strawberry Perl), fails in Unix - possible path/environment issue
by ilmenolimone (Initiate) on Mar 02, 2015 at 16:54 UTC

    I'm forced to work with someone else within the company who is running this in the Unix environment. This disconnect makes resolving issues frustrating.

    I updated my post to reflect the code exactly as I gave it to him (the only difference was a handful of blank lines I had originally omitted). The errors posted are from his message back to me.

      The error messages match up a little better with the code now, and without having tested it I've got a suspicion: It may be a Perl version before v5.10 which does not support the // defined-or operator. If that's the case it would have to be replaced by equivalent logic using defined. See also perlver.

      BTW, please mark your updates in the original node a little more clearly, see here for why.