in reply to How to tell if I have a string, or a ref to a hash
sub xyz_from_string { my $arg_string = shift; ... } sub xyz_from_hashref { my $arg_href = shift; ... } [download]