Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by autark (Friar)
on Jul 24, 2000 at 21:03 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://24124]
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-24 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found