Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I have just discovered that smartmatch provides great semantics for testing for true with dynamic checks. It implements scalar, regexes and callbacks and also arrays and hashes. It gives the check creator full flexibillity - while not requiring complex checks (or rather shifting the check complexity to the core language).

    Of course 5.10 is still rare in production - so in FormHandler we just emulate smartmatch.

    • We're not on 5.10 at work and probably won't be any time soon. Still, while smart match is a great "first check", does it return the paths? That's what I need, not just the values.