Four things:
Proper way to do this would be to do:
my %h = ( 'word1'=>[2,3], 'word2'=>[undef,3], 'word3'=>[1,2] ); $h{word2}[0] = $h{word1}; print "@{$h{word2}[0]}\n"; __END__
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
In reply to Re: hash to text
by antirice
in thread hash to text
by chiburashka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |