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.
In reply to Re^2: All-purpose data dump subroutine
by liverpole
in thread All-purpose data dump subroutine
by liverpole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |