Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://356150]
[marto]: 5 is an Odd_number
[Corion]: That could fix itself within the next 24 hours :)
[marto]: we should blame LanX
[marto]: purely because he isn't here :P
[Eily]: marto oh ok, since normally it would have been 1, which is odd as well, I didn't think this was what you were refering to
[Eily]: what? Does that mean we can't blame LanX when he's there?
[marto]: but 5 in total, is odd, where as 10 is even
[marto]: sure, we can blame LanX when he is around, but he is more likely to moan about it :P
[Eily]: there's 6 in total though :P
[Eily]: unless LanX did something to maths when I wasn't looking

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2018-03-20 10:00 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (249 votes). Check out past polls.