I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-11-15 09:47:30.121358-08 by semifor in response to 13061
Re: Why my search result is undef?

When using WrapError, if an error occurs, Net::Twitter returns undef. See perldoc Net::Twitter::Role::WrapError for details on how to extract information about the error.

The following code works for me:

#!/usr/bin/env perl use warnings; use strict; use Net::Twitter; use Data::Dumper; my $nt = Net::Twitter->new(traits => [qw/API::Search WrapError/]); my $search_term = 'twitter'; if ( my $r = $nt->search($search_term) ) { print Dumper $r; } else { # when $r is undefined, an error occurred # See perldoc Net::Twitter::Role::WrapError print $nt->http_response->as_string; }
Direct Responses: 13063 | Write a response