Subscripts of slicesYou can now use a non-arrowed form for chained subscripts after a list slice, like in:({foo => "bar"})[0]{foo}This used to be a syntax error; a -> was required.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In reply to Re: Getting range from N..end with list slice
by CountZero
in thread Getting range from N..end with list slice
by Marshall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |