in reply to Perl pie with $1 replacements ?

The -i switch demandsexpects the extension as its parameter if there is any (e in this case) (see perlrun).

Updated.

Replies are listed 'Best First'.
Re^2: Perl pie with $1 replacements ?
by ww (Archbishop) on May 04, 2010 at 22:58 UTC
    Nope; the extension is OPTIONAL.

    http://perldoc.perl.org/perlrun.html:

    The extension, if supplied (emphasis added), is used to....

    And though this is already discussed (below), the examples (in the 5.12 doc) of using -p, -i and -e together are constructed this way:

    perl -pi -e ...
    except where the -p is separated by a space from a -i (and I didn't find an explicit explanation of that, either).