Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Check if object at start of array

by RMGir (Prior)
on Mar 17, 2009 at 14:53 UTC ( #751216=note: print w/replies, xml ) Need Help??

in reply to Check if object at start of array

I suggest reading perlref and searching for "cheap numeric compare of references"...


Replies are listed 'Best First'.
Re^2: Check if object at start of array
by ikegami (Pope) on Mar 17, 2009 at 14:58 UTC

    That will work in most circumstances, but note these exceptions:

    The linked code can produce undesirable results (false positives, false negatives) if the inserted object or an object in the array overrides numification or numerical equivalency.

    The linked code can produce undesirable results (false positives, warnings) if the array contains non-references.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://751216]
[LanX]: well .. not so much interested in reading this article
[LanX]: my 2 cents: AngloZionistic sounds like an antisemtic theory, but to be critical of zionism doesn't mean to be anti-semitic
[shmem]: it hasn't been coined as a *mustread* without authority from the promoter
erix shoots an anti-bubble missile towards LanX
[LanX]: I don't have the time to go into depth of this blog though
[LanX]: anti-bubble missile?
[shmem]: LanX, it's not a matter of time, and you know that.
[shmem]: be precise.
[erix]: nevermind, I'm just a bit drunk :)
[shmem]: just to contradict myself: there's so much attention on wording todays, and so much less on meaning

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-03-19 21:37 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.