Do you know where your variables are? | |
PerlMonks |
Re: end of line anchor in regexby FunkyMonk (Chancellor) |
on Dec 09, 2007 at 16:20 UTC ( [id://655967]=note: print w/replies, xml ) | Need Help?? |
You can use the /m modifier to make $ match newlines: $text =~ s/hello$//gm; See perlre for more information
In Section
Seekers of Perl Wisdom
|
|