in reply to error : Value too large for defined data type while checking file existence in perl

If installing a new perl is not in the cards, what about
a) try opening the file for reading
b) put an eval around the -e
  • Comment on Re: error : Value too large for defined data type while checking file existence in perl

Replies are listed 'Best First'.
Re^2: error : Value too large for defined data type while checking file existence in perl
by Anonymous Monk on Feb 28, 2017 at 16:45 UTC

    Ignore b, maybe try something like this:

    use Errno; $! = 0; if (-e $file || $! == Errno::EOVERFLOW) { # exists } else { # doesn't }