Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Tripwire tests and future-proofing

by adrianh (Chancellor)
on May 25, 2004 at 09:51 UTC ( #356150=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Tripwire tests and future-proofing
in thread Tripwire tests and future-proofing

So it's not exactly what you describe.

As BUU said in his post this is the ok from Test, not the one from Test::More.


Comment on Re^4: Tripwire tests and future-proofing
Download Code
Re: Re^4: Tripwire tests and future-proofing
by zby (Vicar) on May 25, 2004 at 10:03 UTC
    Thanks. And what with the other question?

      Two questions:

      • How many items are in the hash in the example you gave?
      • Does keys actually returns a list in a scalar context?

      :-)

      keys in scalar context returns the number of elements in the resulting list. Whether this is magic in the keys function, or it's returning an "array" instead of a "list", I have no idea.

      >perl -e"%x=qw/foo bar 1 2 3 4 baz bar/; print scalar keys %x" 4

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2014-12-27 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls