All the Perl that's Practical to Extract and Report

Navigation

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Without JavaScript enabled, you might want to
use the classic discussion system instead. If you login, you can remember this preference.

Please Log In to Continue

Just used this to post a
test-entry [perl.org]
into my journal. It's probably about on-par with the test script pudge was using a while back, except that the path to the cookie file is UNIX-ish instead of Mac-ish (and File::Spec wouldn't really help here, because the different Netscape platforms save their user data in differently-formed paths). It also allows for command-line arguments for title and whether to allow discussion. It also allows a command-line-provided filename to provide the body, or in absence of it reads from STDIN. It doesn't handle the other options to add_entry because they're integer-oriented, which would be useless to an end-user without some text-to-value mapping (pudge: another subject for our off-line architecture discussion). But it's a start, and might be good cut-and-paste fodder for someone else. I'll be adding the non-Netscape cookie support later.