Re: split an html file

2014-04-22 Thread Mike McClain
On Sat, Apr 19, 2014 at 08:30:50AM +0100, Maurice McCarthy wrote: > On 2014-04-17 18:01, Mike McClain wrote: > >Hi, > >My brother Rick, a windrider, put together a webpage, > >http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html > >about sailing and wind surfing that has grown

Re: split an html file

2014-04-21 Thread Uday Vernekar
Awesome..Lesley On Mon, Apr 21, 2014 at 4:00 PM, lesleyb wrote: > On Thu, Apr 17, 2014 at 10:01:35AM -0700, Mike McClain wrote: > > Hi, > > My brother Rick, a windrider, put together a webpage, > > http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html > > about sailing

Re: split an html file

2014-04-21 Thread 'lesleyb'
On Thu, Apr 17, 2014 at 10:01:35AM -0700, Mike McClain wrote: > Hi, > My brother Rick, a windrider, put together a webpage, > http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html > about sailing and wind surfing that has grown too large and should be > split into smaller sectio

Re: split an html file

2014-04-19 Thread Maurice McCarthy
On 2014-04-17 18:01, Mike McClain wrote: Hi, My brother Rick, a windrider, put together a webpage, http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html about sailing and wind surfing that has grown too large and should be split into smaller sections to reduce load time. C

Re: split an html file

2014-04-19 Thread Shlomi Fish
Hi Mike, On Thu, 17 Apr 2014 10:01:35 -0700 Mike McClain wrote: > Hi, > My brother Rick, a windrider, put together a webpage, > http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html > about sailing and wind surfing that has grown too large and should be > split into smaller s

split an html file

2014-04-18 Thread Mike McClain
Hi, My brother Rick, a windrider, put together a webpage, http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html about sailing and wind surfing that has grown too large and should be split into smaller sections to reduce load time. Can anyone point me to any tools/modules tha

Re: Why doesn't LWP get html file?

2008-06-27 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > $html has nothing from the following code. Could someone help me? > Thanks. Always use strict; use warnings; and declare all your variables with 'my'. That way you can fix many coding errors yourself without having to ask for help. > use LWP; > use URI; You don

Re: Why doesn't LWP get html file?

2008-06-27 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: $html has nothing from the following code. Hard to tell what the problem is - the code works for me. Maybe you ought to try something simpler? #!/usr/bin/perl use strict; use warnings; use LWP::Simple; my $Surfurl = 'http://us.randstad.com/webapp/internet/servlet/

Why doesn't LWP get html file?

2008-06-26 Thread trymelz
$html has nothing from the following code. Could someone help me? Thanks. use LWP; use URI; $Browser = LWP::UserAgent->new || die "$!"; my $Surfurl = 'http://us.randstad.com/webapp/internet/servlet/ BranchView?b=702'; my @ns_headers = ( 'User-Agent' => 'Mozilla/5.0 (Windows; U; Windows NT

Re: Parsing HTML file

2008-06-04 Thread Pat Rice
<[EMAIL PROTECTED]> wrote: >> >> I have a HTML file and which contains many tables in it. >> Out of one of the table I want to extract Information of only few of the >> columns. >> Can anybody help me. > > Nobody can help unless you have tried some co

Re: Parsing HTML file

2008-06-02 Thread Jeff Peng
On Mon, Jun 2, 2008 at 5:56 PM, Purohit, Bhargav <[EMAIL PROTECTED]> wrote: > > I have a HTML file and which contains many tables in it. > Out of one of the table I want to extract Information of only few of the > columns. > Can anybody help me. Nobody can help unless you h

Parsing HTML file

2008-06-02 Thread Purohit, Bhargav
I have a HTML file and which contains many tables in it. Out of one of the table I want to extract Information of only few of the columns. Can anybody help me. Thanks in advance Bhargav - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is

Re: Regular expression for extracting hrefs from HTML file

2008-02-04 Thread R (Chandra) Chandrasekhar
Chas. Owens wrote: This is a job for an HTML parser, not a single regex. Thank you for telling me about HTML::Parser, which I will use in future. Gunnar Hjalmarsson wrote: print "$1\n" while $content =~ m|(http://.*?";>)|gis; Thank you for your script (which works!) and most of all for th

Re: Regular expression for extracting hrefs from HTML file

2008-02-03 Thread Gunnar Hjalmarsson
', $file or die "Cannot open $file: $!\n"; while (<$fh>) { if (m|(http://.*?";>)|sg) {print "$1\n";} } close $fh; } print "Finished\n"; -- It seems to work OK on most links in the files I have tried out,

Re: Regular expression for extracting hrefs from HTML file

2008-02-03 Thread Chas. Owens
On Feb 3, 2008 8:50 AM, R (Chandra) Chandrasekhar <[EMAIL PROTECTED]> wrote: > Dear Folks, > > I am trying to construct a regular expression to extract strings having the > structure > > http://...";> > > from HTML files, as part of learning regexes. I have used the script below to > do > this: sn

Regular expression for extracting hrefs from HTML file

2008-02-03 Thread R (Chandra) Chandrasekhar
ot;Cannot open $file: $!\n"; while (<$fh>) { if (m|(http://.*?";>)|sg) {print "$1\n";} } close $fh; } print "Finished\n"; -- It seems to work OK on most links in the files I have tried out, but not on one particular href in a val

Re: Parsing an HTML file - skipping to a line

2007-04-06 Thread Tom Phoenix
On 4/6/07, yitzle <[EMAIL PROTECTED]> wrote: I distrust modules? Dunno. I'm a fan of C programming and like doing stuff myself. I distrust the dairy industry. I've got a yard full of grass for cows to eat, and I've seen what milking a cow looks like on Animal Planet. I can figure out how to pa

Re: Parsing an HTML file - skipping to a line

2007-04-06 Thread Chas Owens
On 4/6/07, Rob Dixon <[EMAIL PROTECTED]> wrote: Tom Phoenix wrote: > > On 4/6/07, yitzle <[EMAIL PROTECTED]> wrote: > >> I'm thinking of doing something like: >> >> do { >> shift @input; >> } while ($input[0] =~ m/string-line to find/); > > Real Perl programmers don't use indices.

Re: Parsing an HTML file - skipping to a line

2007-04-06 Thread Rob Dixon
Tom Phoenix wrote: On 4/6/07, yitzle <[EMAIL PROTECTED]> wrote: I'm thinking of doing something like: do { shift @input; } while ($input[0] =~ m/string-line to find/); Real Perl programmers don't use indices. At least, not like that. I think real Perl programmers use indic

Re: Parsing an HTML file - skipping to a line

2007-04-06 Thread yitzle
I distrust modules? Dunno. I'm a fan of C programming and like doing stuff myself. Granted HTML is free form, but I'm parsing a webpage whose format likely will not change anytime soon, and if it did, even if I was using a module I would still need to fix up the script. I know exactly was format t

Re: Parsing an HTML file - skipping to a line

2007-04-06 Thread Tom Phoenix
On 4/6/07, yitzle <[EMAIL PROTECTED]> wrote: I got an HTML file I want to parse. Then there's a module on CPAN to help you. HTML is very complex stuff. I have it stored in an array or whatever. If I want to skip to a line and go from there, what's the best way? I'm n

Parsing an HTML file - skipping to a line

2007-04-06 Thread yitzle
I got an HTML file I want to parse. I have it stored in an array or whatever. If I want to skip to a line and go from there, what's the best way? I'm thinking of doing something like: do { shift @input; } while ($input[0] =~ m/string-line to find/); (Or a while-do

RE: Sending HTML file as mail from mail command (mail -s )

2005-10-16 Thread Timothy Johnson
Thank you for that sage advice about Perl. -Original Message- From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] Sent: Sat 10/15/2005 9:17 AM To: beginners@perl.org Cc: Subject: Re: Sending HTML file as mail from mail command (mail -s

Re: Sending HTML file as mail from mail command (mail -s )

2005-10-15 Thread Randal L. Schwartz
>>>>> "Mazhar" == Mazhar <[EMAIL PROTECTED]> writes: Mazhar> This above is working fine i need help for sending the same Mazhar> textfile as a HTML file as the body of the mail please help me. I presume these users have explicitly opt'ed *in* fo

Re: Sending HTML file as mail from mail command (mail -s )

2005-10-13 Thread Wiggins d'Anconia
>> am sending across using the command, >> >> cat "textfilename" | mail -s "Subject" set of users >> >> This above is working fine i need help for sending the same >> textfile as a HTML file as the body of the mail please help me. >>

Re: Sending HTML file as mail from mail command (mail -s )

2005-10-13 Thread Josh Brown
ot; | mail -s "Subject" set of users This above is working fine i need help for sending the same textfile as a HTML file as the body of the mail please help me. Thanx in Advance Regards Mazhar Hi Mazhar, What I do is open a filehandle to the sendmail application, then I pri

Re: Sending HTML file as mail from mail command (mail -s )

2005-10-13 Thread Chris Devers
nd, > > cat "textfilename" | mail -s "Subject" set of users > > This above is working fine i need help for sending the same > textfile as a HTML file as the body of the mail please help me. Seeing as you appear to be happy with a solution that doesn'

Sending HTML file as mail from mail command (mail -s )

2005-10-13 Thread Mazhar
s "Subject" set of users This above is working fine i need help for sending the same textfile as a HTML file as the body of the mail please help me. Thanx in Advance Regards Mazhar -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] &l

