From: Ian Macdonald Date: 2002-06-19T09:55:02+09:00 Subject: Re: in-place editing On Wed 19 Jun 2002 at 09:43:45 +0900, Dave Thomas wrote: > Ian Macdonald writes: > > > I didn't find anything in the documentation to suggest that it only > > works on ARGF, so it would have taken me a very long time to figure > > that out. > > Ian: > > > It's under 'Command-Line Options' on page 138 of the Pickaxe: > > Edits ARGV files in place. For each file named in ARGV, anything you > write to standard output will be saved back as the contents of that > file. A backup copy of the file will be made if extension is > supplied. Ah, I see. I didn't realise that the $-i variable worked the same way. I really should have remembered this from Perl, since that also requires you to set @ARGV to the list of files to be edited. Thanks for the pointer. Ian -- Ian Macdonald | How to Raise Your I.Q. by Eating Gifted ian@caliban.org | Children -- Book title by Lewis B. | Frumkes |