in reply to Search and Replace.
If, before the while loop, you computeds/\:000[A,P]M|99991231|Jan 1 1900 12:00:00//g;
then your for loop could be writtenmy @input_field_indexes = map($_-1, @PROC_FIELDS);
And you'd eliminated a lot of repetitive calculations, since @PROC_FIELDS doesn't change inside the while.for my $field (@INPUT_FIELDS[ @input_field_indexes ]) { $field = '' if $field =~ /SUN/; }
|
|---|