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

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 having an uproarious good time at the Monastery: (8)
As of 2016-10-24 11:43 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (305 votes). Check out past polls.