#!/usr/bin/perl -w open FOO, "< /dev/null" or die "No foo: $!\n"; #scalar() =~ /bar/ (rf() =~ /bar/) and print "bar\n"; sub rf { return scalar(); }