in reply to Re: Re: hash reference syntax?
in thread hash reference syntax?
How is this possible if I have accounted for all possible types?
'some string' is a literal. It is not a reference to anything. I presume you though that ref() would report scalar.
$foo = 'bar'; print '$foo is a ', ref($foo), $/; print '\$foo is a ', ref(\$foo), $/; __DATA__ $foo is a \$foo is a SCALAR
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: hash reference syntax?
by Anonymous Monk on Mar 06, 2004 at 06:45 UTC |