sub func { my ($value) = @_ ; if($value =~ s/\'//) { $value = "'".$value."'"; } } #### hello Ron, welcome to Itn'l ariport #### he'llo Ron, welco'me to Itn'l ariport #### sub func { my ($value) = @_ ; if($value =~ /\'/) { if($value[$i] = 0; $value[$i] <= length($value); $value[$i]++) { if($value =~ s/\'//); } $value = "'".$value."'"; } }