Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Unsuccessful stat on filename containing newline at myperl.pl line 193 +, <$in> chunk 1. Use of uninitialized value in numeric gt(>) at myperl.pl line 193, <$i +n> chunk 1.
open my $in, '<', "$file" or die $!; { local $/ = \$maxsize; while ( my $record = <$in> ) { # -s returns file size next if -s $record > $new_max; }
next if -s $record > $new_max;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unsuccessful and Uninitialized Value
by davorg (Chancellor) on Jun 05, 2006 at 16:09 UTC | |
by runrig (Abbot) on Jun 05, 2006 at 16:20 UTC | |
by Anonymous Monk on Jun 05, 2006 at 17:13 UTC | |
by runrig (Abbot) on Jun 05, 2006 at 20:06 UTC | |
|
Re: Unsuccessful and Uninitialized Value
by ikegami (Patriarch) on Jun 05, 2006 at 16:25 UTC | |
by Anonymous Monk on Jun 05, 2006 at 17:35 UTC | |
by ikegami (Patriarch) on Jun 05, 2006 at 18:16 UTC | |
|
Re: Unsuccessful and Uninitialized Value
by bobf (Monsignor) on Jun 05, 2006 at 16:19 UTC | |
|
Re: Unsuccessful and Uninitialized Value
by ahmad (Hermit) on Jun 05, 2006 at 18:50 UTC | |
|
Re: Unsuccessful and Uninitialized Value
by jpeg (Chaplain) on Jun 05, 2006 at 20:02 UTC |