|
|
| No such thing as a small change | |
| PerlMonks |
Re^3: Broken Write function? Does anyone have Magic fixer ability?by tobyink (Prior) |
| on Jan 11, 2013 at 00:06 UTC ( #1012766=note: print w/ replies, xml ) | Need Help?? |
|
You are opening one file handle (called "IN2") and then trying to print to another file handle (called "IN"). They are two different handles. Imagine that file handles are closed doors. You open one door, but try to walk through another door. Does that work? If you are in any way unsure, find a room with two doors and try it.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||