N
nun
I'm reading data from a text file into an array like this:
push @AoA, [(
substr($_, 0, 4),
substr($_, 4, 20),
substr($_, 24, 30),
substr($_, 54, 8),
substr($_, 70, 8),
substr($_, 103, 20),
substr($_, 123, 1),
)];
I'd like to trim any trailing spaces from the substr($_, 24, 30) entry.
I see from Google that:
s/ *$//;
should do what I want, but I'm unsure how to modify my script to include
this. Can someone help?
DB
push @AoA, [(
substr($_, 0, 4),
substr($_, 4, 20),
substr($_, 24, 30),
substr($_, 54, 8),
substr($_, 70, 8),
substr($_, 103, 20),
substr($_, 123, 1),
)];
I'd like to trim any trailing spaces from the substr($_, 24, 30) entry.
I see from Google that:
s/ *$//;
should do what I want, but I'm unsure how to modify my script to include
this. Can someone help?
DB