Hi monks,
does perl5 have c-like struct like this?
Since hash is unsorted and actually include more elements, I guess user defined array in perl6 is more suitable for me like@a = or like c: struct t_ta{ int a; int b; double c; };
is there a module of perl5 to reach it? Thanks in advance@seasons{'Spring'} = "Spring"; @seasons{'Summer'} = "Summer"; @seasons{'Autumn'} = "Autumn"; @seasons{'Winter'} = "Winter";
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
In reply to c-like struct? by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |