J
Jerry Preston
I know the following works:
if( @{ $dat{ $ST }} ) {
@dat_ = @{ $dat{ $ST }};
foreach $j ( @dat ) {
....
}
}
I am trying to figure out how to do in the following format of which do not
work:
foreach $j ( sort { @{ $wafers{ $ST }{ $a } } cmp @{ $wafers{ $ST }{
$b } } } @{ $wafers{ $ST }} ) {
or
foreach $j ( sort { @{ $wafers{ $a } } cmp @{ $wafers{ $b } } } keys
%wafers ) {
or
if( @{ $dat{ $ST }} ) {
$j= [ sort { $a cmp $b } @{ $j } ];
Any ideas?
Thanks,
Jerry
if( @{ $dat{ $ST }} ) {
@dat_ = @{ $dat{ $ST }};
foreach $j ( @dat ) {
....
}
}
I am trying to figure out how to do in the following format of which do not
work:
foreach $j ( sort { @{ $wafers{ $ST }{ $a } } cmp @{ $wafers{ $ST }{
$b } } } @{ $wafers{ $ST }} ) {
or
foreach $j ( sort { @{ $wafers{ $a } } cmp @{ $wafers{ $b } } } keys
%wafers ) {
or
if( @{ $dat{ $ST }} ) {
$j= [ sort { $a cmp $b } @{ $j } ];
Any ideas?
Thanks,
Jerry