Apathy has asked for the wisdom of the Perl Monks concerning the following question:
This gives a "isn't numeric in numeric ne (!=)" error, even though in "man perlop" is says: "Binary 'ne' returns true if the left argument is stringwise not equal to the right argument." What am I doing wrong? I've tried quoting them, making ne into !=, and then quoting that also. Nothing is working, and they _all_ give the same error. This isn't my box, but I do know that it's running Perl v5.6.0. Thanks for any help you can give me! :)if ($tmp_dir ne $dir) { print OUTPUTFILE "\n" . $tmp_dir . "\n"; $dir = $tmp_dir; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Really dumb question...
by jorg (Friar) on May 20, 2001 at 01:38 UTC | |
|
Re: Really dumb question... ('ne' not working)
by damian1301 (Curate) on May 20, 2001 at 08:23 UTC | |
|
Re: Really dumb question... ('ne' not working)
by tachyon (Chancellor) on May 20, 2001 at 07:13 UTC | |
|
Re: Really dumb question... ('ne' not working)
by Anonymous Monk on May 22, 2001 at 02:43 UTC | |
by arturo (Vicar) on May 22, 2001 at 02:59 UTC | |
by Anonymous Monk on May 22, 2001 at 17:42 UTC |