method interpolation
Paul Makepeace
london.pm.org at paulm.com
Wed Feb 1 14:01:25 GMT 2006
Je 2006-02-01 13:24:38 +0000, Iain Tatch skribis:
> On 01/02/06, Dirk Koopman <djk at tobit.co.uk> wrote:
>
> > My brain is failing me. Is there some incantation (probably including
> > {}) that allows one to do something like:
> >
> > print "This is $syiq->UNIQID";
>
> warn "Ugly code follows:";
> print "This is ${\( $syiq->UNIQID )}\n";
The "canonical" way which is basically the same but with a list context is,
print "This is @{[ $sys->UNIQ_ID ]}";
Paul
--
Paul Makepeace .............................. http://paulm.com/inchoate/
"If wTFLOLROFLIMHOOMGLOLZORDS!!!!!!!!!!!!!!!!!!!!!, then become a
prostitute."
-- http://paulm.com/toys/surrealism/
More information about the london.pm
mailing list