XP is just a number | |
PerlMonks |
Re: One to one file output idiomby shmem (Chancellor) |
on Jan 15, 2020 at 20:30 UTC ( [id://11111458]=note: print w/replies, xml ) | Need Help?? |
Just open a new file whenever the current $ARGV isn't the same as the remembered one (which can be undefined): When the input file changes ($ARGV), a new output file is opened. Of course, a file can be run instead of -e '$proggy'.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|