Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

RE: RE: RE: Re: Regex reset problem?

by Aighearach
on Jul 09, 2000 at 18:40 UTC ( #21701=note: print w/replies, xml ) Need Help??


in reply to RE: RE: Re: Regex reset problem?
in thread Regex reset problem?

The reason is, because nobody who has spent much time coding has been spared from the rare (or for some of us, not-so-rare) typo. regardless of how we would like things to be, we all accasionaly make little mistakes, typographical, syntactical, or structural. With use strict and use warnings you can catch most of this right away. It is precisely laziness that prompts strict adherance to strict. Maybe I'm just a complete moron, but I have spent 4 hours just on a single typo that strict would have caught, and that's certaily more time than I've spent typing pragmas.
Paris Sinclair    |    4a75737420416e6f74686572
pariss@efn.org    |    205065726c204861636b6572
I wear my Geek Code on my finger.

Replies are listed 'Best First'.
RE: RE: RE: RE: Re: Regex reset problem?
by PipTigger (Hermit) on Jul 10, 2000 at 02:04 UTC
    Thanks Aighearach! I don't see why I'm voted down for saying that some people don't want to use some optional feature and that it's okay to choose that if they want to. My point was just that "even if it's right, just saying so without explaining it does little good". I guess I'm a crackpot who deserves all the -- votes coming my way but I can't help but think an increased dose of tolerance for different practices or experience levels in the Monastery would do us all good. Shalom.

    -PipTigger

    p.s. Initiate Nail Removal Immediately!

      use strict and -w (use warnings) are optional (although Larry has been quoted as saying that this is a bug in Perl!) You are, of course, quite at liberty to to use or not use these as you feel appropriate.

      The problem comes when someone not using these aids finds a bug in their script. They then post non-strict code here (or on comp.lang.perl.misc) and ask for help when in many cases just adding use strict or -w to their script would help them find the bug far faster on their own.

      In summary - don't use these tools if you don't want to, but if you're going to ask other people for help, it's only polite to ensure that your script is 'strict-clean'.

      --
      <http://www.dave.org.uk>

      European Perl Conference - Sept 22/24 2000, ICA, London
      <http://www.yapc.org/Europe/>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2020-10-30 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (277 votes). Check out past polls.

    Notices?