things that look different

Michael Stillwell mjs at
Tue Oct 7 09:28:07 CDT 2003

On the topic of things that look different but do (almost?) the same 
thing, is there ever any reason to prefer one of these over the other:

my $v1 = do {

my $v2 = sub {


(The sub approach lets you do an actual return, which does suit the 
construction, but the "}->();" bit sure is ugly...)




More information about the Melbourne-pm mailing list