Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Do you consider these different or the same? (eq)

by tye (Sage)
on Jul 02, 2005 at 02:44 UTC ( [id://471860]=note: print w/replies, xml ) Need Help??


in reply to Re: Do you consider these different or the same?
in thread Do you consider these different or the same?

Exactly.

Also note that the name "is_deeply" comes from the is() function that only cares about eq. So "is_deeply" is meant to convey applying eq deeply between two structures. Something that does more than that needs a different name if it is part of Test::More.

The "deeply" part means that $a vs. "$a" fail the test if $a is a reference because only leaves are compared.

- tye        

  • Comment on Re^2: Do you consider these different or the same? (eq)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-24 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found