in reply to New Module Consideration?
you should also look at Params::Validate.
Ive yet to use any of the *validate* modules, but this one is on the top of my short-list. It has - to me - an intuitive interface thats geared for validating args to a function. It handles both named-params and positional, tho named is (always) clearer.
sub snafu { validate (@_, { foo => 'SCALAR', # foo must be scalar arry => 'ARRAY', }); # func body here }
- Comment on Re: New Module Consideration?
Replies are listed 'Best First'. | |
---|---|
Re: Re: New Module Consideration?
by Flame (Deacon) on Jan 03, 2003 at 03:38 UTC | |
by theorbtwo (Prior) on Jan 03, 2003 at 03:47 UTC | |
by Anonymous Monk on Jan 26, 2003 at 03:07 UTC | |
by Anonymous Monk on Jan 26, 2003 at 03:09 UTC | |
by Aristotle (Chancellor) on Jan 26, 2003 at 05:17 UTC | |
by Aristotle (Chancellor) on Jan 26, 2003 at 05:21 UTC | |
by Flame (Deacon) on Jan 03, 2003 at 20:36 UTC | |
by Flame (Deacon) on Jan 06, 2003 at 20:16 UTC | |
by Wysardry (Pilgrim) on Jan 26, 2003 at 02:50 UTC |