Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: difference between tie with and without parentheses

by AltBlue (Chaplain)
on Jul 30, 2008 at 02:58 UTC ( [id://701002]=note: print w/replies, xml ) Need Help??


in reply to difference between tie with and without parentheses

Yet another XY Problem ;-/

Rather than copy-pasting some sloppy details, you could have created some basic test case in order to demonstrate your claim. In the process, you / your friend could have "discovered" that there was no tie related problem whatsoever.

Without any code to review, there's not much that I can add to what ikegami already said, but I'm under the impression that your friend forgot one more thing, tie's return value:

tie VARIABLE,CLASSNAME,LIST
This function binds a variable to a package class that will provide the implementation for the variable. VARIABLE is the name of the variable to be enchanted. CLASSNAME is the name of a class implementing objects of correct type. Any additional arguments are passed to the "new" method of the class (meaning "TIESCALAR", "TIEHANDLE", "TIEARRAY", or "TIEHASH"). Typically these are arguments such as might be passed to the "dbm_open()" function of C. The object returned by the "new" method is also returned by the "tie" function, which would be useful if you want to access other methods in CLASSNAME.
  • Comment on Re: difference between tie with and without parentheses

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-06-15 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.