Re: HTML::TokeParser munging characters

2013-12-28 Thread Lars Noodén
On 12/28/2013 05:52 PM, Shawn Wilson wrote: > The parser has done what its supposed to. IDK you can alter the > encoding in it. Maybe you can and that's what you're looking for > (encoding or character set). I'd first try binmode UTF-8 but you'll > probably just end up handling this with a regex.

Re: HTML::TokeParser munging characters

2013-12-28 Thread Shawn Wilson
The parser has done what its supposed to. IDK you can alter the encoding in it. Maybe you can and that's what you're looking for (encoding or character set). I'd first try binmode UTF-8 but you'll probably just end up handling this with a regex. "Lars Noodén" wrote: >If there is a better list

Re: HTML::TextToHTML Doesn't Work with instring

2012-06-15 Thread Mike Flannigan
On 6/15/2012 2:24 AM, Rob Dixon wrote: Hi Mike Line 565 of your module file shows that it is version 1.12 which dates from February 2003. The API of that version was very different, and I presume you are not following the documentation that came as part of the module. In particular that versi

Re: HTML::TextToHTML Doesn't Work with instring

2012-06-15 Thread Rob Dixon
On 14/06/2012 23:38, Mike Flannigan wrote: On 6/13/2012 9:04 AM, Rob Dixon wrote: Hey Mike This is a bug in HTML::TextToHTML. I have emailed the author. In the mean time, if you want to fix your own copy you should modify the module file HTML/TextToHTML.pm. Line 1521, which reads $para = $

Re: HTML::TextToHTML Doesn't Work with instring

2012-06-14 Thread Mike Flannigan
On 6/13/2012 9:04 AM, Rob Dixon wrote: Hey Mike This is a bug in HTML::TextToHTML. I have emailed the author. In the mean time, if you want to fix your own copy you should modify the module file HTML/TextToHTML.pm. Line 1521, which reads $para = $_; should be changed to

Re: HTML::TextToHTML Doesn't Work with instring

2012-06-13 Thread Rob Dixon
On 13/06/2012 02:33, Mike Flannigan wrote: Anybody know why the script below does not work? I can get HTML::TextToHTML to work fine with the infile option, but not the instring option. My htmlout.htm end up with just these 2 lines: I expected it to have abcdefghijklm in it. More info on HT

Re: html::tokeparser

2010-12-07 Thread Rob Dixon
On 07/12/2010 20:42, Jim Gibson wrote: On 12/7/10 Tue Dec 7, 2010 12:17 PM, "shawn wilson" scribbled: i'm messing up somewhere along the way here... i'm trying to get data from a table in a page which should always get defined like this: and i'm looking for an element of the table that l

Re: html::tokeparser

2010-12-07 Thread Jim Gibson
On 12/7/10 Tue Dec 7, 2010 12:17 PM, "shawn wilson" scribbled: > i'm messing up somewhere along the way here... > > i'm trying to get data from a table in a page which should always get > defined like this: > > > > > and i'm looking for an element of the table that looks like this: > > Le

Re: html print

2010-04-16 Thread Shlomi Fish
Hi Shawn, first of all I should note that I suspect that you have been under some stress, and you're taking it on me. It's quite unlike you. Is this indeed the case? Now I'll reply to what you say. On Tuesday 13 Apr 2010 16:07:26 Shawn H Corey wrote: > Shlomi Fish wrote: > > Which arguments do

Re: html print

2010-04-13 Thread Shawn H Corey
Shlomi Fish wrote: Which arguments do you give in favour of using << shift(@_); >> instead of << shift; >>? The fact that << shift; >> extracts out of @_ or @ARGV by default is documented in "perldoc -f shift;" http://perldoc.perl.org/functions/shift.html and, like I noted, the programmer know

Re: html print

2010-04-13 Thread Shlomi Fish
Hi Chris, On Monday 12 Apr 2010 14:25:04 Chris Coggins wrote: > Shlomi Fish wrote: > > Hi Chris, > > > > A few comments on your code - some of which may help you. > > > > On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: > >> I'm having trouble getting a piece of data from a form input to prin

Re: html print

2010-04-12 Thread Shlomi Fish
Hi Shawn, Thanks for your message. Thanks for trimming my message so carefully and not replying to all my points. (That was sarcasm.) On Monday 12 Apr 2010 17:50:14 Shawn H Corey wrote: > Shlomi Fish wrote: > > Because people often don't know for sure what is the right way, and > > confuse it.

Re: html print