Re: Problem reading data from an HTML file

2005-09-14 Thread Suvajit Sengupta
Nath, Alok (STSD) wrote: Can anyone point out why it is not outputting anything ? It is suppose to read an HTML file and display the table contents. One thing I observed is - It is not entering the for loop and I s not printing anything ( in print "Table found at ", join(',

Problem reading data from an HTML file

2005-09-14 Thread Nath, Alok (STSD)
Can anyone point out why it is not outputting anything ? It is suppose to read an HTML file and display the table contents. One thing I observed is - It is not entering the for loop and I s not printing anything ( in print "Table found at ", join(',', $ts->coords), &qu

Re: Parsing and HTML file

2005-09-09 Thread Binish A R
Nath, Alok (STSD) wrote: Hi all, I want to read the data from an HTML file say Test.htm.For that I want to use HTML::TableExtract. Can anybody send me some pointers to write the script or give me some sample script ? Thanx, Alok. perldoc HTML::TableExtract

Parsing and HTML file

2005-09-08 Thread Nath, Alok (STSD)
Hi all, I want to read the data from an HTML file say Test.htm.For that I want to use HTML::TableExtract. Can anybody send me some pointers to write the script or give me some sample script ? Thanx, Alok. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Parsing and HTML file and then creating MS-Excel out of it.

2005-08-16 Thread Chris Devers
On Tue, 16 Aug 2005, Nath, Alok (STSD) wrote: > Can anybody send me some pointers for reading an HTML file and > then creating an excel file ? > > Basically what I want to do is read the data in the HTML file and then > create and MS-Excel out of it. I bet you could writ

Parsing and HTML file and then creating MS-Excel out of it.

2005-08-15 Thread Nath, Alok (STSD)
Hi all, Can anybody send me some pointers for reading an HTML file and then creating an excel file ? Basically what I want to do is read the data in the HTML file and then create and MS-Excel out of it. Thanx, Alok. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Clipping ALL Occurrences of a Regex in an HTML File?

2005-02-09 Thread John W. Krahn
Dan Armstrong wrote: I'm using a regular expression to extract text from an html file. My code: while (<>) { if(/\(.*?)<\/FONT>/) { print "$1\n"; } } When I run it on a this big glom of html, I get only the first occurrence, the words LA BELLE EPOQUE

Re: Clipping ALL Occurrences of a Regex in an HTML File?

2005-02-09 Thread Chris Devers
On Wed, 9 Feb 2005, Dan Armstrong wrote: > I'm using a regular expression to extract text from an html file. Why? Regular expressions are really bad at analyzing complex, frequently malformed data like HTML. Your request is an example of that: you're matching on a very specific

Re: Clipping ALL Occurrences of a Regex in an HTML File?

2005-02-09 Thread Jeff Eggen
>>> Dan Armstrong <[EMAIL PROTECTED]> 09/02/2005 1:49:08 pm >>> >When I run it on a this big glom of html, I get only the first >occurrence, the words LA BELLE EPOQUE. So, in the original large glob of html, is it all on one line? What happens when you stick the "g" modifier on your regex? whil

Clipping ALL Occurrences of a Regex in an HTML File?

2005-02-09 Thread Dan Armstrong
I'm using a regular expression to extract text from an html file. My code: while (<>) { if(/\(.*?)<\/FONT>/) { print "$1\n"; } } When I run it on a this big glom of html, I get only the first occurrence, the words LA BELLE EPOQUE. Summary of La

RE: Dump Html file as output from CGI script

2003-08-18 Thread Dan Muey
> Hi Dan, > > I don't think that is actually what he is asking for.Unless I > misunderstand, he is referring to a pass-through program. Of That's why I asked what he meant. The absolut simpleest would be: #!/usr/bin/perl -w use strict; use CGI qw(header); use File::Slurp; pritn header(); p

Re: Dump Html file as output from CGI script

2003-08-14 Thread R. Joseph Newton
Dan Muey wrote: > > Greetings to all that is Perl > > Howdy > > > > > Is it possible to specify using a cgi script to read and > > output a Pure HTML file as output.. so that it can process > > the form data.. > > Do you mean can it output an htm

RE: Dump Html file as output from CGI script

2003-07-10 Thread Dan Muey
> Greetings to all that is Perl Welcome back. > > Is it possible to specify using a cgi script to read and > output a Pure HTML file as output.. so that it can process > the form data.. Yes, you'll want to see CGI perl module. It can help you display html and process

Dump Html file as output from CGI script

2003-07-09 Thread Voodoo Raja
Greetings to all that is Perl Is it possible to specify using a cgi script to read and output a Pure HTML file as output.. so that it can process the form data.. and return a specific html file output to be returned at the browser end.. Thanks Sam

RE: Dump Html file as output from CGI script

2003-07-02 Thread Dan Muey
> Greetings to all that is Perl Howdy > > Is it possible to specify using a cgi script to read and > output a Pure HTML file as output.. so that it can process > the form data.. Do you mean can it output an html form to a browser, process it on submit and return html to the

Dump Html file as output from CGI script

2003-07-01 Thread Voodoo Raja
Greetings to all that is Perl Is it possible to specify using a cgi script to read and output a Pure HTML file as output.. so that it can process the form data.. and return a specific html file output to be returned at the browser end.. Thanks Sam

send e-mail with html integrated with xml (the html file missing)

2003-06-16 Thread Josimar Nunes de Oliveira
The html file wasn´t sent together and its content is: Thanks, Josimar

Re: Printing output to an Existing HTML file

2002-04-10 Thread Kojo Idrissa
Jenda, Thanks for the response. I've been too busy to try it, but I plan to soon. I'll let you and the list know how it works out. Thanks, At 12:32 AM 4/4/2002 +0200, Jenda Krynicky wrote: >From: Kojo Idrissa <[EMAIL PROTECTED]> > > This is probably a simple question, but I

Re: Printing output to an Existing HTML file

2002-04-03 Thread Jenda Krynicky
From: Kojo Idrissa <[EMAIL PROTECTED]> > This is probably a simple question, but I can't seem to find a simple > answer. I'm pretty new to Perl, but I'm learning. > > I've written a small program that performs a calculation, and I want > the result to be displayed on my home pa

Printing output to an Existing HTML file

2002-04-03 Thread Kojo Idrissa
calculation to be redone each time the page is viewed or reloaded. My ISP provides CGI and Perl 5..x, but it's a very basic install, so I'm trying to do it without using a lot of modules. Someone suggested SSI, but I don't think my ISP supports that. I'm pretty sure I can fi

RE: Opening more than one html file for editing

2002-01-23 Thread Nikola Janceski
e used for the older version but it's a little more tricky. check out the page at http://search.cpan.org/doc/JHI/perl-5.7.1/lib/File/Find.pm -Original Message- From: Ben Crane [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 9:55 AM To: [EMAIL PROTECTED] Subject: Opening more

Paragraph marks in Word->HTML file

2001-10-22 Thread Richard Brust
The editing dept does a Save As...*.html on all the MS-Word files we publish. However, in the process, each line in the new HTML file now ends with a paragraph mark. So, I am trying to write a script that deletes HTML tags over new lines (which I got to work), but also over paragraph marks

Re: html file

2001-04-18 Thread Casey West
On Wed, Apr 18, 2001 at 12:37:54PM +0500, arfan wrote: : dear all ; : i have a html file in my /home/arfan and want to watch it in my : browser (netscape). : hoping reply : arfan arfan, This isn't a Perl issue at all. I'm sorry but this is the wrong place for help on this iss

html file

2001-04-18 Thread arfan
dear all ; i have a html file in my /home/arfan and want to watch it in my browser (netscape). hoping reply arfan