in reply to [SOLVED] Test::Deep regex on hash keys

Hash keys are always strings, you know that this test is useless?

Could you plz show complete code using Test::Deep that fails?

This is just a data structure, does it already fail?

I suppose you need to explicitly use keys for such tests, you can't stuff a regex into a key slot cause they are stringyfied.

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: Test::Deep regex on hash keys
by Zoffix (Acolyte) on Dec 26, 2013 at 09:14 UTC
    I know they're always strings. The problem is without specifying "any value for the key", I can't tell it to inspect the deeper structure of where it points. I don't have any code, because I don't know how to tell it to assume any string for the key is valid.