任务单 #36905

faild to translate from [ to [

开放日期: 2016-12-29 03:23 最后更新: 2021-01-25 17:45

报告人:
(匿名)
属主:
状态:
关闭
组件:
(无)
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:

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.

任务单历史 (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 Fixed
  • 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. » 登录名