in reply to Perl Unmatched Errors

Based on what you've shown us, I'm of two minds:
  1. There appears to be a space (or some other char which didn't get rendered here) in the location before the head of the second arrow -- the one actually pointing out whatever it is that the regex engine thinks is "unmatched" in which case, diagnosing the problem will likely require a verbatim rendition of the error message (wrap error messages in code tags for our ease of reading).
  2. Alternately, the message says your regex is missing a parenthesis: I can't see that as accurate yet, because you show us an open paren as the second "word" in the error message, and another open at the second arrow, closed after the second "VISITADOS" ...
If I've misconstrued your question or the logic needed to answer it, I offer my apologies to all those electrons which were inconvenienced by the creation of this post.

Replies are listed 'Best First'.
Re^2: Perl Unmatched Errors
by platbr (Initiate) on Aug 16, 2013 at 21:12 UTC
    I GOT IT

    A folder with name "2013" is transformed in "Å3" because of "\2013"

    I need to be sure that $line values will be literal.

    do u know how can i do it ?

      Here are some tips:

      1. Read about Perl regular expressions to know better how to use the feature: see perlre.
      2. Understand your environment: Windows folders/files name usually get "weird" in Linux since the later usually uses Unicode for names and Windows not.
      3. Check the documentation about using Unicode with Perl in perluniintro.
      4. Read Markup in the Monastery. If your node looks better, you get a better change to get help.
      Alceu Rodrigues de Freitas Junior
      ---------------------------------
      "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
Re^2: Perl Unmatched Errors
by platbr (Initiate) on Aug 16, 2013 at 21:02 UTC
    I guess u are right about the parentheses, but this parentheses is part of $line value, it need to be literal, not part of a regex.

    So i guess i need be sure whatever value of $line it will not be "interpreted" by perl.

    Did i understand rightly?

    How can i do this? =D