J
Jerry Preston
I am trying to breakdown:
my $data = "..X...X... X...X...X. ..X.. ";
$data =~ s/ //g;
# $p = join ",", map /(\w)/ ? $1 .. $2 : $_, split /,/, $data;
# my $p = join ",", split /[\.|X]/, $data;
my( @wafers ) = split /[\.|X]/, $data;
so that I get an array ( @wafers ) containing each element of $data.
Ideas?
Thanks,
Jerry
my $data = "..X...X... X...X...X. ..X.. ";
$data =~ s/ //g;
# $p = join ",", map /(\w)/ ? $1 .. $2 : $_, split /,/, $data;
# my $p = join ",", split /[\.|X]/, $data;
my( @wafers ) = split /[\.|X]/, $data;
so that I get an array ( @wafers ) containing each element of $data.
Ideas?
Thanks,
Jerry