Today, in my work, I wrote something like that, in Perl:
my @x = qw( 1 2 3 4 5 ); splice(@x, 10);
and the error occurred:
splice () offset past end of array at ./x line X.
But on my personal laptop, there is no error like that. I already know that it's easy to delete the message (in English) with
no warnings 'misc'; , but my question is:
Why is the difference between Perl versions?
At work, I see the message with Perl 5.14, and on my personal computer I do not see it with Perl 5.20. When did you change it, and why?