in reply to Is there any way to successfully use utime in a -pi loop?

You need to close the output file handle there, ARGVOUT. No, I didn't test if that was enough to make it work, though.

- tye        

  • Comment on Re: Is there any way to successfully use utime in a -pi loop? (ARGVOUT)

Replies are listed 'Best First'.
Re^2: Is there any way to successfully use utime in a -pi loop? (ARGVOUT)
by samwyse (Scribe) on Jul 23, 2012 at 23:41 UTC
    D'oh!!! Thanks, I don't know how I missed that. Well, really, I do. I my scripting confirming that $ARGV was the name of the output file, so obviously ARGV had to be the file itself, right?