SPUG: Automagic non-matching in -B files
Ben Reser
ben at reser.org
Wed Aug 13 20:23:29 CDT 2003
n Wed, Aug 13, 2003 at 05:52:23PM -0700, Tim Maher wrote:
> I've just discovered that
>
> perl -wlne 'print "Processing $. in $ARGV\n"; /./ and print' $HOME
>
> indicates that Perl automagically disallows any processing of records
> from the (binary) file, without warning or die'ing (instead of trashing
> the screen with spurious binary match-data, like commercial *grep*).
>
> Does anybody know where this is documented? I can't find it under
> perldoc -tf open, which seems like the right place to look.
prints binary stuff out for me. When I do:
perl -wlne 'print "Processing $. in $ARGV\n"; /./ and print' /bin/ls >
out
I get ELF output as I would expect. Tried it with perl 5.8.0 and 5.8.1
RC4.
--
Ben Reser <ben at reser.org>
http://ben.reser.org
"What upsets me is not that you lied to me, but that from now on I can
no longer believe you." -- Nietzsche
More information about the spug-list
mailing list