| Author |
Message |
mike_bihan
Joined: 21 Mar 2002 Posts: 259
|
27 Aug 2008 14:50 Perl: What is -> operator stands for? |
|
|
|
There is a line in perl script:
$a{$b} -> {$c}++;
what does this line do? thanks
|
|
| Back to top |
|
 |
saeidj
Joined: 15 Dec 2007 Posts: 123 Helped: 28
|
|
| Back to top |
|
 |
mike_bihan
Joined: 21 Mar 2002 Posts: 259
|
28 Aug 2008 6:24 Perl: What is -> operator stands for? |
|
|
|
A few things to confirm:
1. Does it means the $b element is a hash inside arrary a?
2. Does it incremen the element inside hash table "b" with key as " a"?
$a{$b} -> {$c} ++;
^^^^^^^^^^
3. Is $a{$b} -> {$c} ++; equivalent to
$a{$b{$c}} ++;
Thanks.
|
|
| Back to top |
|
 |