Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Config::Validate: problem with a key type

by Hue-Bond (Priest)
on Mar 22, 2010 at 18:05 UTC ( #830128=note: print w/ replies, xml ) Need Help??


in reply to Re: Config::Validate: problem with a key type
in thread Config::Validate: problem with a key type

Adding those additional restrictions has no effect. This is my current $schema:

my $schema = { section => { type => 'nested', child => { key => { type => 'string', regex => qr/^ ARRAY \( 0x\p{HexDigit}{1,8} \) $/x, }, }, }, };

The code still runs to completion. If I make the regex different (e.g. by changing "ARRAY" into "ARAY"), the code complains about the data not matching the schema. Looks like a bug to me...

Thank you for giving me the clue!

--
 David Serrano
 (Please treat my english text just like Perl code, i.e. feel free to notify me of any syntax, grammar, style and/or spelling error. Thank you!).


Comment on Re^2: Config::Validate: problem with a key type
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2015-07-03 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls