tkguifan has asked for the wisdom of the Perl Monks concerning the following question:
# old structure my $hash={ key1=>'comment1', key2=>'comment2' }; # new structure my $hash={ key1=>'comment1', key2=>'comment2', key3=>{ comment=>'comment3', advice=>'advice3' }, key4=>{ comment=>'comment4', advice=>'advice4' } };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What is the safest way to find out whether a hash key points to a scalar or a hash reference?
by davis (Vicar) on Feb 06, 2015 at 15:25 UTC | |
|
Re: What is the safest way to find out whether a hash key points to a scalar or a hash reference?
by Happy-the-monk (Canon) on Feb 06, 2015 at 15:23 UTC | |
|
Re: What is the safest way to find out whether a hash key points to a scalar or a hash reference?
by LanX (Saint) on Feb 06, 2015 at 15:31 UTC |