Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: A few random questions from Learning Perl 3

by mowgli (Friar)
on Jan 06, 2003 at 19:55 UTC ( [id://224722]=note: print w/replies, xml ) Need Help??


in reply to A few random questions from Learning Perl 3

With regard to your second question, no matter what anyone else might say, using regular expressions to solve a given problem is never a bad thing, and surely nothing one should be ashamed of, either; regular expressions are just another tool that perl gives you to help you solve your problems, and there is nothing wrong with using it, even when other solutions are available - There Is More Than One Way To Do It.

--
mowgli

  • Comment on Re: A few random questions from Learning Perl 3

Replies are listed 'Best First'.
Re: Re: A few random questions from Learning Perl 3
by Anonymous Monk on Jan 07, 2003 at 06:53 UTC
    Geeee! at last I read all the way down to the bottom until I saw it. Indeed, TIMTOWTDI is the answer to the regex question. Shame on some of you other folk, who while accumulating perl wisdom seem to have forgotten the first lesson.

      There is more than one way to do it right, but there are lots of ways to do it wrong.

      Parsing HTML with regexes falls into the latter category.

      Using a regex can be one of the right ways to do it if you are parsing a pseudo-HTML format which is not allowed to have nesting beyond a very shallow depth in the portions you actually want to parse.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-20 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found