Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
pos $test as lvalue if test has 8-bit chars #366
% perl -de 1
Loading DB routines from perl5db.pl version 1.0402
Enter h or `h h' for help.
DB<2> pos $test = 1
DB<3> x pos $test
From [Unknown Contact. See original ticket]
Norbert Goevert writes:
Confirmed. Just to make it more reproducible:
DB<1> O H
Ilya Zakharevich writes:
Confirmed also here. The pos seems to become the length of the string,
$ perl -le '$s="abcd\377efgh\377";pos $s = 4;print pos $s'
Note also that what seems to trigger the bug is to try to pos()