Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^4: Suggestion on rewriting small code

by AnomalousMonk (Bishop)
on Aug 21, 2019 at 20:04 UTC ( #11104831=note: print w/replies, xml ) Need Help??

in reply to Re^3: Suggestion on rewriting small code
in thread Suggestion on rewriting small code

... when I mean a "count" of elements.

Yeah, I guess the multiplier really is "one less than the number of array elements". Thank you for satisfying my curiosity.

... the default value of "$[".

In Perl 5, changes | assignment to  $[ have | has been increasingly constrained over the years and in the most recent versions are | is completely disabled, but I still can't help thinking when I write something like  0 .. $#ra to list all possible indices of an array that I should perhaps really be writing  $[ .. $#ra instead.

Give a man a fish:  <%-{-{-{-<

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2021-04-21 21:11 GMT
Find Nodes?
    Voting Booth?

    No recent polls found