< Perl Programming < Keywords
The
The code
The tied
keyword
tied
returns a reference to the object underlying .
Syntax
tied VARIABLE
<ǃ--
Examples
$time = time;
print $time . " s, " . $time/60 . " min, " . $time/3600 . " h\n";
print $time/86400 . " d, " . $time/2629743.84 . " months, " . $time/31556926.08 . " y\n";
returns on Windows something like:
1424097849 s, 23734964.15 min, 395582.735833333 h 16482.6139930556 d, 541.534816942475 months, 45.1279014118729 y
-->
See also
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.