in reply to One-liner: -i without .bak?
-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.