Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Perl Unmatched Errors

by Laurent_R (Monsignor)
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
Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-10-09 00:15 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls