---------- Original Message ----------------------------------
From: Peter Makholm <[EMAIL PROTECTED]>
Date: Wed, 30 Jan 2002 11:55:38 +0100
>Stephen Turner <[EMAIL PROTECTED]> writes:
>
>> Would someone be kind enough to get me up to speed on @{[]} ?
>
>Evaluate the expression inside the {} and use it as a reference to an
>array.
Not to forget scalar evaluation within strings:
"${\(<foo>)}"
as in:
perl -e 'print "Current time is: ${\(scalar localtime)}\n"'
(the parens could as well have been omitted)
as opposed to the array evaluation
"@{[<foo>]}"
as in:
perl -e 'print "Current time is: @{[scalar localtime]}\n"'
Note the obvious difference to:
perl -e 'print "Current time is: @{[localtime]}\n"'
Joerg