Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: 'our' is not 'my'

by Anonymous Monk
on Nov 20, 2008 at 19:47 UTC ( #724962=note: print w/ replies, xml ) Need Help??

in reply to 'our' is not 'my'

Is slq a typo?
This line:

However, there is a huge benefit. Later in the code, when we encounter $main::slq, it becomes $slq and the program dies a much needed death.

Did you mean sql ?


Comment on Re: 'our' is not 'my'
Replies are listed 'Best First'.
Re^2: 'our' is not 'my'
by StommePoes (Scribe) on Nov 26, 2008 at 09:55 UTC

    As I understand it, it's a deliberate typo to show that when using our, the typo called "slq" will get caught (instead of being treated like some new variable as happens when variables are global).

    So, maybe I'm misunderstanding (I don't write speak or read Perl yet, lawlz), but I thought "slq" was the whole point.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (14)
As of 2015-11-25 16:16 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (682 votes), past polls