http://www.perlmonks.org?node_id=912575


in reply to Re^3: Locator to Lat/Long code: works, but is inelegant
in thread Locator to Lat/Long code: works, but is inelegant

Defining a sub also "declares" it:
$ perl -le "sub f{warn@_} f 1" 1 at -e line 1.

Replies are listed 'Best First'.
Re^5: Locator to Lat/Long code: works, but is inelegant
by Anonymous Monk on Jul 03, 2011 at 23:05 UTC

    Defining a sub also "declares" it

    Except when it declares it too-late for the parser to notice

    The OP uses parens, so the parser doesn't need a "forward" declaration or re-arranging of sourcecode