Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 29. Tying Variables

Chapter 29. Tying Variables


tie var, classname, [ list ]

Ties a variable to a class that will handle it. list is passed to the class constructor.


tied var

Returns a reference to the object underlying var, or undef if var is not tied to a class.


untie var

Breaks the binding between the variable and the class. Calls an UNTIE method if provided.

A class implementing a tied scalar should define the methods TIESCALAR, DESTROY, FETCH, and STORE.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint