if (ref($myreference) eq "ARRAY") { print "This is an array!"; }

Roger

On Fri, 2004-03-05 at 13:25, Mark Warner wrote:
Please forgive the OT.. if anyone can direct me to a more suitable list
for perl issues not specific to mod_perl, I'll be very grateful.

I need to know if there is any easy way to determine the type of
referent a reference points to (aside from printing the contents of the
reference 'ARRAY (0x36x486)' to a string and parsing it (unless this is
already a reliable method, I'm worried about this breaking in a .1
release).

[Mark Warner | Sr Programmer Analyst | IS, Hartford Hospital |
860.545.3909 | [EMAIL PROTECTED] ]

Reply via email to