Pathologically Eclectic Rubbish Lister | |
PerlMonks |
•Re: Put your inplace-edit backup files into a subdirby merlyn (Sage) |
on Apr 21, 2003 at 06:08 UTC ( [id://251940]=note: print w/replies, xml ) | Need Help?? |
I've had more than one person write to me in the day since I posted this snippet to say "Randal, you forgot the -i! It's not an in-place edit without that!".
No, I didn't. Setting $^I is the programmatic equivalent to setting -i on the command-line. Cool, eh? -- Randal L. Schwartz, Perl hacker
In Section
Cool Uses for Perl
|
|