July 2002
Beginner to intermediate
96 pages
1h 53m
English
(1,2,3) is a list of three elements.
(1,2,3)[0] is the first element from this list.
(1,2,3)[-1] is the last element.
( ) is an empty list.
(1..4) is the same as (1,2,3,4); likewise ('a'..'z').
('a'..'z')[4,7,9] is a slice of a literal list.
qw/fo br . . . / is the same as ('fo','br', . . . ).
< . . . ><pattern> evaluates to all filenames according to the C-shell wildcard pattern. Use <${var}> or glob $var to glob from a variable.
Read now
Unlock full access