Keep It Simple, Stupid | |
PerlMonks |
Re: One-liner: -i without .bak?by ysth (Canon) |
on Jul 22, 2005 at 03:17 UTC ( [id://477086]=note: print w/replies, xml ) | Need Help?? |
-i without suffix is only possible if your OS can rename open files; Windows can't. Cygwin perl defaults to .bak (so ported scripts using just -i at least run, if a little differently), while Win32 perl requires a backup extension and complains "Can't do inplace edit without backup." if one is not given.
In Section
Seekers of Perl Wisdom
|
|