I just started in Perl, and the whole concept of regular expressions is very cool! I like the efficiency!
I came across a problem, and although I found a different way to do what I was doing, I'd like to get this knocked out.
Can sombody please shed some light on ecaping charactors in regular expressions? Do you have to escape the final slash sometimes? This made me wonder:
What's wrong here?:
for (@lines) {
if ( m//<A HREF=/"//news/// ) {
print $_;
}
}
I came across a problem, and although I found a different way to do what I was doing, I'd like to get this knocked out.
Can sombody please shed some light on ecaping charactors in regular expressions? Do you have to escape the final slash sometimes? This made me wonder:
What's wrong here?:
for (@lines) {
if ( m//<A HREF=/"//news/// ) {
print $_;
}
}