perlrun(1) gives some example Perl code said to be the equivalent of the -i option. But this example code does not check the return value from open() or other system calls. -- Ed Avis <eavis@amadeus.net>