Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: Can you create *real* global variables?

by blazar (Canon)
on Mar 12, 2007 at 11:52 UTC ( #604325=note: print w/ replies, xml ) Need Help??

in reply to Re: Can you create *real* global variables?
in thread Can you create *real* global variables?

I'm having a cold and my brain is only operating at half speed right now, so maybe I'm just confused. But I always thought that variables lived either in scalar or list context. Are there such beasts as numerical and string contexts as well?

Indeed in Perl 5 (and earlier), as opposed to Perl 6, there is no precise notion of numerical or string contexts. However those terms are sometimes loosely used to indicate "used as a number" and "used as a string respectively": in some cases, but by no means in all of them, there's an actual difference.

Comment on Re^2: Can you create *real* global variables?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-11-25 19:19 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 (686 votes), past polls