in reply to Re^2: Warning for "unused sub declarations"?
in thread Warning for "unused sub declarations"?

Maybe I'm a little slow, but are you and I talking about two different things? As far as I can tell, your bar routine depends on the global variable $foo which doesn't exist when bar is defined. What I was talking about was the need (or lack thereof) to put a superfluous declaration of all user-defined subs at the beginning of the file.

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come

  • Comment on Re^3: Warning for "unused sub declarations"?

Replies are listed 'Best First'.
Re^4: Warning for "unused sub declarations"?
by jeffa (Bishop) on May 20, 2005 at 12:54 UTC

    Actually ... i was wrong. We are talking about 2 different things. I was thinking that by declaring subs "superfluously" you could guard against using global lexicals. I thought that was the reason for declaring subs before hand, other than pseudo-documentation, but turns out i was wrong.

    speaking of thor ... here's something amusing ...

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)