Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top