RonW has asked for the wisdom of the Perl Monks concerning the following question:
The following worked fine on Linux, but is not working on Win7 Pro (Strawberry Perl 5.18.2 64bit)
(This uses the expression form of grep)
#!perl -w use warnings; use strict; my @times = ( 1, 2, 3, 4); print STDERR "Times: @times\n"; if (grep ((0 + $_) >= 99999999), @times) { die('Time values must be < +99999999'); }
Output:
>perl ptest.pl Times: 1 2 3 4 Time values must be < 99999999 at ptest.pl line 9. >
|
---|