Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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!
Jason

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

Comment on perl examples
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.

    Jason

    "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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-12-21 23:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (109 votes), past polls