Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Essentially, this is the structure:
I find that command five runs three times. I would expect it to only run once. All files will be of either AAA or BBB, but not both. The finish subroutine will run twice for files of type BBB and once for type AAA.`command one *` `command two *` if (file =~ AAA) { `command four option1 file` &finish }elsif (file =~ BBB) { `command four option2 file` &finish } `command five` sub finish { `command six` }
What did I screw up?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: forking patience...
by sauoq (Abbot) on Jun 19, 2003 at 20:40 UTC | |
|
Re: forking patience...
by waswas-fng (Curate) on Jun 19, 2003 at 20:44 UTC | |
|
Re: forking patience...
by bobn (Chaplain) on Jun 20, 2003 at 03:23 UTC | |
by Anonymous Monk on Jun 20, 2003 at 14:50 UTC |