Stories
Slash Boxes
Comments
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

use Perl Log In

Log In

[ Create a new account ]

jdavidb (1361)

jdavidb
  (email not shown publicly)
http://voiceofjohn.blogspot.com/

J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.

Journal of jdavidb (1361)

Friday July 18, 2003
09:39 AM

Annoying interfaces

[ #13535 ]

On this date in history, I was annoyed by both HTML::TokeParser::Simple and Lingua::EN::Fathom in that the constructors for both take only a filename. In each case, I want to just send it a scalar variable full of content and have the processing done. I could use IO::Scalar to make my content appear to be a filehandle, but I need a filename.

Back at my old job, I used to code all kinds of procedures that would accept either a filename or a block of text. It was easy to just not have to worry about it.

Of course, who can complain? Both of these APIs do wonderful things!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.