in reply to Re: Array slices: beyond the end/ Assigning an empty list to a Hash slice
in thread Array slices: beyond the end/ Assigning an empty list to a Hash slice
@b = (1..3)[3, 4]; # "empty" slice of a non-empty list; # @b is empty, which is fine @b = (1..3)[2, 3]; # the slice is "half empty", # and yet @b now has TWO elements, not one
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Array slices: beyond the end/ Assigning an empty list to a Hash slice
by CountZero (Bishop) on Mar 22, 2014 at 18:03 UTC | |
by 7stud (Deacon) on Mar 22, 2014 at 19:23 UTC |