[oak perl] Oakland Digest, Vol 56, Issue 6

Quinn Weaver quinn at fairpath.com
Tue Feb 19 14:27:49 PST 2008


On Tue, Feb 19, 2008 at 12:35:49PM -0800, Tabatchnick, Justin wrote:
> What does -wpi.bak mean - thanks

You can find this out by reading the perlrun man page (from the command
line, do 'perldoc perlrun'.  But briefly:

-w means to turn on warnings about certain runtime problems.
-p means to execute the Perl code once for each line of input.
-i means to modify the files "in place", but...
-i.bak means to back up the files (with the extension .bak) first.

These are incomplete descriptions; again, perlrun has the full details.

Thanks,

-- 
Quinn Weaver, independent contractor  |  President, San Francisco Perl Mongers
http://fairpath.com/quinn/resume/     |  http://sf.pm.org/
510-520-5217


More information about the Oakland mailing list