feumw has asked for the wisdom of the Perl Monks concerning the following question:
I would like to call a different function in this loop before likefor ( $sFunction ) { /test1/ && do { # .... }; /test2/ && do { # .... }; }
is there a clean way to do this rather then executing this script with a different arguement again?for ( $sFunction ) { /test1/ && do { # .... }; /test2/ && do { # here I want to call /test1/ part above ... # ... and then do different stuff here }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: recursive call of current script
by haukex (Archbishop) on Jun 21, 2022 at 11:48 UTC | |
|
Re: recursive call of current script
by LanX (Saint) on Jun 21, 2022 at 10:57 UTC | |
by feumw (Sexton) on Jun 21, 2022 at 11:51 UTC | |
|
Re: recursive call of current script
by kcott (Archbishop) on Jun 21, 2022 at 22:42 UTC | |
|
Re: recursive call of current script
by tybalt89 (Monsignor) on Jun 22, 2022 at 01:50 UTC | |
|
Re: recursive call of current script
by BillKSmith (Monsignor) on Jun 21, 2022 at 19:42 UTC |