> What is the meanings of the following two expressions?
> 1.$var1{$var2}
> 2.$var1($var2)

Err... they look rather similar, don't they?  :P

Basically, it works a little like:

my %hash = ( "key1" => "value1",
             "key2" => "value2",
             "key3" => "value3"
           );

print $hash{key1};

where:

$hash is the name of the hash (obviously),
key1  is a key to pointing to a value in the hash, and
$hash{key1} is the value associated with that key.

When you see:

$hash{$key}

you really mean:

Return the value associated with a key ($key) held in a
variable; from the hash called %hash.

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to