Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Looking for a module that strips an HTML tag and its associated 'TEXT'

by marto (Cardinal)
on Jul 29, 2020 at 15:02 UTC ( [id://11119990]=note: print w/replies, xml ) Need Help??


in reply to Re: Looking for a module that strips an HTML tag and its associated 'TEXT'
in thread Looking for a module that strips an HTML tag and its associated 'TEXT'

A non perl dependency makes this unappealing, when pure perl modules can already achieve this.

Replies are listed 'Best First'.
Re^3: Looking for a module that strips an HTML tag and its associated 'TEXT'
by thomas895 (Deacon) on Jul 30, 2020 at 02:01 UTC

    Without too much work, you could create an XS module that just uses this code directly. That way you don't need to exec.

    -Thomas
    "Excuse me for butting in, but I'm interrupt-driven..."
Re^3: Looking for a module that strips an HTML tag and its associated 'TEXT'
by perlfan (Vicar) on Jul 29, 2020 at 15:04 UTC
    Just sharing. I've been surprised at how many people find this incredibly useful. Also, there's nothing unappealing about Perl programs that call external programs unless those programs are also Perl. Not sure when it became discouraged to use Perl for one of the reasons it was originally created on Unix systems.
      there's nothing unappealing about Perl programs that call external programs unless those programs are also Perl

      ... or can be trivially reimplemented in Perl. See Hippo's Law of Perl.


      🦛

        I am a fan of Unix Power Tools in Perl and a self proclaimed Perl purist. That said, I also appreciate good tools that can be trivially coupled with perl the unix way or trivially used in Perl in a variety of ways. I'm not getting baited into an argument that pits me against pure Perl implementations or the utility of knowing how big boys can use Perl to command and control their entire systems.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119990]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-29 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found