Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Do you consider these different or the same?

by Hena (Friar)
on Jul 01, 2005 at 12:30 UTC ( [id://471686]=note: print w/replies, xml ) Need Help??


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

I think I should read more on what is Test::More::is_deeply() is. But without reading that I would say no. They just look the same but doing
$ar1->[0]{a}='foo'; $ar2->[0]{a}='bar';
Then they are not the same anymore.

After quick look at what is_deeply is, i don't know. It should explain what the subroutine is after. Eg. which is it

1. Do these look the same to outside (at this particular moment)?
2. Are these exatly identical in all ways?

Depending what you want take your pick. But if both of these are wanted, then make two subroutines.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found