C
CatcherInTheRye
hi all,
I am trying to get "cell"and "sector" having the same pn value.
Temporarily, I make the following script. but don't work..
How do I do to make it works.
Thanks in advance,
#!/usr/bin/perl
@mscfci = (
{ cell => '3',
sector => '1',
pn => '200' },
{ cell => '4',
sector => '2',
pn => '300' },
{ cell => '8',
sector => '2',
pn => '300' },
{ cell => '9',
sector => '2',
pn => '110' },
{ cell => '12',
sector => '3',
pn => '300' },
);
foreach $fci ( @mscfci ) {
my @pns = @{ $fci->{pn} };
if (@pns > 1) {
foreach $pn (@pns) {
print $fci->{pn},"\n";
}
}
}
I am trying to get "cell"and "sector" having the same pn value.
Temporarily, I make the following script. but don't work..
How do I do to make it works.
Thanks in advance,
#!/usr/bin/perl
@mscfci = (
{ cell => '3',
sector => '1',
pn => '200' },
{ cell => '4',
sector => '2',
pn => '300' },
{ cell => '8',
sector => '2',
pn => '300' },
{ cell => '9',
sector => '2',
pn => '110' },
{ cell => '12',
sector => '3',
pn => '300' },
);
foreach $fci ( @mscfci ) {
my @pns = @{ $fci->{pn} };
if (@pns > 1) {
foreach $pn (@pns) {
print $fci->{pn},"\n";
}
}
}