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

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.
  • A source filter ? Cool. Any reason why you haven't used Filter::Simple ?

    Found a minor bug : you test the version of a module by a numeric comparison with ${"${module}::VERSION"} -- you should call the UNIVERSAL::VERSION() class method instead (see the UNIVERSAL manpage.)

    And it doesn't handle vstrings (but that's fine because vstrings suck anyway.)

    • I didn't use Filter::Simple simply because I wanted to require as few modules as possible. (well, I also wanted to see what all the fuss was about wrt using native source filters).

      thanks for bringing up UNIVERSAL::VERSION(). my second attempt was actually overriding that method, but I didn't consider using it to my advantage. (my first attempt was B::Utils which didn't work out, for reasons I know now and which probably everyone else knew already).

      anyway, thanks for the feedback. maybe I will release
      • I don't understand what was your attempt at using B::Utils.

        -- Rafaël the B:: modules hacker
        • exactly :)

          I read Simon's article about B::Utils and, not ever having done anything with the B:: modules, wanted to try it out on something. this looked (to my uneducated self) like a decent candidate since I wanted to change how perl core was doing things. After playing with the module, some of the gaps in my understanding were bridged, and I saw that it was almost definitely the wrong approach (and absolutely beyond my current skillset).

          anyway, there's an updated version at the same location, if you're interested.