Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Recalling a function iteratively

by tybalt89 (Prior)
on Nov 29, 2021 at 03:16 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2022-05-17 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?