Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    use strict;
    ...
    my $arr = ['A -4 C','C -4 B','B -4 A','A -2 C','C -3 B'];
    my @a = map {[split " ",$_]} @$arr;
    print Dumper(\@a);
    
  2. or download this
    $VAR1 = [
              [
    ...
                'B'
              ]
            ];