http://qs1969.pair.com?node_id=11139197


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
    Thank you for the advice :)