Subject: | Not working with latest JSON::Any? |
The following code:
# --------------------------
#!/usr/bin/perl
use warnings;
use strict;
use Net::Twitter;
sub twitter {
my ($self, $text) = @_;
my $twitter = Net::Twitter->new(
username => 'whatever',
password => 'whatever',
);
return $twitter->update($text);
}
twitter("Test.");
# --------------------------
fails with this message:
malformed JSON string, neither array, object, number, string or atom, at
character offset 1 ["(end of string)"] at
/usr/local/share/perl/5.8.8/JSON/Any.pm line 439.
JSON::Any is at version 1.16; perl is 5.8.8.