摘要:
The interesting thing about & is that you can generate new syntax with it, provided it's in the initial position: sub try (&@) {my($try,$catch) = @_;eval { &$try };if ($@) {local $_ = $@;&$catch;}} sub catch (&) { $_[0] }try {die "phooey";} catch {/phooey/ and print 阅读全文
posted @ 2012-10-08 16:08
鍒樻爧
阅读(134)
评论(0)
推荐(0)

浙公网安备 33010602011771号