Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

perl examples

by nascent (Novice)
on Mar 14, 2000 at 06:23 UTC ( #5337=monkdiscuss: print w/replies, xml ) Need Help??

I'm a bit new at perl so I can't really create what I'm suggesting here, so take it with a dab of salt.

With regular expressions, maybe phrasing a challenge the same way as you have now but using a submit field which would check it for validity. This would enable someone to quickly test their regex skills instead of constructing repetitive programs for each example.

Just an idea. Actually I'm going to try and make a CGI for this.

Thanks for the site!

"All paid jobs absorb and degrade the mind." --Aristotle

Replies are listed 'Best First'.
RE: perl examples
by nascent (Novice) on Mar 14, 2000 at 09:16 UTC
    Wups. I should have mentioned I had this idea for the tutorial section. Sorry.


    "All paid jobs absorb and degrade the mind." --Aristotle

RE: perl examples
by Anonymous Monk on Mar 15, 2000 at 02:06 UTC
    Actually that's genius, maybe an app that test regular expressions and/or helps you build one. You input the expected result by choosing radio buttons and such and the output is shown to you with a pass or fail - could be good for teaching purposes too. -Thanks
      Hm... this is a bit less trivial than it sounds. I could understand a tutorial that describes what a regex should and should not match and the range of inputs and the user has to enter a regex and the program tests it against a good range of inputs to test for false-positives and false-negatives. But how do you have radio buttons to describe a range of inputs and what should match and what shouldn't match and automatically generate a good test suite? Anyone?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://5337]
Approved by root
and the universe expands...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2018-05-24 11:00 GMT
Find Nodes?
    Voting Booth?