Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

RE: RE: RE: i thought i knew 'our'...

by autark (Friar)
on Jul 24, 2000 at 21:03 UTC ( #24124=note: print w/replies, xml ) Need Help??


in reply to RE: RE: i thought i knew 'our'...
in thread i thought i knew 'our'...

Something like that, yes. Because the variables are put into the symbol table, they are global. In fact, 'our' has no semantical effect unless you use strict vars, so:
our $foo = 1;
and
$foo = 1;
shouldn't be different at all. It is first when you introduce use strict vars that the our keyword will have a different semantical effect.

Autark.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2020-12-06 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (65 votes). Check out past polls.

    Notices?