Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my %capture = $str =~ /(\D*?)\s+(\d+):?/g;
    
    print Dumper(\%capture);
    
  2. or download this
    $VAR1 = {
              'pants' => '233394',
    ...
              'Dubloons' => '002256',
              'paper clips' => '232344'
            };