#!/usr/bin/perl use strict; my %prop = ( "abc" => "100", "def" => "22" ); my $prop_ref = \%prop; print map { "$_ has " . length($$prop_ref{$_}) . " characters.\n" } sort keys %{$prop_ref};
In reply to Re: How to find length of $hash_ref
by bichonfrise74
in thread How to find length of $hash_ref
by priyankgandhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |