in reply to Re^4: Make select apply to modules as well
in thread Make select apply to modules as well
This is documented, but obscurely. If you check in perlvar you'll find that $^I is the current value of the in-place edit. If you check in perlrun you'll find that -i calls select.
I would suggest avoiding $^I and writing the code that it saves for you. Alternately call select before setting $^I to get the currently selected filehandle, and then call select when the edit is done so that $^I and select play nice with each other.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Make select apply to modules as well
by richz (Beadle) on Dec 05, 2004 at 22:13 UTC |