in reply to Regexp glitch while parsing record in CSV
I know that this isn't exactly a sophisticated regex but we are only working with one field. This is still faster than performing the replacement on all fields, I'm sure.my @record = split( /,/); my $field4 = $record[3]; $field4 =~ /^\s*//; $field4 =~ /\s*$//;
|
|---|