in reply to Re: All-purpose data dump subroutine
in thread All-purpose data dump subroutine

Some very nice comments!

I've updated the code to work with STDIN as you suggested.  Supplying '-' in place of the filename will achieve this.

Also, as you've suggested, I added switches to test each of the parameters (except for that of writing the data to a string instead of STDOUT).  Similarly, I've modified the syntax message to list each option.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/