Perl tied Function

Advertisements


Description

This function returns a reference to the object underlying the tied entity VARIABLE. To understand tied check tie function.

Syntax

Following is the simple syntax for this function:

tied VARIABLE

Return Value

This function returns undef if VARIABLE is not tied to a package otherwise it returns a reference to the object.

Example

Following is the example code showing its basic usage:


When above code is executed, it produced following result




Advertisements
Advertisements