Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: 'our' is not 'my'

by Anonymous Monk
on Nov 20, 2008 at 19:47 UTC ( [id://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 ?

-J_Tom_Moon_79

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-18 00:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found