in reply to compare always true in grep
perl ptest.pl Not enough arguments for grep at ptest.pl line 9, near "99999999)" Execution of ptest.pl aborted due to compilation errors. perl -v This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-li +nux
Tip #6 from the Basic debugging checklist: B::Deparse
perl -MO=Deparse ptest.pl Not enough arguments for grep at ptest.pl line 9, near "99999999)" ptest.pl had compilation errors. use warnings; use strict 'refs'; my(@times) = (1, 2, 3, 4); print STDERR "Times: @times\n"; if (grep, @times) { die 'Time values must be < 99999999'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: compare always true in grep
by RonW (Parson) on Oct 24, 2014 at 19:06 UTC |