Help for this page

Select Code to Download


  1. or download this
    1 A
    2 B
    
  2. or download this
    {
      1 => "A",
      2 => "B", 
    }
    
  3. or download this
    use strict; 
    use Data::Dumper;
    ...
    
    my %h =map { $1 => $2 } $s =~ /(\d+)\s+(\S+)/mg;
    print Dumper(\%h);
    
  4. or download this
    $VAR1 = {
              '2' => 'B'
            };