+=0 (you meant well)
That won't work little. Try changing this line in showarray: print ref($aref), ": @$aref"; to
and you will see that it outputs 'ARRAY' which is wrong. In this case, $aref is a SCALAR reference that is blessed into the class ARRAY.print ref($aref); print "@$aref";
In reply to Re: Re: Determining the true type of a reference
by Mr. Muskrat
in thread Determining the true type of a reference
by Mr. Muskrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |