Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    use Data::Dumper;
    ...
    }
    
    say Dumper \@array;
    
  2. or download this
    $VAR1 = [
              {
    ...
                'chapter' => '2.'
              }
            ];
    
  3. or download this
    /(\d+\.\d*)\s+\.+\s+(\S+)\s*/g
       ^  ^ ^   ^  ^  ^   ^   ^  ^
    ...
       |  | + - Capture zero or more digits
       |  + - Capture a period
       + - Capture one or more digits