[Pdx-pm] implicit hashref return gone awry

Randall Hansen randall at sonofhans.net
Mon Dec 5 17:23:59 PST 2005

On Dec 5, 2005, at 5:19 PM, David Wheeler wrote:

> The "return" disambiguates it. A bare block is always a block  
> unless it's assigned to something. The return assigns it to a  
> variable set up by the caller. For all practical purposes, a bare  
> block is the same as do {}.

ok, i think that's what i was missing.  i was incorrectly thinking of  
the bare block evaluating as a hashref by default.  in fact, in  
&three perl is being smart, and in &four it's doing exactly what i  
tell it to.



More information about the Pdx-pm-list mailing list