Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Recalling a function iteratively

by tybalt89 (Monsignor)
on Nov 29, 2021 at 03:16 UTC ( [id://11139197]=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139197]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found