Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by LanX (Saint)
on Jun 09, 2014 at 19:22 UTC ( [id://1089309]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1089309]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-18 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found