[EMAIL PROTECTED] (Michael R. Wolf) writes:

> Other alternatives include
> #! /usr/bin/perl -w -i
> #! /usr/bin/perl -w -i .bak
> $^I = undef;

Oops!  May have been misleading.  Here's commentary on
alternatives. 

  $^I = '';      # in-place, but no backup
  $^I = '.bak';  # in-place, with backup
  $^I = undef;   # no in-place


[...]

And I've preserved my previous info on in-place specifiers:
command-line and special variable.

> ================
> -i[extension] Specifies that files processed by the <>
>               construct are to be edited in-place. Perl does
>               this by renaming the input file, opening the
>               output file by the original name, and
>               selecting that output file as the default for
>               print statements. The extension, if supplied,
>               is added to the name of the old file to make a
>               backup copy. If no extension is supplied, no
>               backup is made.
> ================ 

[...]

> ================
> $^I
> $INPLACE_EDIT  The current value of the inplace-edit
>                extension. Use undef to disable inplace
>                editing
> ================

-- 
Michael R. Wolf
    All mammals learn by playing!
        [EMAIL PROTECTED]

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

Reply via email to