title: Perl: error message: can´t locate ... in @INC
body: <p>I am trying to compilate <a href="https://stackoverflow.com/questions/11965895/perl-string-manipulation-surrounding-a-word-with-a-character">this scrip</a>, but I have this message:</p>
  
  <blockquote>
    <p>Can't locate Email/Address.pm in @INC (@INC contains: C:/strawberry/perl/lib C:/
    strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at C:/strawberry/perl/
    lib/Regexp/Common/Email/Address.pm line 9.
    BEGIN failed--compilation aborted at C:/strawberry/perl/lib/Regexp/Common/Email/
    Address.pm line 9.
    Compilation failed in require at (eval 1) line 1.
    BEGIN failed--compilation aborted at C:\examples\script2.pl line 4.</p>
  </blockquote>
  
  <p>I don´t understand because I really have this root </p>
  
  <blockquote>
    <p>C:/strawberry/perl/lib/Regexp/Common/Email/Address.pm</p>
  </blockquote>
  
  <p><strong>Does anybody know why I have this error message when I try to compilate my scrip?</strong></p>
  
  <p>Thank you so much</p>
  
  <hr>
  
  <p>I tried to use this sentence:</p>
  
  <blockquote>
    <p>use lib 'C:/strawberry/perl/lib/Regexp/Common/Email';</p>
  </blockquote>
  
  <p>and putting as comment these two sentences:</p>
  
  <pre><code>use Regexp::Common qw[Email::Address];
    use Email::Address
  </code></pre>
  
  <p>then I get this error</p>
  
  <pre><code>Global symbol "%RE" requires explicit package name at C:\examples\script2.pl lin
  e 10.Execution of C:\examples\script2.pl aborted due to compilation errors.
  </code></pre>
  
  <p>I´ve taken a look at <a href="http://perldoc.perl.org/perldiag.html" rel="nofollow noreferrer">perldiag</a></p>
  
  <blockquote>
    <p>Global symbol "%s" requires explicit package name
    (F) You've said "use strict" or "use strict vars", which indicates that all variables must either be lexically scoped (using "my" or "state"), declared beforehand using "our", or explicitly qualified to say which package the global variable is in (using "::").</p>
  </blockquote>
  
  <p>but I find it a little theoretical for me by I understand that you have to use packages by using the sentence 'use' at the begging of the code.</p>
  
  <p>By the way this is my code:</p>
  
  <pre><code> use Regexp::Common qw[Email::Address];
    use Email::Address;
    while (&lt;&gt;) {
    my (@found) = /($RE{Email}{Address})/g;
    my (@addrs) = map $_-&gt;address, Email::Address-&gt;parse("@found");
    print "X-Addresses: ", join(", ", @addrs), "\n";
    }
  </code></pre>
  
  <p>I get this code <a href="https://stackoverflow.com/questions/11965895/perl-string-manipulation-surrounding-a-word-with-a-character">from a question I asked before.</a></p>