in reply to Re: Can't use string ("...") as an ARRAY ref while "strict refs" in use at x.pl line ...
in thread Can't use string ("...") as an ARRAY ref while "strict refs" in use at x.pl line ...

Because ranges are inclusive! :)

This @a[$_*100..$_*100+100]; should rather have a +99 to avoid overlaps.

Cheers Rolf

(addicted to the Perl Programming Language)

  • Comment on Re^2: Can't use string ("...") as an ARRAY ref while "strict refs" in use at x.pl line ...
  • Select or Download Code