I just can't figure out why perl didn't throw any errors or warnings. Running it through perl -MO=Deparse didn't turn up anything. Changing splice(@$, 0, 1) to splice(@$_, 0, 1) produces the correct result. This is AS perl 5.10.0#!/usr/bin/perl use strict; use warnings; my @list = map {[qw/foo bar blah baz/]} 1 .. 5; splice(@$, 0, 1) for @list;
What am I missing?
Cheers - L~R
In reply to Is this a bug in splice? by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |