method interpolation

Matt Lawrence matt.lawrence at virgin.net
Wed Feb 1 13:47:58 GMT 2006


Iain Tatch wrote:
> 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";
> 

# Not much difference, but maybe a bit prettier..
print "This is @{[ $sysiq->UNIQID }]\n";

Matt


More information about the london.pm mailing list