#18101: perl from BB 14.07 cannot use negative array indexes
------------------------------+-----------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Barrier Breaker 14.07
Component: packages | Version: Barrier Breaker 14.07
Keywords: perl array index |
------------------------------+-----------------------------------
perl from BB 14.07 package repository is broken as it cannot use negative
array indexes. Because of this XSLoader.pm cannot find object modules.
Proove:
#!/usr/bin/perl -w
@data = ("element0");
print "$#data\n";
print "$data[0]\n";
print "$data[-1]\n";
gives:
0
element0
Use of uninitialized value $data[255] in concatenation (.) or string at
./test.pl line 6.
This is with openwrt-mpc85xx-generic-tl-wdr4900-v1-squashfs.
Same source for perl 5.20.0 works fine when compiled for my linux.
--
Ticket URL: <https://dev.openwrt.org/ticket/18101>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets