Help for this page

Select Code to Download


  1. or download this
        my %hash = map {
            my( $a, @b ) = split /\|/;
            defined $a ? ( $a => { @b } ) : ()
        } split /\n+/, $content;
    
  2. or download this
        my @subhash_keys = qw( something another );
        my %hash = map {
    ...
            @b{ @subhash_keys } = @b;
            defined $a ? ( $a => \%b ) : ()
        } split /\n+/, $content;