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


in reply to How to generate files based on some special character?

If you are very lazy, you could run this:
$ perl -lane '$F[0] eq "<" and open O, "> $F[1]" or print O $_' large_ +file

Obviously, I wouldn't use this at home, as it could burn it down ;-)

...because there are no error checks (on "file name", open and print) and because of the sloppy 2-arguments usage of open

--
altblue.