If indices start at 1, taking a slice till the end of an array can be written as:
The good solution for that imo would be to have the .. and ... operators as in ruby, that is, 3..8 means an inclusive range, but 3...8 means a range including 3 but not including 8.
Update: I say this because I've never seen any good example of using $#{} other than a range ending in it.
In reply to Re^5: Perl::Improved Volume 0, Number 0
by ambrus
in thread Perl::Improved Volume 0, Number 0
by Wassercrats
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |