http://www.perlmonks.org?node_id=1153479


in reply to Re^2: perl not going to error path
in thread perl not going to error path

"So i should check to make sure that the value is numeric before passing it to seek"

You can, yes. Doing it this way will allow you to handle the error yourself:

my $offset = 'blah'; if ($offset =~ /^[0-9]+$/){ seek $fh, $offset, 0; } else { die "offset needs to be numeric"; }