my $links = $reddit->fetch_links(subreddit => '/r/perl', limit => 10); foreach my $current_link (@{$links->{items}}) { print $current_link->{'title'} ."\n"; }
That generates a whole bunch of warnings before printing the titles:
Field distinguished is missing from package Reddit::Client::Link at /usr/local/share/perl/5.12.4/Reddit/Client.pm line 403
Am I doing it wrong?
]]>Attempt to access disallowed key 'over_18' in a restricted hash at /usr/local/lib/perl5/site_perl/5.10.1/Reddit/Client/Thing.pm line 56.
i've tried setting
use fields qw/over_18/;
with no success .. I blindly tried that without really understanding what it does ( sorry about that )
Thanks
]]>