in reply to Slice Madness
Context by itself doesn't explain the difference between $array[2..4] and $array[$x..$y], as both are on the same context (scalar). What matters is the sometimes-forgotten fact that the range operator in scalar context treats constants specially and compares them with the input line number ($.).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Slice Madness
by japhy (Canon) on Nov 09, 2005 at 16:49 UTC |