jettero has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible to somehow repopulate @ARGV and re-invoke the command line switches? or something?
use warnings; use strict; # do many boring things while(<*something*>) { system(qw(perl -pi -e), $program) == 0 or die; } # do many more boring things
Obviously, it'd probably be more appropriate to just write the proper while loop and file copy/renaming code. But changing the file perms and ownerships is cumbersome and I want something slick and easy.
Also, the more I think about it, repopulating @ARGV is pretty simple... duh.
-Paul
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: -pi -e argv repeater
by ikegami (Patriarch) on Feb 02, 2007 at 15:45 UTC | |
by jettero (Monsignor) on Feb 02, 2007 at 15:57 UTC | |
by OfficeLinebacker (Chaplain) on Feb 03, 2007 at 19:08 UTC | |
by ikegami (Patriarch) on Feb 03, 2007 at 19:14 UTC | |
by OfficeLinebacker (Chaplain) on Feb 04, 2007 at 17:13 UTC | |
by BrowserUk (Patriarch) on Feb 04, 2007 at 19:13 UTC | |
by ikegami (Patriarch) on Feb 04, 2007 at 20:09 UTC | |
by OfficeLinebacker (Chaplain) on Feb 04, 2007 at 23:20 UTC | |
|