Thushan has asked for the wisdom of the Perl Monks concerning the following question:
use strict; test1(); sub test1 { my $v=0; if ($v = get_true()) { goto &test1; } } sub get_true { return 1; }
use strict; test1(); sub test1 { my $v=0; $v = get_true(); if ($v) { goto &test1; } } sub get_true { return 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Recurse using goto; Bug?
by Joost (Canon) on Jul 18, 2008 at 21:05 UTC | |
|
Re: Recurse using goto; Bug?
by TGI (Parson) on Jul 18, 2008 at 22:03 UTC | |
by runrig (Abbot) on Jul 18, 2008 at 22:17 UTC | |
|
Re: Recurse using goto; Bug?
by wade (Pilgrim) on Jul 18, 2008 at 21:14 UTC | |
by ikegami (Patriarch) on Jul 18, 2008 at 22:05 UTC | |
by wade (Pilgrim) on Jul 18, 2008 at 22:24 UTC | |
|
Re: Recurse using goto; Bug?
by Thushan2 (Initiate) on Jul 19, 2008 at 18:57 UTC |