help with perl....

Got a software or hardware problem? Ask your questions here

Moderator: SG Admins

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
bartender
pe0n
pe0n
Posts: 32
Joined: Tue Oct 29, 2002 7:19 pm
Location: Oxford
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

help with perl....

Post by bartender » Fri Mar 05, 2004 10:18 am

Ok, here’s my problem. I have an Excel file with about 150000 rows, and each cell contains text with some html tags mixed in for good measure. I’m trying to remove the html tags and leave behind just plain text. I was given this code snippet:

use HTML::Parse;
use HTML::FormatText;
$plain_text = HTML::FormatText->new->format(parse_html($html_text));

but never having used perl, I really don’t understand it and could do with some advice.

Thanks for any help.

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 1 guest