http://www.perlmonks.org?node_id=919368


in reply to regular expression - grabbing everything problem

EVERYTHING I have done around this does not catch it.

Of course not, since with

perl -wnl -e

you are reading the file line by line. Try

perl -w -0777 -e

See also perlrun.