http://www.perlmonks.org?node_id=289641


in reply to Re: Algorithm::Treap (code)
in thread Algorithm::Treap

Uh oh (what's going on?):

I dont know. This doesnt make sense to me. Obviously it doesnt happen here, and at least one other person has had the code pass all tests. Can you double check that you copied the code correctly?


---
demerphq

<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

Replies are listed 'Best First'.
Re: Re: Re: Algorithm::Treap (code)
by Anonymous Monk on Sep 08, 2003 at 00:34 UTC
    If treap.pm is in the current directory, it doesn't work, but if I am not, it works. Very weird.

      Ok, im totally baffled. For a while I had the same issue as you. Now with the latest code it seems to work fine. But the really worrying thing is now I dont have a clue what I changed to make it so. As far as I cant tell nothing drammatic. And ive not been able to recreate the error again. Its very perplexing. Please can you redownload the scratchpad and run it as is (including the test code in the DATA section) from the same directory?

      Cheers and thanks for the heads up about this. It seems there is weirdness afoot.


      ---
      demerphq

      <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

      Wow. Is that ever weird. I _do_not_ understand whats going on here at all.

      Maybe some kind monk will explain?


      ---
      demerphq

      <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...
Re: Re: Re: Algorithm::Treap (code)
by Anonymous Monk on Sep 08, 2003 at 00:23 UTC
    Perl 5.6, Windows NT ActivePerl Build 633. I didn't copy anything, I clicked the download code link, and saved as.

      Interesting and perplexing. When I downloaded the code as you describe and ran it, it work fine, except for some complaints about some things being used only once. Yet when I run the raw code I have here the same doesn't happen. Im curious what happens if you put it in the correct location in the site/lib tree? Also, you should realize that the download code will actually wrap both code sections into one file. So you should extract the other part which is the test code. Although in this case it is after the __DATA__ line and shouldnt matter. Also those used only once errors only occur on the downloaded code and not my working copy. Weird. Anyway, im posting an update to the code to make the only once at a time errors go away.


      ---
      demerphq

      <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...