Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • But I found two things:

    1) user_timeline() returns an arrayref, not an array (docs are unclear)

    2) If you pass an ID explicitly to user_timeline() it seems to work, even if the ID is the same as the authenticating user and is therefore redundant. For instance, this works:

        my $username = 'cwinters';
        my $password = 'blah';
        my $tw = Net::Twitter->new( username => $username,
                                    password => $password );
        my $items = $tw->user_timeline({ count => 10,
                                         id    => $username });
        foreach my $item ( @{ $items } ) {
            print "Item:\n", Dumper( $item ), "\n\n";

    But if I remove the 'id' parameter from user_timeline() it does not.