Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Can you help profile this?

by BrowserUk (Patriarch)
on Dec 08, 2011 at 22:32 UTC ( [id://942503]=note: print w/replies, xml ) Need Help??


in reply to Re: Can you help profile this?
in thread Can you help profile this?

In your line 7, did you intend for $i < @in; to be $i < $#in; ? ... or, maybe $i < ( $#in + 1 );? @in is the entire array; not a count of elements

How does someone who's been around here as long as you, miss the fact that an array reference @a in a scalar context (as provided by a comparison operator), renders the number of elements in the array. Ie. exactly the same number as $#a + 1?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^3: Can you help profile this?
by ww (Archbishop) on Dec 08, 2011 at 22:39 UTC

    Is that a trick question?

    ... and I don't even know whether to follow that with a smiley or a frown. So I guess the best sequel is to say "My bad; apologies!."

    And likewise to Riales for Re^2: Can you help profile this?

    ++, both, and - -, /me.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found