Help for this page

Select Code to Download


  1. or download this
    my $str = "((mouse,rat),(human,chimp))";
    my $str2 = "(mouse,(human,chimp))";
    
  2. or download this
    my $aoa = [['mouse','rat'],['human','chimp']];
    my $aoa2 = ['mouse',['human','chimp']];
    
  3. or download this
    my $str = "((mouse,rat),(human,chimp))";
    $str =~ s/\(/\[/g;
    ...
    print "$str\n";
    
    my $aoa = eval($str);