projects
/
p5sagit/Mutually-Assured-Destruction.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
test now doesn't run but is closer to the right structure
[p5sagit/Mutually-Assured-Destruction.git]
/
notes
/
save-my-life.pl
1
#!/usr/bin/env perl
2
3
use strict;
4
use warnings;
5
6
my %objs;
7
8
BEGIN {
9
package Foo;
10
11
sub DESTROY { warn "DESTROY\n"; $objs{$_[0]} = $_[0]; }
12
}
13
14
{
15
bless({}, 'Foo');
16
}
17
18
warn join(', ', %objs);