Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Broken Write function? Does anyone have Magic fixer ability?

by ProgrammerJutsu
on Jan 11, 2013 at 00:01 UTC ( #1012764=note: print w/ replies, xml ) Need Help??


in reply to Re: Broken Write function? Does anyone have Magic fixer ability?
in thread Broken Write function? Does anyone have Magic fixer ability?

it worked the first time =D, I still don't see the error...
will changing the name really matter?


Comment on Re^2: Broken Write function? Does anyone have Magic fixer ability?
Re^3: Broken Write function? Does anyone have Magic fixer ability?
by tobyink (Abbot) on Jan 11, 2013 at 00:06 UTC

    "I still don't see the error..."

    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'
      Thanks,
      xD but its still not getting any values to the doc
Re^3: Broken Write function? Does anyone have Magic fixer ability?
by muba (Priest) on Jan 11, 2013 at 14:50 UTC

    No, naming doesn't matter at all. You just name file handles because stuff looks way cooler that way. It's got nothing to do with being able to tell one entity from another.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012764]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-09-20 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (155 votes), past polls