in reply to sometimes use strict isn't enough
Good example, Perl will happily compile and run this without complaining in the least - bonus points for an explanation why:
when i really meant this:foreach (@list) { $conn-do("insert into foo values($_)") || die; }
So, DO rely on strict to check for the things that strict can verify. It's your brain that you shouldn't rely on - mine get's me in trouble every time at least ;)foreach (@list) { $conn->do("insert into foo values($_)") || die; }
jeffa
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: sometimes use strict isn't enough
by blakem (Monsignor) on Oct 25, 2001 at 03:05 UTC |