Hi -
> -Original Message-
> From: OROSZI Balázs [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 14, 2003 11:56 AM
> To: [EMAIL PROTECTED]
> Subject: determining variable types
>
>
> Hello!
>
> Is it possible to get the type of a variable at run time?
>
Do you realize you've posted this message three times so far today and I think
yesterday as well?
Check your mail prog.
> -Original Message-
> From: OROSZI Balázs [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 14, 2003 3:56 PM
> To: [EMAIL PROTECTED]
> Subject:
Hello!
Is it possible to get the type of a variable at run time?
Suppose I have $var which may be a ref to a hash, or a ref to an array or a
scalar (maybe a ref to it).
Should I try to hack it out from the address
(the weird thing, for example ARRAY(0x...))?
Or is there any other way?
Please, an
Hello!
Is it possible to get the type of a variable at run time?
Suppose I have $var which may be a ref to a hash, or a ref to an array or a
scalar (maybe a ref to it).
Should I try to hack it out from the address
(the weird thing, for example ARRAY(0x...))?
Or is there any other way?
Please, an
Hello!
Is it possible to get the type of a variable at run time?
Suppose I have $var which may be a ref to a hash, or a ref to an array or a
scalar (maybe a ref to it).
Should I try to hack it out from the address
(the weird thing, for example ARRAY(0x...))?
Or is there any other way?
Please, a
Hello!
Toby Stuart wrote:
read the manpage about the 'ref' function
perldoc -f ref
Wow. Thanks a lot. You have just saved my life :)
Now I won't need to hack with regexp's.
Thank you.
--
Greetings,
Balázs
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
> -Original Message-
> From: OROSZI Balázs [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 15, 2003 10:07 AM
> To: [EMAIL PROTECTED]
> Subject: determining variable types
>
>
> Hello!
>
> Is it possible to get the type of a variable at ru
Hello!
Is it possible to get the type of a variable at run time (hash, array, scalar)?
Suppose I have $var which may be a ref to a hash, or a ref to an array or a
scalar (maybe a ref to it).
Should I try to hack it out from the address
(the weird thing, for example ARRAY(0x...), SCALAR(0x...))?
O