Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: computed symbol references

by broquaint (Abbot)
on Jul 13, 2004 at 13:23 UTC ( #373972=note: print w/replies, xml ) Need Help??


in reply to computed symbolic references

  1. The first concatenates $x and the string ::VERSION then symbolically dereferences, the second symbolically dereferences $x::VERSION
  2. $y is undefined because $x::VERSION is undefined, perhaps you meant ${ $y = ${ $x . '::VERSION' } }
  3. because you're passing it as the first argument to print which is expected to be a filehandle if it is not preceded by a comma
If you're interested in dynamically accessing the $VERSION package variable then check out UNIVERSAL::VERSION.
HTH

_________
broquaint

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://373972]
help
Chatterbox?
[marto]: someone else writes: [http://www. evanmiller.org/why -im-learning-perl- 6.html|
[marto]: err, Why Iím Learning Perl 6

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-07-26 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (395 votes). Check out past polls.