Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Append to file or create file depending on input filename.by pKai (Priest) |
on Nov 20, 2009 at 13:48 UTC ( [id://808435]=note: print w/replies, xml ) | Need Help?? |
I was wondering the same. To (ab)use 2-arg open in the way the OP describes, he has to do some trickery like:
which will effectively hide the output redirect from the cmd and result in an $ARGV[0] containing >outfile.
In Section
Seekers of Perl Wisdom
|
|