in reply to Recalling a function iteratively
In untested pseudo-perl
my @list_new = myfunction(); while( @list_new ) { my $item = shift @list_new; if( conditiontrue ) { execute($item); } if( conditionfalse ) { @list_new = myfunction(); } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Recalling a function iteratively
by dnamonk (Acolyte) on Nov 29, 2021 at 03:33 UTC |
In Section
Seekers of Perl Wisdom