my %newhash = %$hashref; my @newarray = @$hashref; my $newscalar = $$scalarref;