Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $z = qr{(?:[A-Z_]+:|$)};
    my %hash = map { $_, ($string =~ m/$_:(.+?)\s*$z/)} @keys;
    print Dumper(\%hash);
    
  2. or download this
    $VAR1 = {
              'PPS_ID' => ' ',
    ...
              'END_POINT' => 'ESME   ',
              'PRE_TRANS_OA' => '5.0.OTSDC  '
            };