Help for this page

Select Code to Download


  1. or download this
    my %hash = (
        key1 => 'longstring',
        key2 => alter('longstring'),
    );
    
  2. or download this
    my %hash = (
        key1 => 'longstring',
        key2 => alter($hash{key1}),
    );
    
  3. or download this
    my $s = 'longstring';
    my %hash = (
        key1 => $s,
        key2 => alter($s),
    );
    
  4. or download this
    my %hash = map {$_ => {
                            key1 => 'longstring'.$_.'more',
                            key2 => alter('longstring'.$_.'more')
                          }
                   } @list;