Closed ilmari closed 8 years ago
Functions often deal with non-refs and some specific type of ref, so being able to write something like this would be nice:
if (!is_ref($foo)) { … } elsif (is_arrayref($foo)) { … } else { croak "wrong type of foo"; }
Good idea!
Done! Uploaded to CPAN.
Functions often deal with non-refs and some specific type of ref, so being able to write something like this would be nice: