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.
  • Hmmm it is a neat script and I often have that experience that is does not take many lines to do something in Perl.

    But is the comparison to Java completely fair? Your script does not tell the whole story, since HTML::TokeParser::Simple (which does most of the job) is not shown.

    How would a similar program look in Java if a class of similar functionality existed in Java?


    That would of course mean that we would also have to examine the modules and classes used by either of these and so on, probably ending up in the actual interpreter/compiler, meaning that it makes no sense anyway - might as well just compare the outmost implementations.

    This brings me back to your script (and my intuitive reponse seeing it) - woa! nice! 8)
    • I also think this is a very elegant little script.

      Given that the problem is to Get the Job Done(tm), I'd say it's relevant whether HTML::TokeParse functionality is available in Java.

      Some or all of the functionality may be, but probably in a slightly more verbose version. And probably not as easily found, installed and used. As always, having done similar things before is an important factor (me, I wouldn't have the experience to look at HTML::TokeParser for this problem, but I might find it anyway).