on Tue, 03 Sep 2002 13:11:47 GMT, [EMAIL PROTECTED] (James Edward
Gray II) wrote: 

> This is the easiest way, in my opinion.  It'll work on files
> passes as command line arguments.  Beware the replacing though,
> files will be modified in place and data may be lost!
> 
> #!/usr/bin/perl -pi

The loss of data can easily be prevented by using the following shebang 
instead:

    #!/usr/bin/perl -pi.orig

which leaves a backup copy of your original data. See 
    
    perldoc perlrun

-- 
felix

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to