in reply to Is recursion consistent with "use warnings"

Drop the () in your subroutine definition and the warning will go away.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re: Is recursion consistent with "use warnings"
by jonathansamuel (Initiate) on Apr 09, 2010 at 14:09 UTC
    As CountZero suggested, I removed the parentheses from the sub declaration and 'use warnings' no longer chirps. Thanks.