in reply to
Lock File
Minor nit.
while ($stop = 0) {
should be
while ($stop == 0) {
Comment on
Re: Lock File
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: Lock File
by
superfrink
(Curate)
on Nov 03, 2010 at 19:06 UTC
One work around is to put the constant on the left in comparisons. The following will throw an error:
while (0 = $stop) {
There is some more discussion in
What habits do you have to avoid introducing bugs?
[reply]
[d/l]
In Section
Seekers of Perl Wisdom