V
Ved
Hi All,
I am simply printing as shown in program below.
number of elements in @signal keeps on changing. So how do I maintain
same length in the print statement below.
As of now I keep changing manually.
#!/usr/local/bin/perl
use strict;
use warnings;
my @signal = qw{ mode_20mhz #This keeps on changing
indexEn
txctrl_ltf_fld_index
rotate90
pilot_position
null_position
doneFlag
ltf_sel
};
foreach my $sig (@signal) {
# print "
@signal[0],@signal[1],@signal[2],@signal[3],@signal[4],@signal[5],@signal
[6],@signal[7],@signal[8],@signal[9]; \n";
print "
@signal[0],@signal[1],@signal[2],@signal[3],@signal[4],@signal[5],@signal[6];
\n";
#How do I manage this length of array ?
I am simply printing as shown in program below.
number of elements in @signal keeps on changing. So how do I maintain
same length in the print statement below.
As of now I keep changing manually.
#!/usr/local/bin/perl
use strict;
use warnings;
my @signal = qw{ mode_20mhz #This keeps on changing
indexEn
txctrl_ltf_fld_index
rotate90
pilot_position
null_position
doneFlag
ltf_sel
};
foreach my $sig (@signal) {
# print "
@signal[0],@signal[1],@signal[2],@signal[3],@signal[4],@signal[5],@signal
[6],@signal[7],@signal[8],@signal[9]; \n";
print "
@signal[0],@signal[1],@signal[2],@signal[3],@signal[4],@signal[5],@signal[6];
\n";
#How do I manage this length of array ?