Perl5.8ã¾ã§ã¯ã¯ãã¼ã¸ã£ããã¹ãããå ´åã«ã¡ã¢ãªã¼ãªã¼ã¯ãçºçããã¨ããåé¡ãããã¾ãããã5.10.0ã§ã¯è§£æ¶ããã¦ããããã§ãã ä¾ãã°ä»¥ä¸ã®ãããªã½ã¼ã¹ãå®è¡ãã㨠use strict; use Devel::Leak::Object qw(GLOBAL_bless); package Foo; sub new { my $class = shift; return bless { id => shift }, $class; } sub DESTROY { my $self = shift; print "Destroy @{[$self->{id}]} $self\n"; } package main; sub main ($) { my $j = shift; print "# MAIN BLOCK START\n"; my $foo = Foo->new( $j );
{{#tags}}- {{label}}
{{/tags}}