Are you wanting to modify the file "inplace"? If so, you can use the -i option to have perl write the changes to the file. If you give -i an optional extension (e.g. -i.bak) then it will save the original file with that extension before applying any changes (always a good idea).
--- echo S 1 [ Y V U | perl -ane 'print reverse map { $_ = chr(ord($_)-1) } @F;' Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.
Comment on Re: Retrieve & Replace strings in one Perl line.