Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't locate OAuth.pm in Runtime.pm. Net::Twitter module
    primarykey
    data
    text
    <p>I have such script: (Script.pl)</p> <pre><code>#!/usr/bin/perl use strict; use warnings; use encoding 'utf-8'; use FindBin; use lib "$FindBin::Bin/lib"; use TwitterModule; use IO::Prompt; # Read keys from file open KEYS, "&lt;keys.txt" or die $!; my ($ckey, $csecret, $atocken, $asecret) = &lt;KEYS&gt;; # Auth my $nt = TwitterModule::auth($ckey, $csecret, $atocken, $asecret) ; # Other code skipped. </code></pre> <p>and such module: (lib/TwitterModule.pm)</p> <pre><code>package TwitterModule; use strict; use warnings; use utf8; use encoding 'utf8'; use base 'Exporter'; use Net::Twitter; BEGIN { use Exporter(); our $VERSION = '0.01b'; our @EXPORT_OK = qw(&amp;auth); our %EXPORT_TAGS = ( 'functions' =&gt; [ qw(&amp;auth) ] ); # add all the other ":class" tags to the ":all" class, deleting duplicates my %seen; push @{$EXPORT_TAGS{all}}, grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}} foreach keys %EXPORT_TAGS; } ### Common variables ### # Make connection sub auth { my ($ckey, $csecret, $atocken, $asecret) = @_; my $cn = Net::Twitter-&gt;new( traits =&gt; [qw/Oauth API::REST/], consumer_key =&gt; $ckey, consumer_secret =&gt; $csecret, access_tocken =&gt; $atocken, access_token_secret =&gt; $asecret ); return $cn; } # Other code skipped # return true 1 </code></pre> <p>Then, i execute my script and get it: "Can't locate Net/Twitter/Role/Oauth.pm in @INC (@INC contains: /home/rasmi/work/my_project/lib /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/share/perl5/vendor_perl/Module/Runtime.pm line 205, line 4. at /home/rasmi/work/my_project/lib/TwitterModule.pm line 6"</p> <p>I have installed Net::Twitter and all necessary utils and tested it at the two machines. If i used Net::Twitter without modules, in one script, everything works fine. File /usr/share/perl5/vendor_perl/Net/Twitter/Role/Oauth.pm exist.</p> <p>I am very surprised by this behavior and would be very grateful for the help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload