Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by jlistf (Monk)
on Jul 24, 2000 at 20:47 UTC ( [id://24114]=note: print w/replies, xml ) Need Help??


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

are you saying that 'our' lexically scopes the name, but globally scopes the value?

Replies are listed 'Best First'.
RE: RE: RE: i thought i knew 'our'...
by autark (Friar) on Jul 24, 2000 at 21:03 UTC
    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://24114]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-23 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found