- or download this
my $x = dopen( '/dev/null', 'file-not-found', '/etc/passwd' );
...
__END__
Can't open `/dev/null':
Can't open `file-not-found': No such file or directory
- or download this
sub dopen {
my @t = map {
...
} @_;
\@t;
}
- or download this
do { warn "Can't open `$_': $!\n"; () }
- or download this
(warn "Can't open `$_': $!\n")[()]
- or download this
my $x = dopen( '/dev/null', 'file-not-found', '/etc/passwd' );
...
}
__END__
Can't read 'file-not-found': No such file or directory