待辦事項 #36905

faild to translate from [ to [

啟用日期: 2016-12-29 03:23 最後更新: 2021-01-25 17:45

回報者:
(匿名)
負責人:
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:

細節

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
評語

Thanks for report. Commited fixes.

2021-01-25 17:45 Updated by: peanutsjamjam
  • 狀態 Update from 開啟 to 關閉
  • 負責人 Update from (無) to argrath
  • 處理結果 Update from to 修正
  • Details Updated

Attachment File List

No attachments

編輯

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