Perl 编程/关键字/tied
外观
tied
返回对 的基础对象的引用。
tied VARIABLE
<ǃ--
代码
$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";
在 Windows 上返回类似以下内容
1424097849 s, 23734964.15 min, 395582.735833333 h 16482.6139930556 d, 541.534816942475 months, 45.1279014118729 y
-->