Help for this page

Select Code to Download


  1. or download this
        $s =~ s/\s+/=/g;
        my @v = split( /[\[\],]/, $s ); #create an array from string $s
    ...
        my %hash = map { split( /=/, $_, $x + 1 ) } @v; 
    entry
    
  2. or download this
    my %reverse_phonebook = (
        123 => 'jack',
        456 => 'jill',
        ...
    );