Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Perl Unmatched Errors

by Laurent_R (Prior)
on Aug 16, 2013 at 17:16 UTC ( #1049761=note: print w/ replies, xml ) Need Help??


in reply to Perl Unmatched Errors

return if $line =~$line =~ /Server not using user level security and no password supplied./;

Just one quick comment: the dot at the end of this regex is not doing what you probably think, it is a meta-character that will match any character (except new lines, unless you are in single-line mode). If you want to match a dot, you have to escape it, i.e. write \. This probably does not help you much on your problem, but it is still better to know it.


Comment on Re: Perl Unmatched Errors
Select or Download Code
Re^2: Perl Unmatched Errors
by platbr (Initiate) on Aug 16, 2013 at 20:54 UTC
    i know that is a wild card, but the original code of amanda backup just used it, but for that propose it is useless, so i just removed it.
      "so i just removed it."
      That's probably a poor approach, if I understand you correctly (though very likely I don't).

      Why can't you escape it, instead, or use a quotemeta approach.

      If I've misconstrued your question, my apologies to all those electrons which were inconvenienced by the creation of this post.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-07-03 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls