in reply to How to remove underscore before every dot using perl?

Hi finddata,
You can try this for your current input data assuming only one _ is there,
#!/usr/local/bin/perl use strict; use warnings; my $str = 'DEMO_.perl'; $str =~ s/\_//; print $str;