How do I remove N elements

2017-03-20 Thread ToddAndMargo
from the beginning of an array? I know about shift, but that is one at a time. I suppose I could do a loo[, but it would be nice to do it all at once. Many thanks, -T

Re: RFE: throw an error on a single "="when used in an "if"

2017-03-20 Thread Patrick R. Michaud
On Mon, Mar 20, 2017 at 02:36:49PM +0100, Francesco Rivetti wrote: > On 18. mars 2017 11:54, Elizabeth Mattijsen wrote: > > > if (my $x = frobnicate(42)) { > > say $x > > } > [...] > > if frobnicate(42) -> $x { > > say $x > > } > > which is way more elegant. Should this make it wise to