http://www.perlmonks.org?node_id=992715


in reply to Re^3: how to append 2 lines
in thread how to append 2 lines

Hi,

Thanks for the help...i was successfully able to finish it...

i have one more doubt..

say my code is          F$SFH FIRST,SC==H'160',        COMMENTS                    * i need to replace ',*' instead of ", K.160 LESEN *" so that my code looks like F$SFH FIRST,SC==H'160',*

I tried using substitution function.. but i dont know where i am going wrong,. please help me in this... my code looks somewhat like

$a = F$SFH FIRST,SC==H'160', K.160 LESEN +* $a =~ s/\,[\s]*\*/\,\*/;