use strict; use warnings; my $href; if( exists( $href->{1} ) ) { print "\$href->{1} = $href->{1}\n"; } print '$href is now a ', ref( $href ), " ref.\n"; #### $href is now a HASH ref.