http://qs321.pair.com?node_id=122790


in reply to Re: How do I create a sort sub on-the-fly?
in thread How do I create a sort sub on-the-fly?

Perhaps you mean DBD::AnyData? DBD::RAM is obsoleted by this one.

Anyway, you've showed an interesting way to treat the problem as DBI query! ++ for that! (DBD::CSV should do it, too)

  • Comment on Re: Re: How do I create a sort sub on-the-fly?

Replies are listed 'Best First'.
Re:{3} How do I create a sort sub on-the-fly?
by jeroenes (Priest) on Nov 02, 2001 at 16:56 UTC
    I had no idea that DBD:RAM was obsoleted. I remembered some merlyn-WT with it, so I just installed it to try. Will check out DBD::Anydata of course... thanks.

    Update I got back at my root 'konsole' and found that anaydata failed the tests.. is that a known bug? ... i tried and tried... AnayData actually hangs on the.... I also tried cpan://Anydata... to no avail.

      No, it should pass all tests. It requires AnyData. It just behaves a little bit different from DBD::CSV when dealing with CSV data. It seems to expect that all non null fields to be escaped properly, which is not the case with DBD::CSV where a field needs escapes only when it is necessary. I was bitten by this quirk once.
Re{3} How do I create a sort sub on-the-fly?
by jeroenes (Priest) on Nov 06, 2001 at 11:30 UTC
    I think DBD::RAM uses DBD::CSV internally.