nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

5.14: Use of assignment to $[ is deprecated #247

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

> perlcc -r -e 'no warnings; $[ = 1; $big = "N\xabN\xab"; print qq{ok\n} if 
rindex($big, "N", 3) == 3'

What is the expected output? 

> perl -e 'no warnings; $[ = 1; $big = "N\xabN\xab"; print qq{ok\n} if 
rindex($big, "N", 3) == 3'
ok

What do you see instead?

rindex returns 2 instead of 3 and does not use the $ARRAY_BASE value

Please use labels and text to provide additional information.

Original issue reported on code.google.com by nicolas....@gmail.com on 2 Dec 2013 at 9:50

GoogleCodeExporter commented 9 years ago
duplicate of #171
please search "All Issues" before

Original comment by reini.urban on 2 Dec 2013 at 10:10

GoogleCodeExporter commented 9 years ago

Original comment by todd.e.rinaldo on 2 Dec 2013 at 11:25

GoogleCodeExporter commented 9 years ago
this is still a problem even if 171 is fixed

Original comment by nicolas....@gmail.com on 30 Jan 2014 at 10:43

GoogleCodeExporter commented 9 years ago

Original comment by todd.e.rinaldo on 30 Jan 2014 at 10:44

GoogleCodeExporter commented 9 years ago
perl5.14: "Use of assignment to $[ is deprecated"

Original comment by reini.urban on 31 Jan 2014 at 7:08

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 4 Feb 2014 at 2:19

GoogleCodeExporter commented 9 years ago
Most likely WontFix

Original comment by reini.urban on 4 Feb 2014 at 2:22