Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Many of the so called rules are actually guides set out to make your life longer and happier. Sure, you can parse HTML, CSV, ... whatever with regexes. You can write your own regex engine if you want. You'll learn a great deal about regexen, but with respect to your primary goal of parsing some HTML, you are liable to spend a lot of time, encounter a lot of unhappieness and possibly not get the job done.

You don't have to use strictures, but they cost almost nothing and save bulk time. "use strictures" is a guide, but it should have the status of a rule. There are very few times in modern Perl where strictures are "bad", but almost every line of code written benefits from having them turned on.

All the rules (or guides) are of greatest benefit to those who don't understand them or don't understand why they should be followed. So, if you don't understand a rule, follow it!

In summary, don't blindly follow the rules. Follow the rules because we say so, but ask us why the rules are as they are. Understanding why is as important as following the rules, but follow the rules until you know deep in your waters why the rule is there.


DWIM is Perl's answer to Gödel

In reply to Re: Breaking The Rules by GrandFather
in thread Breaking The Rules by Limbic~Region

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (None)
    As of 2024-04-25 04:02 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found