howa wrote:
On 7$B7n(B5$BF|(B, $B>e8a(B4$B;~(B56$BJ,(B, [EMAIL PROTECTED] (Rob
Dixon) wrote:
A Perl scalar value (including array and hash elements) can have more than one
type simultaneously. Why do you think you need to know what type of value is
being held?
can you show an example of "more than one type simultaneously" ?
this is interesting...
I assume that Rob is talking about the $! variable:
$ perl -le' $! = $_ and print "number:", $! + 0, " string:", $! . ""
for 5 .. 9 '
number:5 string:Input/output error
number:6 string:No such device or address
number:7 string:Argument list too long
number:8 string:Exec format error
number:9 string:Bad file descriptor
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/