[Wellington-pm] Strange (for me) notation

Jacinta Richardson jarich at perltraining.com.au
Wed Jul 22 20:49:37 PDT 2009


Sam Vilain wrote:

> But surely you want to know another way, using scalar:
> $ib->{reg}{scalar LATEST_D_ACROSS_PRODUCTS}

You might also see:

	$ib->{reg}{ LATEST_D_ACROSS_PRODUCTS . "" }

but I think the @{[ ... ]} is cute, but terrible.  This is the same 
trick required for __PACKAGE__ and similar.

	J


More information about the Wellington-pm mailing list