On Wed, 2004-09-22 at 15:24, [EMAIL PROTECTED] wrote: > How will I get the file name when I do an inline edit like this: > > perl -i.orig -pe '$_ = <filename> $_' filename
That won't compile, but I believe you're posting something like a proof of concept rather then code... If I get this correctly, you're looking for the $ARGV variable. Check out: perldoc perlvar > How would I get the file name in <filename>? > > Thanks, > Rex -- José Alves de Castro <[EMAIL PROTECTED]> http://natura.di.uminho.pt/~jac -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>