ido50 has asked for the wisdom of the Perl Monks concerning the following question:
That's it. For some reason, the program enters an infinite loop, and I have no idea why.sub _addbuf { my ($class, $buffer) = @_; my $args = shift @$buffer; if (SOMECLASS->exists($args->{parent}) { my $new = SOMECLASS->new($args); } else { push(@$buffer, $args); } #SOMECLASS->_addbuf($buffer); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Infinite loop yet no loop
by halley (Prior) on Mar 18, 2004 at 20:02 UTC | |
by ido50 (Scribe) on Mar 21, 2004 at 15:44 UTC | |
|
Re: Infinite loop yet no loop
by gjb (Vicar) on Mar 18, 2004 at 19:07 UTC | |
by bart (Canon) on Mar 18, 2004 at 20:22 UTC | |
by ido50 (Scribe) on Mar 18, 2004 at 19:26 UTC | |
|
Re: Infinite loop yet no loop
by TomDLux (Vicar) on Mar 19, 2004 at 02:44 UTC | |
|
Re: Infinite loop yet no loop
by graff (Chancellor) on Mar 19, 2004 at 02:58 UTC | |
by Theo (Priest) on Mar 19, 2004 at 15:21 UTC |