Jeff Ober
- Website: www.artfulcode.net
- About: I am a software developer for Cox Media Group, writing Python for cash and Perl for fun.
Recent Actions
-
Commented on Simplified error cleanup with Filter::Cleanup
That's excellent. In retrospect, XS is a very obvious way to deal with that :)...
-
Commented on Reddit API for Perl
Reddit::API has been renamed to Reddit::Client. Thank you for the suggestion....
-
Posted Simplified error cleanup with Filter::Cleanup to Jeff Ober
Writing fault-tolerant programs can be a tedious exercise. Often, each step in the program logic depends on the success of the step prior, resulting in deeply nested calls to eval. Tracking the global $@ and ensuring that errors are not lost can be tricky and result in hard-to-follow logic.
… -
Posted Reddit::API renamed to Reddit::Client to Jeff Ober
To better fit CPAN's naming conventions, Reddit::API has been renamed to Reddit::Client. As there are no dependencies in the reverse lookup graph, Reddit::API is scheduled for deletion.
Reddit::Client begins its life at 0.02 with mostly complete unit tests (thanks for the footnote, Gabor),…
-
Posted Reddit API for Perl to Jeff Ober
I have completed the meat of a reasonably complete API wrapper for Reddit. You can grab it at https://github.com/jsober/Reddit-API.
It is pretty simple to use, and the docs are complete, but here is the gist:
="prettyp…
Comment Threads
-
chimerix commented on
Reddit API for Perl
The use of new top-level namespaces is also discouraged when existing ones will suffice: https://pause.perl.org/pause/query?ACTION=pause_namingmodules#Top_level_namespaces . That's why I suggested using WebService.
-
Tony Shadwick commented on
Reddit API for Perl
I'm a little confused as to how you are supposed to interact with retrieved links:
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?
-
Tony Shadwick commented on
Reddit API for Perl
Also, installation from cpan consistently fails, FYI. :)
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.