"be consistent" | |
PerlMonks |
Question about Perl refs and basic typesby cheekuperl (Monk) |
on Jul 18, 2012 at 15:08 UTC ( [id://982460]=perlquestion: print w/replies, xml ) | Need Help?? |
cheekuperl has asked for the wisdom of the Perl Monks concerning the following question:
I was wondering about the possible return values of the ref function until I came across the list in ref.
I also verified that the 11 return values are printed using the following code.
However, I could not get the vstringRef to print VSTRING. Any clues why #11 above shows SCALAR? Secondly, I have always come across the statement Perl has three basic types : scalars, arrays, hashes However, I have not found a definitive for this in perldocs (I was trying to find a list like there was one for 11 possible return types of ref function). Could anyone elaborate why the return values of ref can't be called as data types in Perl?
Back to
Seekers of Perl Wisdom
|
|