in reply to Re^3: Substitute in a subparagraph
in thread Substitute in a subparagraph

Well my code does not mean much at the moment because I don't know how to handle the file yet. All I know now is how to remove "QUALI..." from the entire text. I need to think on a way to match my certain string (blabla5) and then take my paragraph ( bounded by ((...)), the string to be removed is just after that), and then leave the "QUALI..." just there and other places alike. Maybe if I could start a new search starting a line number, or save the data after my match in some kind of database... Thanks.
#!/usr/bin/perl -w print ("Please enter the location:\n"); chomp ($stuff=<STDIN>); open STUFF, $stuff or die "Cannot open $stuff for read :$!"; while (<STUFF>) { s/QUALI_C//g ; print "$_/n"; } ;