Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Locator to Lat/Long code: works, but is inelegant

by ForgotPasswordAgain (Deacon)
on Jul 03, 2011 at 22:35 UTC ( #912575=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^4: Locator to Lat/Long code: works, but is inelegant
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://912575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2015-08-30 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (350 votes), past polls