How does a scalar know what it is?
- From: "Tom" <lfs.1@xxxxxxxx>
- Date: Sun, 24 Jul 2005 02:16:41 -0500
In C, I can just read the K&R book and know
how everything is pretty much coded at the
machine level. At least to some extent.
But how does Perl know when you type
print $ref
for example that it is not an integer, string or what have
you?
And how does
print $num; 2 or "Two"
again at the machine level, how does perl know
what it has?
.
- Follow-Ups:
- Re: How does a scalar know what it is?
- From: Ala Qumsieh
- Re: How does a scalar know what it is?
- From: Tad McClellan
- Re: How does a scalar know what it is?
- From: Dave
- Re: How does a scalar know what it is?
- From: Klaus Eichner
- Re: How does a scalar know what it is?
- Prev by Date: Re: posting an array
- Next by Date: Re: posting an array
- Previous by thread: FAQ 4.7 How do I multiply matrices?
- Next by thread: Re: How does a scalar know what it is?
- Index(es):
Relevant Pages
|