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?
In reply to diamond operator current filename by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |