in reply to Ignore ALL characters and delete?
The link is not getting deleted because the pattern is never found in the file.
This is because of the meta characters in the link. To make sure that any special meta characters
are escaped in your regex you need the \Q an \E operators.
Try using this as your regex, then the you should be able to find the link.
This is because of the meta characters in the link. To make sure that any special meta characters
are escaped in your regex you need the \Q an \E operators.
Try using this as your regex, then the you should be able to find the link.
if ($list =~ /\Q$link\E/i)
Wonko
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Ignore ALL characters and delete?
by iamrobj (Initiate) on May 13, 2003 at 22:11 UTC | |
by VSarkiss (Monsignor) on May 13, 2003 at 22:44 UTC |
In Section
Seekers of Perl Wisdom