Help for this page

Select Code to Download


  1. or download this
    @cols[1 .. $#cols] = map(tr /[1,2]/[0,1]/, @cols)
    
  2. or download this
    my %data;
    while (<DATA>) {
    ...
        @cols = split('',$cols); ## and then split
        push @{ $data{$id} }, \@cols;
    }