Ticket #36905

faild to translate from [ to [

Open Date: 2016-12-29 03:23 Last Update: 2021-01-25 17:45

Reporter:
(Anonymous)
Owner:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

In the original sentence, the definition of variable is as follows.

# assign a reference to array of array references $ref_to_AoA = [
[ "fred", "barney", "pebbles", "bambam", "dino", ], [ "george", "jane", "elroy", "judy", ], [ "homer", "bart", "marge", "maggie", ],
]; say $ref_to_AoA->21;
bart

On the other hand, the translated version is as follows,

# 配列に配列への参照の配列を代入する @AoA = (
[ "fred", "barney" ], [ "homer", "marge", "bart" ], [ "george", "jane", "elroy" ],
); say $ref_to_AoA->21;
bart

It is clear to forget to keep [ in the definition of @AoA.

Ticket History (3/3 Histories)

2016-12-29 03:23 Updated by: None
  • New Ticket "faild to translate from [ to [" created
2017-01-17 02:22 Updated by: argrath
Comment

Thanks for report. Commited fixes.

2021-01-25 17:45 Updated by: peanutsjamjam
  • Status Update from Open to Closed
  • Owner Update from (None) to argrath
  • Resolution Update from None to Fixed
  • Details Updated

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login