#!/usr/bin/perl -w open FOO, "< /dev/null" or die "No foo: $!\n"; #scalar(<FOO>) =~ /bar/ (rf() =~ /bar/) and print "bar\n"; sub rf { return scalar(<FOO>); }
In reply to Re: matching against failed readline doesn't warn?
by sgifford
in thread matching against failed readline doesn't warn?
by ysth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |