Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Perl Unmatched Errors

by Laurent_R (Vicar)
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 studying the Monastery: (14)
As of 2014-07-29 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (217 votes), past polls