CAUTION: untestedmy @input = split /\|/, $_; # we've split the input line into fields + - the "|" are gone now my @output = @input; $output[1] = $lookup { $output[1] } // $output[1]; #map the second fi +eld print $out_fh join("|", @output); # put the "|" back in
In reply to Re^5: How to substitute a word with an other?
by morgon
in thread How to substitute a word with an other?
by fx3000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |