$^I

[email protected] (Richard Lee)
Newsgroups perl.beginners
Message-ID <[email protected]>
I just looked it up on perldoc perlvar, but I am still not sure what it 
does.



 $^I     The current value of the inplace-edit extension.  Use "undef" 
to disable inplace editing.  (Mnemonic: value of -i
               switch.)

I was reading perl cookbook and saw this example, and was wondering what 
that is....


if (@ARGV) {
    $^I = ".orig";
} else {
     warn "$0: Reading from stdin\n" if -t STDIN;
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.