#!./perl # There are few filetest operators that are portable enough to test. # See pod/perlport.pod for details. BEGIN { chdir 't' if -d 't'; @INC = '../lib'; require './test.pl'; skip_all_if_miniperl("no dynamic loading on miniperl, no IO, hence no FileHandle"); } plan 4; use FileHandle; my $str = "foo"; open my $fh, "<", \$str; is <$fh>, "foo"; eval { $fh->seek(0, 0); is $fh->tell, 0; is <$fh>, "foo"; }; is $@, '';