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

Re^3: Little annoying mistakes ... of others

by matze77 (Friar)
on Dec 08, 2008 at 10:38 UTC ( #728891=note: print w/replies, xml ) Need Help??


in reply to Re^2: Little annoying mistakes ... of others
in thread Little annoying mistakes ... of others

Yes normally i do, but i took a example (afair regarding while loop from Lama Book) which was modified, and it didnt run first cause there seemed to be a problem with a variable and the "use strict;" so i turned it off ;-), i could list the example as soon as i find it in the book again

Update: My fault. I noticed that use strict; and the declaration e.g. with "my" is introduced later in another chapter so i was not supposed to use strict; at all in this example (in chapter 3) of the book, i didnt know how to "declare" the variable so i uncommented use strict; for a quick and dirty solution. /Update: MH
  • Comment on Re^3: Little annoying mistakes ... of others

Replies are listed 'Best First'.
Re^4: Little annoying mistakes ... of others
by ikegami (Pope) on Dec 08, 2008 at 13:21 UTC
    Bad choice. Silencing errors doesn't make them go away.

      I couldn't agree more, in the past I used to have to work with a lot of awful VB code others had written, the line on error resume next * always set of an alarm bell in my head :P

      Cheers

      Martin

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://728891]
help
Chatterbox?
[stevieb]: cheers beech. twas totally my mistake, and I got bit. When things work for so long without issue, one becomes complacent (ie. replace we/one with I ;) I've been copy/pasting that around for a few years without a hiccup, so when...
[stevieb]: choroba pointed that out, I was just, you know, *sigh*. In effect, I was lucky and fortunate
[stevieb]: Kind of like my regex-fu went out the window, but only while looking at that specific file ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-07-25 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (383 votes). Check out past polls.