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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • It is working for me []. It was down for a week or less, but that was a week or more ago.
    • by garth (867) on 2002.04.24 18:53 (#7486) Journal
      Finally fixed up my script to work. I was trying to add an entry using
      my $new_id  = $journal->add_entry( body     => 'this is a test again',
                                         subject  => 'this should not just be the word date')->result;
      when in reality, you have to have all the key-pairs in there
      my $new_id  = $journal->add_entry( body     => 'this is a test again',
                                         subject  => 'this should not just be the word date',
                                         discuss  => 1,
                                         posttype => 1,
                                         tid      => 1 )->result;
      I just assumed those were optional, but obviously not. Thanks for your help :-)

      Oh, and is there any progress on getting a nickname -> uid interface? Or using the nickname to get entries?

      • I use add_entry($subject, $body). I don't recall if add_entry(subject => $subject, body => $body) works, though it should. I'll look into it.

        The nickname-uid interface has not yet been written; too many other things to do.