My new favorite Perl module
From day seven of the Perl Advent Calendar:
1 use Acme::Don't;
2
3 #The following does nothing
4 don't{
5 print "Dear Santa,\n";
6 printf("I want %i %s", int(1+9*rand), $_) foreach ;
7 print "k thx luv janie\n"
8 }
9 __END__
10 ponies
11 puppies
12 ipods
The don't function doesn’t do a block of code. It’s like an extended comment. Why’s that awesome? I have no idea. It just is. It’s the thing I love most about Perl, sometimes it totally doesn’t make sense.