2010-04-12 Thread John W. Krahn
Shlomi Fish wrote: On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: print < You should always say <<"STOPHTML" <<'STOPHTML' <<`STOPHTML` etc. with explicit quotes depending on what you say. Otherwise, you may not be sure that it's doing the right thing (nor will your readers). As a rea

Re: html print

2010-04-12 Thread Shawn H Corey
Shlomi Fish wrote: Because people often don't know for sure what is the right way, and confuse it. On the other hand, people don't normally think that "shift;" How do you know what people think? You're assuming because it's easy for you, it will be easy for everyone. -- Just my 0.0002

Re: html print

2010-04-12 Thread Shlomi Fish
Hi Shawn, I hope it's OK that I CC the list on it. On Monday 12 Apr 2010 15:37:02 Shawn H Corey wrote: > Shlomi Fish wrote: > > {{{ > > my $hash = shift; > > }}} > > Always put the array after a shift: > >my $hash = shift @_; > Well, you don't need to in this case as <> inside a subroutin

Re: html print

2010-04-12 Thread Chris Coggins
Shlomi Fish wrote: Hi Chris, A few comments on your code - some of which may help you. On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: I'm having trouble getting a piece of data from a form input to print in html. Here's the relevant portion of my code sub subroutine { I hope

Re: html print

2010-04-12 Thread Shlomi Fish
Hi Chris, A few comments on your code - some of which may help you. On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: > I'm having trouble getting a piece of data from a form input to print in > html. Here's the relevant portion of my code > > sub subroutine { I hope you didn't call your subr

Re: HTML::TreeBuilder - handle invalid html gracefully

2009-08-23 Thread Roman Makurin
On Sun, Aug 23, 2009 at 02:56:44PM +0400, Roman Makurin wrote: > Hi All! > > How can I tell HTML::TreeBuilder to parse invalid html files > gracefully ? Here is an example: > > - > #!/usr/bin/perl > > use strict; > use warnings; > > use HTML::TreeBuilder; > > my $root = HTML::TreeBuilder->

Re: HTML::TreeBuilder encode symbols as html entities

2009-08-14 Thread Roman Makurin
On Fri, Aug 14, 2009 at 5:35 PM, Shawn H. Corey wrote: > Roman Makurin wrote: >> >> dump result is html encoded entities: >> >> @0.1.5.1 >>  > title="Ссылка ">@0.1.5.1.0 >> >> all html entities are valid unicode code points of symbols. But why >> HTML::TreeBuilder convert symbols to entities ? > >

Re: HTML::TreeBuilder encode symbols as html entities

2009-08-14 Thread Shawn H. Corey
Roman Makurin wrote: dump result is html encoded entities: @0.1.5.1 @0.1.5.1.0 all html entities are valid unicode code points of symbols. But why HTML::TreeBuilder convert symbols to entities ? Because some browsers do not understand Unicode. Or they didn't. If I just do print $conten

Re: html template loops not showing data

2009-07-10 Thread Steve Bertrand
scott wrote: > Jim Gibson wrote: >> On 7/10/09 Fri Jul 10, 2009 2:25 PM, "Shawn H. Corey" >> scribbled: >> >>> On Fri, 2009-07-10 at 15:19 -0600, Scott wrote: Hello, >> Here is my code on the perl side: my @wall_data = (); while(my $wallref = $wallpostquery->fetchrow_has

Re: html template loops not showing data

2009-07-10 Thread Scott
Jim Gibson wrote: On 7/10/09 Fri Jul 10, 2009 2:25 PM, "Shawn H. Corey" scribbled: On Fri, 2009-07-10 at 15:19 -0600, Scott wrote: Hello, Here is my code on the perl side: my @wall_data = (); while(my $wallref = $wallpostquery->fetchrow_hashref()) { my %walldata; $walldata{WALL_SUBJECT

Re: html template loops not showing data

2009-07-10 Thread Jim Gibson
On 7/10/09 Fri Jul 10, 2009 2:25 PM, "Shawn H. Corey" scribbled: > On Fri, 2009-07-10 at 15:19 -0600, Scott wrote: >> Hello, >> Here is my code on the perl side: >> >> my @wall_data = (); >> while(my $wallref = $wallpostquery->fetchrow_hashref()) >> { >> my %walldata; >> >> $walldata{WALL_SU

Re: html template loops not showing data

2009-07-10 Thread Scott
Shawn H. Corey wrote: On Fri, 2009-07-10 at 15:19 -0600, Scott wrote: Hello, I almost have this but cannot figure out why its not showing the data, right now it knows how many entries im putting in because it spits out that number of rows. I am getting my data from dbd::mysql, it works becau

Re: html template loops not showing data

2009-07-10 Thread Shawn H. Corey
On Fri, 2009-07-10 at 15:19 -0600, Scott wrote: > Hello, > I almost have this but cannot figure out why its not showing the data, > right now it knows how many entries im putting in because it spits out > that number of rows. > > I am getting my data from dbd::mysql, it works because i have test

Re: HTML Template

2009-06-08 Thread dan
On Tue, 9 Jun 2009 08:42:04 +0800, practicalp...@gmail.com wrote: > Hello, > > I will begin a new project, which is medium large, with about 200 CGI > scripts with Perl. > We have designers who make HTML/JS/CSS etc. > I want to choose a template system which will let perl code be > separated from

Re: HTML Template

2009-06-08 Thread Raymond Wan
Hi Jenn, practicalp...@gmail.com wrote: I will begin a new project, which is medium large, with about 200 CGI scripts with Perl. We have designers who make HTML/JS/CSS etc. I want to choose a template system which will let perl code be separated from front-page codes (like html,css etc). I hav

Re: HTML Stipper with an option for directories and multiple files

2008-12-22 Thread Mr. Shawn H. Corey
On Mon, 2008-12-22 at 13:59 -0800, bdy wrote: > On Nov 18, 9:34 am, bdy120...@gmail.com (Bdy) wrote: > > Does any one know if there is a HTML stripper module that contains an > > option to strip multiple files across multiple directories. > > > > Having a helluva time finding one and getting the st

Re: HTML Stipper with an option for directories and multiple files

2008-12-22 Thread bdy
On Nov 18, 9:34 am, bdy120...@gmail.com (Bdy) wrote: > Does any one know if there is a HTML stripper module that contains an > option to strip multiple files across multiple directories. > > Having a helluva time finding one and getting the strippers and > parsers to work as I'd like them to. > > T

Re: HTML Stipper with an option for directories and multiple files

2008-11-19 Thread cc96ai
Use: - HTML::Parser to parse - File::Find to loop the directory and file -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: HTML Stipper with an option for directories and multiple files

2008-11-18 Thread Stealth
On Tuesday 18 November 2008 09:34:52 am bdy wrote: > Does any one know if there is a HTML stripper module that > contains an option to strip multiple files across multiple > directories. > > Having a helluva time finding one and getting the strippers and > parsers to work as I'd like them to. > > T

Re: HTML::TreeBuilder help

2008-07-17 Thread Rob Dixon
Ryan wrote: > > The Dump method gives me this: > cellpadding="0" cellspacing="0" width="100%"> @0.1.1.0.1.0.0.0.0.1 > @0.1.1.0.1.0.0.0.0.1.0 >@0.1.1.0.1.0.0.0.0.1.0.0 > > How can I make use of "@0.1.1.0.1.0.0.0.0.1" if I know that's t

Re: html trees Can't call method "as_text" on unblessed reference

2008-05-01 Thread Rob Dixon
Pat Rice wrote: > Hi all > getting the following error with html trees, > I think its due to not using a global variable. > > but when I try an "our" variable for the tree object I still hit the > same issue, i htnk my problem is getting the orignal object. > > > Any ideas > > > Can't cal

Re: HTML::Parser does give any result of its "sub text{...}".

2007-10-16 Thread Patrik Hasibuan
Dear Tom, Thank you for your help. You solved my problem. And I apologize because I understood Jenda's advice very slowly. Again thanks. === On Fri, 12 Oct 2007 19:40:16 -0700 "Tom Phoenix" <[EMAIL PROTECTED]> wrote: > On 10/12/07, Patrik Hasibuan <[EMAIL PROTECTED]> wrote: > > > Please tell m

Re: HTML::Parser does give any result of its "sub text{...}".

2007-10-16 Thread Patrik Hasibuan
Hi Jenda, You solved my problem. Thank you very...very... much. === On Sat, 13 Oct 2007 02:10:42 +0200 "Jenda Krynicky" <[EMAIL PROTECTED]> wrote: > From: Patrik Hasibuan <[EMAIL PROTECTED]> > > I want to parse HTML files those I retrieve with "LWP::UserAgent". For the > > p

Re: HTML::Parser does give any result of its "sub text{...}".

2007-10-12 Thread Tom Phoenix
On 10/12/07, Patrik Hasibuan <[EMAIL PROTECTED]> wrote: > Please tell me my mistake. I'll catch enough to give you something to do, and leave the rest for you and others to find. :-) > use HTML::Parser; It looks as if you're not subclassing HTML::Parser. Isn't that obligatory? Jenda already gav

Re: HTML::Parser does give any result of its "sub text{...}".

2007-10-12 Thread Patrik Hasibuan
Dear Jenda and friends... I modified the code but the result is still empty. Please tell me my mistake. === Here is my current code: #!/usr/bin/perl -w use strict; use LWP::UserAgent; use HTML::Parser; my @result=''; my @judul=''; my @bodi=''; my $tekshslparse=''; my $title=''; my $body=''; my

Re: HTML::Parser does give any result of its "sub text{...}".

2007-10-12 Thread Jenda Krynicky
From: Patrik Hasibuan <[EMAIL PROTECTED]> > I want to parse HTML files those I retrieve with "LWP::UserAgent". For the > parsing I use "HTML::Parser". > But the parsing process does not give any result. I still do not understand > the documentation those I get from > - http://ww

Re: html template and tables

2007-08-31 Thread Chas Owens
On 8/30/07, Pat Rice <[EMAIL PROTECTED]> wrote: snip > #!/usr/bin/perl > > use strict; > use warnings; Good form, keep doing this. > > my $data_file = 'myfile/var/log/my.log'; > print "$data_file \n"; > ># Open the file for reading. > open (DATA, "$data_file") or die "can't open $data_file $!

RE: Html within code

2007-07-26 Thread Andrew Curry
I wouldn't say wrong no, but there are modules out there to make things easier such as the CGI module and multiple others. _ From: Johnson, Reginald (GTI) [mailto:[EMAIL PROTECTED] Sent: 25 July 2007 16:49 To: beginners@perl.org Subject: FW: Html within code Is coding this way wrong

Re: html source to text file

2007-04-05 Thread xavier mas
El Jueves 05 Abril 2007 20:21, Chas Owens escribió: > On 4/5/07, xavier mas <[EMAIL PROTECTED]> wrote: > > HI all, > > > > I am trying to get from a Perl program the source code of a web page and > > after to push it into a text file. I'm not able to find to way to do that > > or even don't know if

Re: html source to text file

2007-04-05 Thread Chas Owens
On 4/5/07, xavier mas <[EMAIL PROTECTED]> wrote: HI all, I am trying to get from a Perl program the source code of a web page and after to push it into a text file. I'm not able to find to way to do that or even don't know if that is possible somehow, someway. Any suggestions? snip What you w

Re: HTML::TreeBuilder - finding a text element

2007-03-25 Thread Rob Dixon
Brandino Andreas wrote: Hi list I am using HTML::TreeBuilder to parse a html page and find a specific value. When i dump the array i get this: $tree->dump(); more.. @0.1.0.1.1.0.0.0.0 @0.1.0.1.1.0.0.0.0.0 "MAC Address"

Re: HTML::TokeParser question

2006-12-20 Thread Rob Dixon
Mathew Snyder wrote: > > I have a script which runs WWW::Mechanize to obtain a page so it can be parsed > for email addresses. However, I can't recall how I'm supposed to use > HTML::TokeParser to get what I need. This is the pertinent part of the > script: > > ... > my $data = $agent->conte

Re: HTML::TokeParser question

2006-12-20 Thread Rob Dixon
Mumia W. wrote: > On 12/19/2006 10:58 PM, Mathew Snyder wrote: >> I have a script which runs WWW::Mechanize to obtain a page so it can be >> parsed for email addresses. However, I can't recall how I'm supposed to use >> HTML::TokeParser to get what I need. This is the pertinent part of the >> sc

Re: HTML::TokeParser question

2006-12-20 Thread Mumia W.
On 12/19/2006 10:58 PM, Mathew Snyder wrote: I have a script which runs WWW::Mechanize to obtain a page so it can be parsed for email addresses. However, I can't recall how I'm supposed to use HTML::TokeParser to get what I need. This is the pertinent part of the script: ... my $data = $ag

Re: HTML Form question

2006-10-20 Thread Randal L. Schwartz
> ""Omega" == "Omega -1911" <[EMAIL PROTECTED]> writes: "Omega> On 10/18/06, Robert Hicks <[EMAIL PROTECTED]> wrote: >> I have this as an option field: >> >> Business Objects Support >> >> Is the "value" what gets passed back? In this case "5"? >> "Omega> The associated *name* and *value*

Re: HTML Form question

2006-10-18 Thread Robert Hicks
Omega -1911 wrote: On 10/18/06, Robert Hicks <[EMAIL PROTECTED]> wrote: I have this as an option field: Business Objects Support Is the "value" what gets passed back? In this case "5"? The associated *name* and *value* are passed on to the Perl script if you are pointing your form to a Perl

Re: HTML Form question

2006-10-18 Thread Omega -1911
On 10/18/06, Robert Hicks <[EMAIL PROTECTED]> wrote: I have this as an option field: Business Objects Support Is the "value" what gets passed back? In this case "5"? The associated *name* and *value* are passed on to the Perl script if you are pointing your form to a Perl script. For example

Re: html - timtowtdi

2006-07-07 Thread Tom Allison
Thomas Bätzler wrote: Tom Allison <[EMAIL PROTECTED]> wrote: OK, perl almost has a problem with how many different ways to make web pages. I was looking around for something that was simple but mostly fast and "common" You might also want to check out Embperl and Mason - the latter being

Re: html - timtowtdi

2006-07-06 Thread OROSZI Balázs
Tom Allison wrote: OK, perl almost has a problem with how many different ways to make web pages. I was looking around for something that was simple but mostly fast and "common" (meaning I'll find mention of it in job postings some day...). Template and HTML::Template seem to be some pretty

RE: html - timtowtdi

2006-07-06 Thread Thomas Bätzler
Tom Allison <[EMAIL PROTECTED]> wrote: > OK, perl almost has a problem with how many different ways to > make web pages. > > I was looking around for something that was simple but mostly > fast and "common" You might also want to check out Embperl and Mason - the latter being an extension buil

Re: HTML to Text

2006-05-03 Thread JupiterHost.Net
And why not post an example of your catch to illustrate it for the benefit of the list? Because I was busy and I knew you would do it ;-) Hee hee, yeah true enough :) But if you know "this exact block of HTML", how about: my @strings = ( "string 1", "string 2", ... ); Because most likele

Re: HTML to Text

2006-05-03 Thread Paul Johnson
On Wed, May 03, 2006 at 10:04:26AM -0500, JupiterHost.Net wrote: > Paul Johnson wrote: > >On Tue, May 02, 2006 at 04:43:34PM -0500, JupiterHost.Net wrote: > > > >>>Basically, right now I just need the HTML to Text output, like I > >>>explained. > > > >>"I want to grab strings between the p tags i

Re: HTML to Text

2006-05-03 Thread JupiterHost.Net
Paul Johnson wrote: On Tue, May 02, 2006 at 04:43:34PM -0500, JupiterHost.Net wrote: Basically, right now I just need the HTML to Text output, like I explained. "I want to grab strings between the p tags in this exact block of HTML" to which I would reply: my @strings = $html =~ m{(.*)}g

Re: HTML to Text

2006-05-02 Thread Paul Johnson
On Tue, May 02, 2006 at 04:43:34PM -0500, JupiterHost.Net wrote: > >Basically, right now I just need the HTML to Text output, like I explained. > "I want to grab strings between the p tags in this exact block of HTML" > > to which I would reply: > > my @strings = $html =~ m{(.*)}g; Yeah. Depe

Re: HTML to Text

2006-05-02 Thread JupiterHost.Net
Your specification is incomplete. It is simple, not incomplete. Actually it was ambiguous :) Se below to see what I mean (and probably what the post that said it was incomplete meant) What if it says: Data that I need Do you want in your response? Or stripped? Or that part of i

Re: HTML to Text

2006-05-02 Thread Scott Taylor
On Tue, May 2, 2006 12:55, Randal L. Schwartz wrote: >> "Scott" == "Scott Taylor" <[EMAIL PROTECTED]> writes: > > Scott> my simple input file will look like this: > > Scott> > Scott> > Scott> Bin Server > Scott> > Scott> > Scott> Data that I need > Scott> Data that I need > Scott> > Sc

RE: HTML to Text

2006-05-02 Thread Scott Taylor
On Tue, May 2, 2006 13:45, Russ Foster wrote: >> -Original Message- >> >> >> >> Bin Server >> >> >> Data that I need >> Data that I need >> >> >> >> I want the output to just be lines of "Data that I need" stored in a >> string, that I can work on each line one at a time, or in an

RE: HTML to Text

2006-05-02 Thread Russ Foster
> -Original Message- > > > > Bin Server > > > Data that I need > Data that I need > > > > I want the output to just be lines of "Data that I need" stored in a > string, that I can work on each line one at a time, or in an array or > something like that would be great. I would fir

Re: HTML to Text

2006-05-02 Thread Randal L. Schwartz
> "Scott" == "Scott Taylor" <[EMAIL PROTECTED]> writes: Scott> my simple input file will look like this: Scott> Scott> Scott> Bin Server Scott> Scott> Scott> Data that I need Scott> Data that I need Scott> Scott> Scott> I want the output to just be lines of "Data that I need" stored

Re: HTML::TokeParser, get HTML

2005-11-22 Thread Ing. Branislav Gerzo
Ing. Branislav Gerzo [IBG], on Tuesday, November 22, 2005 at 13:42 (+0100) thinks about: IBG> while(my $tag = $parser->get_tag('b')) { IBG> my $text = $parser->get_text(); IBG> last if $text =~ /^(this and that|or that and this)/i; IBG> } IBG> my $text = $parser->get_text('b', 'b

Re: HTML parsing

2005-03-30 Thread FreeFall
I am new to Perl too and have a little try: #!/usr/bin/perl use warnings; use strict; my @data; while (<>) { chomp; push @data,$_ if !/^\ wrote: > Hi all, > > I'm brand new to Perl, and have just a little programming background. I was > tasked with parsing a set of .html

RE: HTML::Template help continues....

2005-03-29 Thread Charles K. Clarkson
Hawkes, Mick I wrote: : Here is the test page: : : : Oh, you're one of those no DOCTYPE people, huh. :) : [snipped helpful code. : status:"> That should be: status: : " selected> That should be (note the missing spaces): " selected> Bett

RE: HTML parsing

2005-03-29 Thread Charles K. Clarkson
Offer Kaye wrote: : while (defined(my $token = $parser->get_tag("font"))) { :my $data = $parser->get_text; #get the data :$data =~ s/^\s+//; #get rid of extra whitespace the :$data =~ s/\s+$//; # the beginning and end :push @all_data,$data; # save the d

Re: HTML parsing

2005-03-29 Thread Offer Kaye
On Mon, 28 Mar 2005 15:49:38 -0500, Daniel Smith wrote: > Hi all, > > I'm brand new to Perl, and have just a little programming background. I was > tasked with parsing > a set of .html files in order to extract the data contained within some > terribly formatted tables. > Here is a sample of

Re: HTML parsing

2005-03-29 Thread Felix Geerinckx
On 28/03/2005, Daniel Smith wrote: > I was tasked with parsing a set of .html files in order to extract > the data contained within some terribly formatted tables. [...] > Can anyone shed some light? I used HTML::Treebuilder on a similar project once: #! /usr/bin/perl use warnings;

RE: HTML::Template help

2005-03-28 Thread Charles K. Clarkson
Hawkes, Mick I wrote: [snipped code] That code has nothing to do with the template (and it looks really ugly -- use some white space). : As I said above all the other parameters are returned, this one, : which is the only pulldown select I use, doesn't : :

Re: HTML::Template help

2005-03-28 Thread Offer Kaye
On Tue, 29 Mar 2005 13:51:44 +1000, Hawkes, Mick I wrote: > Hi all, > > All i want is a pull down select to work. I can get it to display passed data > but I just can't get it to > return the selection. here is a code snippit (its inside a table) . > > "> You're missing a "<" before the "TMPL"

RE: HTML::Template help

2005-03-28 Thread Hawkes, Mick I
Hawkes, Mick I wrote: : All i want is a pull down select to work. I can get it to display : passed data but I just can't get it to return the selection. here is : a code snippit (its inside a table) . : : ">

RE: HTML::Template help

2005-03-28 Thread Charles K. Clarkson
Hawkes, Mick I wrote: : All i want is a pull down select to work. I can get it to display : passed data but I just can't get it to return the selection. here is : a code snippit (its inside a table) . : : "> : " selected> >Open : Pending : Closed : : : so why doe

Re: html to xml (RSS)

2004-12-12 Thread Chris Devers
On Fri, 10 Dec 2004, Lincoln wrote: > Anybody know of a script to generate an rss feed from a regular static html > document? Maybe one that would update the feed when the page is updated? Isn't the whole point of RSS to not be static? The usual approach would be more along the lines of using

Re: HTML::Tree help

2004-11-30 Thread Ing. Branislav Gerzo
Jonathan Paton [JP], on Tuesday, November 30, 2004 at 16:04 (+) thinks about: JP> As always, programmer time is more valuable than computer time. I have to agree, I now this. My office computer never stops count something (on idle time it counts mersenne prime number:) JP> Correctness is als

Re: HTML::Tree help

2004-11-30 Thread Ing. Branislav Gerzo
Randy W. Sims [RWS], on Tuesday, November 30, 2004 at 11:41 (-0500) wrote: first of all - thanks for reply, I thought, I didn't get one, because I have always specific problems, such this :) RWS> There are basically two types of parser: 1) the type that reads in html, RWS> xml, etc. and builds an

Re: HTML::Tree help

2004-11-30 Thread Randy W. Sims
Ing. Branislav Gerzo wrote: Hi all, I have to parse some thousand of html files, so I'd like to use some html parser, and not my own regexpes. Htmls I am parsing are quite complex, so I need your help. First of all, is HTML::Tree good and fast module? Because, I am not sure if I have to look for so

Re: HTML::Tree help

2004-11-30 Thread Jonathan Paton
As always, programmer time is more valuable than computer time. Correctness is also handy. Even if it takes you longer to learn a module than hack away, next time you encounter a similar problem you should be quicker. HTML::Tree is slow, it builds up a collection of objects representing the docu

RE: HTML::TokeParser::Simple / get_attr

2004-11-24 Thread Brian Volk
tr") foreach (1..11); $parser->get_tag("td"); my $lg_desc = $parser->get_text(); print "Large Description: $lg_desc\n"; Thanks again! - Brian > -Original Message- > From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] > Sent: Wedn

RE: HTML::TokeParser::Simple / get_attr

2004-11-24 Thread Charles K. Clarkson
Brian Volk <[EMAIL PROTECTED]> wrote: : Hi All, : : I'm trying to only get the text from w/in a certain table in : the HTML source. Right now I am getting all the text in the : source. : Here is my script I made notes in the script. : : #!/usr/bin/perl -w Always use strict. use strict

Re: HTML::TableExtract

2004-10-18 Thread Todd Lewis
Added more print statements in the code to see where it is hanging. Looks like I have an endless loop since the table I want to extract is not there. Found a way around the endless loop. The print statement I placed inside the loop was not executing. Placed a variable change in side the loop. If

Re: HTML::TableExtract

2004-10-18 Thread Todd Lewis
It appears to hang after getting the last page. I have it outputting to screen as well as writing to file so that I can see what is going on untill it's ready. use LWP::UserAgent; use HTTP::Request::Common; use HTML::TableExtract; use Data::Dumper; use constant FIELD_DELIM => ','

RE: HTML::TableExtract

2004-10-17 Thread Charles K. Clarkson
Todd Lewis <[EMAIL PROTECTED]> wrote: : I'm using HTML::TableExtract to pull data from a web page. : : the Table depth is always 6,1. It just sometimes is not there : when the page is brought up. How can I tell that the table is : missing using this procedure. I'm trying to error trap this : situ

Re: HTML indentation not fine

2004-10-13 Thread Chris Devers
On Wed, 13 Oct 2004, Anish Kumar K. wrote: > I wrote a program which will replace all the hardcoded things to some > values specific to one client. for example designed a template with > http://learn.perl.org/>

RE: HTML::Entities issue

2004-04-29 Thread Jan Eden
Hi Charles, Charles K. Clarkson wrote on 29.04.2004: >Jan Eden <[EMAIL PROTECTED]> wrote: >It may be an issue with your terminal software. Is >your terminal the place you expect to display results >of a script like this? Have you tried it under a >different terminal emulation? > > I tried

RE: HTML::Entities issue

2004-04-29 Thread Charles K. Clarkson
Jan Eden <[EMAIL PROTECTED]> wrote: : : I have the following script (just a test): : : --- : #!/usr/bin/perl -w : : use strict; : use HTML::Entities; : : my $string = 'Alfred Döblin: Berlin Alexanderplatz'; : my $string2 = 'Alfred Döblin: Berlin Alexanderplatz'; : : $string = decode_entities(

Fwd: Re: Re: HTML problems in perl running

2004-03-19 Thread Xiangli Zhang
.   Good Luck,   Josimar - Original Message - From: Xiangli Zhang To: [EMAIL PROTECTED] Sent: Thursday, March 18, 2004 5:22 PM Subject: Fwd: Re: HTML problems in perl running Hi, Josimar: The followings are the file what I ran, and the result what I got

Fwd: Re: HTML problems in perl running

2004-03-18 Thread Xiangli Zhang
Hi, Josimar: The followings are the file what I ran, and the result what I got actually. Thank you for quick response, Talk to you later, Justin   The file is:   #!/usr/bin/perluse CGI qw/:standard/;print header(),  start_html(-title=>'Wow!'),  h1('Wow!'),  'Look Ma, no hands!', 

Re: HTML::Mason and Dreamweaver

2004-02-09 Thread Kevin Old
On Mon, 2004-02-09 at 05:21, Christian Wattengård wrote: > Are there any good solutions to this? > I mean using the design features of Dreamweaver with mason... Christian, I seriously doubt there is or ever will be unless Mason becomes a national phenomenon. Also, might want to try post Mason re

Re: HTML reports via email

2004-01-26 Thread Jenda Krynicky
From: "Paul Harwood" <[EMAIL PROTECTED]> > I am trying to learn the best way to send HTML formatted reports via > e-mail using the standard modules that come with Perl 5.8. The > examples I have seen assign blocks of HTML code to scalars and pass > them to the NET::SMTP datasend() method etc. I wa

Re: HTML reports via email

2004-01-26 Thread Daniel Staal
--As off Sunday, January 25, 2004 5:30 PM -0800, Paul Harwood is alleged to have said: I am trying to learn the best way to send HTML formatted reports via e-mail using the standard modules that come with Perl 5.8. The examples I have seen assign blocks of HTML code to scalars and pass them to t

Re: HTML reports via email

2004-01-26 Thread Randal L. Schwartz
> "Paul" == Paul Harwood <[EMAIL PROTECTED]> writes: Paul> I am trying to learn the best way to send HTML formatted reports via Paul> e-mail using the standard modules that come with Perl 5.8. The examples Paul> I have seen assign blocks of HTML code to scalars and pass them to the Paul> NET:

Re: Html::tokeparser::simple

2003-11-28 Thread R. Joseph Newton
Paul Kraus wrote: > Someone want to show me how this module can help parse out html? > > I want to grap text between text being able to apple regexp to > get what I want. > > The problem is my text is among 10,000 td tags. With the only difference > being what the above tag has in it. > > So if t

Re: Html::tokeparser::simple

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 12:30 US/Pacific, Paul Kraus wrote: Someone want to show me how this module can help parse out html? I want to grap text between text being able to apple regexp to get what I want. The problem is my text is among 10,000 td tags. With the only difference being what

Re: Html::tokeparser::simple

2003-11-26 Thread R. Joseph Newton
Paul Kraus wrote: > Someone want to show me how this module can help parse out html? > > I want to grap text between text being able to apple regexp to > get what I want. > > The problem is my text is among 10,000 td tags. With the only difference > being what the above tag has in it. > > So if t

Re: html 2 text

2003-09-06 Thread John W. Krahn
Ramprasad A Padmanabhan wrote: > > Is there a module to convert html to text http://search.cpan.org/author/KILINRAX/HTML-Strip-1.01/ John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: HTML Tags matching

2003-08-31 Thread David Wall
--On Saturday, August 30, 2003 10:35 PM -0400 K Old <[EMAIL PROTECTED]> wrote: On Sat, 2003-08-30 at 22:14, [EMAIL PROTECTED] wrote: [trying to parse HTML with regexes] Have a look at the HTML::Parser module at http://search.cpan.org/dist/HTML-Parser/ Or if that module seems strange, there's th

Re: HTML Tags matching

2003-08-31 Thread K Old
On Sat, 2003-08-30 at 22:14, [EMAIL PROTECTED] wrote: > I have a text file with HTML tags just like this: > > ABI/INFORM > Academic Search Premier > Business Source Premier > > How do I go about pulling the text only without the tags. This is what I am > trying and it is not properly working: >

RE: HTML::Mason - Upload File

2003-08-29 Thread perl
---Original Message- From: K Old [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 1:24 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: HTML::Mason - Upload File On Fri, 2003-08-29 at 13:14, Paul Kraus wrote: > Can someone point me to some information on how to use mason

Re: HTML::Mason - Upload File

2003-08-29 Thread K Old
On Fri, 2003-08-29 at 13:14, Paul Kraus wrote: > Can someone point me to some information on how to use mason to upload a > file to a webserver? > > We have an intranet setup and I am creating a page that will allow are > adv dept to send out are weekly newsletter/fax. > > The need to be able to

Re: html files for ppms

2003-06-19 Thread Beau E. Cox
- Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 2:41 AM Subject: Re: html files for ppms > From: "Beau E. Cox" <[EMAIL PROTECTED]> > > I have some custom html do

RE: html smtp

2003-06-18 Thread Tim Johnson
Very generally, you will need to send the line Content-Type: text/html in your header before the data section. Then you can use regular html tags to format your text. -Original Message- From: anthony To: [EMAIL PROTECTED] Sent: 6/18/03 12:26 AM Subject: html smtp Hi, I would like t

  1   2   >