Perl: What is -> operator stands for?

Status
Not open for further replies.

mike_bihan

Full Member level 3
Joined
Mar 21, 2002
Messages
182
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
1,531
|| operator stands for ?

There is a line in perl script:

$a{$b} -> {$c}++;

what does this line do? thanks
 


    mike_bihan

    Points: 2
    Helpful Answer Positive Rating
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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…