spx2 has asked for the wisdom of the Perl Monks concerning the following question:
consider the inline editing like this
$^I = ".bak"; while (<>) { s/Randall/Randal/g; print; }
question 1) how can someone know what is the current edited file's name ? question 2) can someone make modifications on that file, isnt it already opened by the <> diamond operator?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: diamond operator current filename
by GrandFather (Saint) on Jun 14, 2007 at 02:25 UTC | |
by spx2 (Deacon) on Jun 14, 2007 at 04:38 UTC | |
|
Re: diamond operator current filename
by cdarke (Prior) on Jun 14, 2007 at 07:56 UTC |