Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      my ($k, $v) = split /,/;
      print "Do something with key $k and value $v\n";
    }
    
  2. or download this
    foreach (my ($k,$v) = $str =~ /([^,]+),([^,]+)/g) {