in reply to Forward declaration of subs
Is there any practical application of forward declaration of subroutines?
Yes. If you have mutually recursive subroutines -- sub a calls sub b; and sub b calls sub a; -- then you need to forward declare one of them to pass strict, if you want to avoid using parens.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Forward declaration of subs
by LanX (Saint) on Oct 12, 2013 at 00:24 UTC | |
by BrowserUk (Patriarch) on Oct 12, 2013 at 01:47 UTC |