Re: Wide character in print at HTML::TreeBuilder::XPath function

2020-01-26 Thread John SJ Anderson
> That, I am very grateful to report, solved that question. I guess the > scope of "use utf8;" is more narrow than I had thought. When you have a bit of time, sitting down and reading through https://github.com/rgs/p5-intelligible-unicode is a re

Re: Wide character in print at HTML::TreeBuilder::XPath function

2020-01-26 Thread Lars Noodén
On 1/26/20 9:58 AM, Lars Noodén wrote: > I've got a long script that has "use utf8;" near the top. The script > parses some HTML and then I run into trouble when printing the result as > shown below: > > use utf8; > use HTML::TreeBuilder::XPath; &

Wide character in print at HTML::TreeBuilder::XPath function

2020-01-25 Thread Lars Noodén
I've got a long script that has "use utf8;" near the top. The script parses some HTML and then I run into trouble when printing the result as shown below: use utf8; use HTML::TreeBuilder::XPath; . . . my $xhtml = HTML::TreeBuilder::XPath->new; $xhtm

Re: Match HTML ...... string over multiple

2014-11-18 Thread Lars Noodén
On Tue, Nov 18, 2014 at 12:22 PM, mimic...@gmail.com wrote: > I am trying to extract a table (.. > until ) and its content from an HTML file. Because there can be nested tables and other elements that can throw off simple regex parsing, I would try either HTML::TokeParser, HTML::Toke

Re: Match HTML ...... string over multiple

2014-11-18 Thread Charles DeRykus
On Tue, Nov 18, 2014 at 12:22 PM, mimic...@gmail.com wrote: > I am trying to extract a table (.. until > ) and its content from an HTML file. > > With the file I have something like this > > > title="Product "> > . > . > . > > > > T

Re: Match HTML ...... string over multiple

2014-11-18 Thread Octavian Rasnita
Hi, Don't use regular expressions for matching. use HTML::TreeBuilder; my $tree = HTML::TreeBuilder->new_from_content($html_content); my $div = $tree->look_down( _tag => 'div', id => 'product', class => 'product' ); my $table = $div->look_

Match HTML ...... string over multiple

2014-11-18 Thread mimic...@gmail.com
I am trying to extract a table (.. until ) and its content from an HTML file. With the file I have something like this . . . There could be more that one table in the file.however I am only interested in the table within . /^.*.+?()\s*<\/div>.*$/ims The above and various variat

Re: Perl CGI-html quotation marks

2014-07-04 Thread Shlomi Fish
7;/data&tracks=DNA,transcript_with_no_features,Genes&highlight=\') > > > > '; > > > > print $html1; > > print $directory; > > print $html3; > > print $directory; > > print $html2; > > print $directory; > > print $html4; > &

Re: Perl CGI-html quotation marks

2014-07-04 Thread Uri Guttman
t $html1; print $directory; print $html3; print $directory; print $html2; print $directory; print $html4; Another person in my group had a look at it today and let me know that I hadn't closed the button THING with a ">". Apparently with that it's able to handle the single quotatio

Re: Perl CGI-html quotation marks

2014-07-04 Thread Sam
On 07/04/2014 12:41 AM, Shaji Kalidasan wrote: Here's one way to do it print << "BUTTON"; http://www.example.com')"> BUTTON or: print qq{http://www.example.com')">}; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://l

Re: Perl CGI-html quotation marks

2014-07-04 Thread James Kerwin
ll, >> >> I'm currently using Perl CGI to generate a "Results" webpage. This >> results webpage specifies unique directories generated within the script >> and print these in between the blocks of html so various download and >> display buttons work. >>

Re: Perl CGI-html quotation marks

2014-07-03 Thread Shaji Kalidasan
generate a "Results" webpage. This >> results webpage specifies unique directories generated within the script >> and print these in between the blocks of html so various download and >> display buttons work. >> >> My problem is that I'm using a butt

Re: Perl CGI-html quotation marks

2014-07-03 Thread Uri Guttman
On 07/03/2014 12:16 PM, James Kerwin wrote: Hello all, I'm currently using Perl CGI to generate a "Results" webpage. This results webpage specifies unique directories generated within the script and print these in between the blocks of html so various download and display bu

Perl CGI-html quotation marks

2014-07-03 Thread James Kerwin
Hello all, I'm currently using Perl CGI to generate a "Results" webpage. This results webpage specifies unique directories generated within the script and print these in between the blocks of html so various download and display buttons work. My problem is that I'm using a b

Re: Grabbing HTML fields, return them as hash

2014-06-10 Thread Christopher Brenk
, Jun 9, 2014 at 12:25 PM, Mike wrote: > Hello everyone. Can anyone point me in the direction of a module that will > allow me to grab HTML fields and return them as a hash? > > Thanks. > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional

Re: Grabbing HTML fields, return them as hash

2014-06-09 Thread Hao Wu
http://mojolicio.us/perldoc/Mojo/DOM not exactly what you want, but it is good to use. On Mon, Jun 9, 2014 at 12:25 PM, Mike wrote: > Hello everyone. Can anyone point me in the direction of a module that will > allow me to grab HTML fields and return them as a hash? > > Thanks.

Grabbing HTML fields, return them as hash

2014-06-09 Thread Mike
Hello everyone. Can anyone point me in the direction of a module that will allow me to grab HTML fields and return them as a hash? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: split an html file

2014-04-22 Thread Mike McClain
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 that would automate the > >process of fixing all the links? > > I'm only a beginner in Perl myself so I don&#x

Re: split an html file

2014-04-21 Thread Uday Vernekar
ffort by your brother, Mike. > > As far as automating the re-assigment of links: Use something like > HTML::TokeParser::Simple - > https://metacpan.org/pod/HTML::TokeParser::Simple > > Then you can replace > http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.ht

Re: split an html file

2014-04-21 Thread 'lesleyb'
split into smaller sections to reduce load time. > Can anyone point me to any tools/modules that would automate the > process of fixing all the links? That's an awesome effort by your brother, Mike. As far as automating the re-assigment of links: Use something like HTML::TokeParser::Sim

Re: split an html file

2014-04-19 Thread Maurice McCarthy
e perl tool or module but I'd imagine that the html editor Bluefish would make this fairly easy, but not automatic. Split your page into several, then lets assume there is one page per letter of the alphabet. You can select all pages as separate tabs and change all references from #A to .

Re: split an html file

2014-04-19 Thread Shlomi Fish
split into smaller sections to reduce load time. > Can anyone point me to any tools/modules that would automate the > process of fixing all the links? Not sure if there's anything ready made, but you can use an HTML parsing/manipulation module or framework. See: * http://perl-begin.

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: about HTML

2014-03-13 Thread Yonghua Peng
what does it mean "take action on it"? thanks. Looking for openstack and python developers. Please check: http://www.nsbeta.info/jobs Thursday, March 13, 2014 10:33 AM -03:00 from Ariel Hosid : >Hi there! >I am needing a module to parse a HTML page and to take action o

Re: about HTML

2014-03-13 Thread Rob Dixon
On 13/03/2014 18:13, Ariel Hosid wrote: 2014-03-13 10:43 GMT-03:00 Rob Dixon On 13/03/2014 18:13, Ariel Hosid wrote: On 13/03/2014 13:33, Ariel Hosid wrote: Hi there! I am needing a module to parse a HTML page and to take action on it. Any idea? There are

Re: about HTML

2014-03-13 Thread Octavian Rasnita
HTML::TreeBuilder++ From: Ariel Hosid I'm using the Perl Package Manager and couldn't find the HTML::TreeBuilder module, but I found the HTML::Element-Library module. Does it include the TreeBuilder module functionality? HTML::TreeBuilder uses HTML::Element and HTML::Parser

Re: about HTML

2014-03-13 Thread Ariel Hosid
I'm using the Perl Package Manager and couldn't find the HTML::TreeBuilder module, but I found the HTML::Element-Library module. Does it include the TreeBuilder module functionality? 2014-03-13 10:43 GMT-03:00 Rob Dixon : > On 13/03/2014 13:33, Ariel Hosid wrote: > >> Hi

Re: about HTML

2014-03-13 Thread Rob Dixon
On 13/03/2014 13:33, Ariel Hosid wrote: Hi there! I am needing a module to parse a HTML page and to take action on it. Any idea? -- Ariel There are several candidates. I would look at HTML::TreeBuilder first. Rob --- This email is free from viruses and malware because avast! Antivirus

about HTML

2014-03-13 Thread Ariel Hosid
Hi there! I am needing a module to parse a HTML page and to take action on it. Any idea? -- Ariel

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
te: >If there is a better list for discussing HTML::TokeParser, I can post >there. I have a code snippet which successfully extracts a piece of a >web page. However, something goes south with the conversion to text. >What should come out as the following > > Temperature 3.

HTML::TokeParser munging characters

2013-12-28 Thread Lars Noodén
If there is a better list for discussing HTML::TokeParser, I can post there. I have a code snippet which successfully extracts a piece of a web page. However, something goes south with the conversion to text. What should come out as the following Temperature 3.2°C Humidity 94

Re: parsing html

2013-08-08 Thread Rob Dixon
On 08/08/2013 18:18, David Precious wrote: On Thu, 8 Aug 2013 22:42:01 +0530 Unknown User wrote: What would be the best module available for parsing html in your opinion? My intention is to parse html that contains a table of 5 columns and any number of rows For parsing HTML tables, you

Re: parsing html

2013-08-08 Thread Charles DeRykus
On Thu, Aug 8, 2013 at 10:18 AM, David Precious wrote: > On Thu, 8 Aug 2013 22:42:01 +0530 > Unknown User wrote: > > > What would be the best module available for parsing html in your > > opinion? My intention is to parse html that contains a table of 5 > > columns and

Re: parsing html

2013-08-08 Thread timothy adigun
On 8 Aug 2013 18:19, "Unknown User" wrote: > > > What would be the best module available for parsing html in your opinion? I would also say look at HTML::TreeBuilder > My intention is to parse html that contains a table of 5 columns and any number of rows, and have a has

Re: parsing html

2013-08-08 Thread Chankey Pathak
Have a look at HTML::PARSER. On Aug 8, 2013 10:50 PM, "Unknown User" wrote: > > What would be the best module available for parsing html in your opinion? > My intention is to parse html that contains a table of 5 columns and any > number of rows, and have a hash ref li

Re: parsing html

2013-08-08 Thread David Precious
On Thu, 8 Aug 2013 22:42:01 +0530 Unknown User wrote: > What would be the best module available for parsing html in your > opinion? My intention is to parse html that contains a table of 5 > columns and any number of rows For parsing HTML tables, you want HTML::TableExtract, IM

parsing html

2013-08-08 Thread Unknown User
What would be the best module available for parsing html in your opinion? My intention is to parse html that contains a table of 5 columns and any number of rows, and have a hash ref like $html->{1}->{col1}=data11, $html->{1}->{col2}=data12 ... $html->{2}->{col1}=data21, $html-&

Re: Is there a way to generate HTML reports?

2013-07-08 Thread *Shaji Kalidasan*
Hi Lesley, Thanks a bunch for letting me know about bunch of options. I am inclined to go with HTML::Template. Thanks once again. I would also like to thank John SJ Anderson, Octavian Rasnita and Ron Weidner for their valuable inputs. Your inputs are timely and valuable. As I have a stringent

Re: Is there a way to generate HTML reports?

2013-07-08 Thread 'lesleyb'
lar to what you see on the output. > Is there any way we to convert these formats into HTML reports? > > My goal is to create good looking HTML reports. Please suggest/advice. > > > Any help is highly appreciated. Hi Shaji I don't know of any module that interprets perl f

Re: Is there a way to generate HTML reports?

2013-07-07 Thread John SJ Anderson
On Sat, Jul 6, 2013 at 7:43 AM, *Shaji Kalidasan* wrote: > My goal is to create good looking HTML reports. Please suggest/advice. N'th-ing the suggestion that you look at a templating system. My current go-to in this area is Text::Xslate (https://metacpan.org/release/Text-Xslate), but t

Re: Is there a way to generate HTML reports?

2013-07-06 Thread Octavian Rasnita
convert these formats into HTML reports? My goal is to create good looking HTML reports. Please suggest/advice. Any help is highly appreciated. best, Shaji If I understood correctly, you need to use a templating system like Template-Toolkit. Octavian

Re: Is there a way to generate HTML reports?

2013-07-06 Thread Ron Weidner
text between is considered a "sub template" and a callback is associated with the command.  This is how I implement things like looping. The main idea of this approach is to build the template file in HTML in the first place, embed tags in the HTML, and separate the process of obtaining

Is there a way to generate HTML reports?

2013-07-06 Thread *Shaji Kalidasan*
Greetings, As I understand, Perl has excellent report-generation capabilities. By using formats, we can actually visualize how our output will look because the definition of a format in Perl is very similar to what you see on the output. Is there any way we to convert these formats into HTML

Re: Local static HTML tree of Perl POD similar to perldoc.perl.com?

2013-04-04 Thread David Christensen
eeze" i386, install tools for installing source packages: $ sudo apt-get install dpkg-dev Install Perl 5.10.1 source package into my home directory: $ apt-get source perl RTFM: $ cd perl-5.10.1/ $ perldoc installhtml Install HTML documents: $ mkdir htdocs $ perl installhtml --podroot=/hom

Re: Local static HTML tree of Perl POD similar to perldoc.perl.com?

2013-04-02 Thread Brian Fraser
On Tue, Apr 2, 2013 at 10:27 PM, David Christensen < dpchr...@holgerdanske.com> wrote: > beginners: > > I would like to create static HTML trees of Perl documentation, similar to > perldoc.perl.com: > > 1. Is there a canonical system path (directory) for such? Is ther

Local static HTML tree of Perl POD similar to perldoc.perl.com?

2013-04-02 Thread David Christensen
beginners: I would like to create static HTML trees of Perl documentation, similar to perldoc.perl.com: 1. Is there a canonical system path (directory) for such? Is there a canonical per-user path for such? For development? 2. Is there a corresponding canonical environment variable for

Re: other ways to parse emails from html?

2013-02-01 Thread Rob Dixon
On 31/01/2013 19:49, Jeswin wrote: Hi again, I tried to use the treebuilder modules to get emails from a webpage html but I don't know enough. It just gave me more headaches. My current method get the emails is to go to the site, put the source code in MS Word, and run a regex to get al

Re: other ways to parse emails from html?

2013-01-31 Thread Charles DeRykus
easier way is to use something like: > > #It will get the emails from links like: href="mailto:n...@host.com";>E-mail > > use strict; > use warnings; > use LWP::Simple; > use HTML::TreeBuilder; > > my $content = get( 'http://www.site.org/' ); > my

Re: other ways to parse emails from html?

2013-01-31 Thread Chris Charley
""Chris Charley"" wrote in message "Jeswin" wrote in message news Hi again, I tried to use the treebuilder modules to get emails from a webpage html but I don't know enough. It just gave me more headaches. My current method get the emails is to go

Re: other ways to parse emails from html?

2013-01-31 Thread Octavian Rasnita
From: "Jeswin" Hi again, I tried to use the treebuilder modules to get emails from a webpage html but I don't know enough. It just gave me more headaches. My current method get the emails is to go to the site, put the source code in MS Word, and run a regex to get all the emai

Re: other ways to parse emails from html?

2013-01-31 Thread Jim Gibson
On Jan 31, 2013, at 11:49 AM, Jeswin wrote: > Hi again, > I tried to use the treebuilder modules to get emails from a webpage > html but I don't know enough. It just gave me more headaches. You should post a short program here that demonstrates the problem you are having. Can y

Re: other ways to parse emails from html?

2013-01-31 Thread Chris Charley
"Jeswin" wrote in message news Hi again, I tried to use the treebuilder modules to get emails from a webpage html but I don't know enough. It just gave me more headaches. My current method get the emails is to go to the site, put the source code in MS Word, and run a regex

Re: other ways to parse emails from html?

2013-01-31 Thread timothy adigun
Hi, On Thu, Jan 31, 2013 at 8:49 PM, Jeswin wrote: > Hi again, > I tried to use the treebuilder modules to get emails from a webpage > html but I don't know enough. It just gave me more headaches. > Have you checked Rob's comments on your last post and how he use the

other ways to parse emails from html?

2013-01-31 Thread Jeswin
Hi again, I tried to use the treebuilder modules to get emails from a webpage html but I don't know enough. It just gave me more headaches. My current method get the emails is to go to the site, put the source code in MS Word, and run a regex to get all the emails in that html page. I th

Re: trying to understand HTML::TreeBuilder::XPath

2013-01-29 Thread Rob Dixon
On 26/01/2013 20:44, Jeswin wrote: > Hi, > I'm trying to parse out the emails addresses from a webpage and I'm > using the HTML::TreeBuilder::XPath module. I don't really understand > XML and it's been a while since I worked with perl*. So far I mashed > up a co

Re: trying to understand HTML::TreeBuilder::XPath

2013-01-28 Thread Charles DeRykus
p to but not including the second double-quote: >> >> if( $link =~ /"mailto:([^"]+)/ ) { > > I've never used HTML::TreeBuilder::XPath, but I highly doubt that > the attr method would return the quotes (and if it did, they > could be single-quotes instead). It wo

Re: trying to understand HTML::TreeBuilder::XPath

2013-01-28 Thread Brandon McCaig
;mailto:([^"]+)/ ) { I've never used HTML::TreeBuilder::XPath, but I highly doubt that the attr method would return the quotes (and if it did, they could be single-quotes instead). It would probably be best to find a module that knows how to properly parse mailto URIs, but failing that I thin

Re: trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Octavian Rasnita
From: "Jeswin" Hi, I'm trying to parse out the emails addresses from a webpage and I'm using the HTML::TreeBuilder::XPath module. I don't really understand XML and it's been a while since I worked with perl*. So far I mashed up a code by looking through past exa

Re: trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Jim Gibson
On Jan 26, 2013, at 3:52 PM, Jim Gibson wrote: > However, if your program is successfully finding all of the tag sections > of the web page, and your only problem is distinguishing between email links > and other types of links, you can use regular expressions to detect mailto > links: > > m

Re: trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Jim Gibson
On Jan 26, 2013, at 12:44 PM, Jeswin wrote: > Hi, > I'm trying to parse out the emails addresses from a webpage and I'm > using the HTML::TreeBuilder::XPath module. I don't really understand > XML and it's been a while since I worked with perl*. So far I mashe

trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Jeswin
Hi, I'm trying to parse out the emails addresses from a webpage and I'm using the HTML::TreeBuilder::XPath module. I don't really understand XML and it's been a while since I worked with perl*. So far I mashed up a code by looking through past examples online. The HTML port

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

HTML::TextToHTML Doesn't Work with instring

2012-06-12 Thread Mike Flannigan
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 HTML::TextToHTML options is located here

Re: Scraping non-html webpage in Perl

2012-05-15 Thread Paolo Gianrossi
tting Solutions > Hi, > > I would like to get some information from a non-html webpage: > > http://www.biomart.org/biomart/martservice?type=datasets&mart=CosmicMartusing > a perl script, and I was wondering if there are any modules out there > that can help me do this. I h

Re: Scraping non-html webpage in Perl

2012-05-15 Thread Randal L. Schwartz
>>>>> "Formatting" == Formatting Solutions >>>>> writes: Formatting> I would like to get some information from a non-html webpage: Formatting> http://www.biomart.org/biomart/martservice?type=datasets&mart=CosmicMartusing Can't fetch t

Re: Scraping non-html webpage in Perl

2012-05-09 Thread Matthew K
#!/usr/bin/perl use LWP::Simple; my $url = 'your website' my $content = get("$url"); print $content;   -- Matt > > From: Formatting Solutions >To: beginners@perl.org >Sent: Wednesday, May 9, 2012 8:11 AM >Subject: Scraping no

Scraping non-html webpage in Perl

2012-05-09 Thread Formatting Solutions
Hi, I would like to get some information from a non-html webpage: http://www.biomart.org/biomart/martservice?type=datasets&mart=CosmicMartusing a perl script, and I was wondering if there are any modules out there that can help me do this. I have so far seen modules that scrape html webpages

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Lesley Binks
On Thu, Apr 26, 2012 at 08:32:29AM -0400, Mark Haney wrote: > On 04/26/2012 07:22 AM, Michael Rasmussen wrote: > > > > >Again, you haven't described why Perl can't create the same HTML the PHP > >does. > > > > > > > > Obviously, I di

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Matthew K
Matt - Original Message - > From: Mark Haney > To: beginners@perl.org > Cc: > Sent: Thursday, April 26, 2012 12:19 PM > Subject: Re: PERL CGI, HTML and PHP > > > Well, I kind of agree with you.  It's still a scripting language. Regardless > of its function. (At l

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Madrigal, Juan A
Just throwing in my two cents: Javascript can run in the backend as well. Take a look at Node.js; http://nodejs.org/ As far as perl on the web end, look into perldancer (http://perldancer.org/), mojolicious (http://mojolicio.us/) or catalyst (http://www.catalystframework.org/) They are all moder

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Mark Haney
On 04/26/2012 08:27 AM, Bob McConnell wrote: From: Mark Haney This exposes the source of your confusion. Javascript is executed in the browser, while Perl, PHP, ASP and JSP are all executed on the server. So JS simply complements all of the others. The biggest issue is that you cannot dep

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Mark Haney
On 04/26/2012 07:22 AM, Michael Rasmussen wrote: Again, you haven't described why Perl can't create the same HTML the PHP does. Obviously, I didn't explain myself quite well enough. Let me try again. I've got a web app I'm building for the company I work for.

RE: PERL CGI, HTML and PHP

2012-04-26 Thread Bob McConnell
> From: Mark Haney > > I understand the desire to 'keep with one scripting language', but what > I don't understand is why take a stand like that, yet continue to use > javascript with PHP and ASP pages. Seems to me, that in the right > instance combining the two can be very powerful. Personally

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Michael Rasmussen
ically derived from a data structure defining previous/next relationships. > I'd really like to be able to output this report to the browser directly > with PHP code in it to match the format of the rest of the interface, the PHP generates some HTML, Perl does that well. > The only w

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Octavian Rasnita
the interwebs to show me how, and since I know how to do it > in PHP, it made sense to combine the two. I guess you may know how to do it in PHP, but wrongly, not in the right way. As it is not recommended to mix HTML and CSS and javascript, but it is better to separate them in differ

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Uri Guttman
On 04/25/2012 07:04 PM, Dr.Ruud wrote: On 2012-04-25 21:53, Shawn H Corey wrote: On 12-04-25 03:18 PM, Mark Haney wrote: FWIW, I've never seen an entire website built completely in perl. Doesn't mean there aren't any, but they must be very few and far between. (No offense to the perl crowd, j

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Dr.Ruud
On 2012-04-25 21:53, Shawn H Corey wrote: On 12-04-25 03:18 PM, Mark Haney wrote: FWIW, I've never seen an entire website built completely in perl. Doesn't mean there aren't any, but they must be very few and far between. (No offense to the perl crowd, just an observation.) Here's a few: am

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Brendan Gilroy
On Wed, Apr 25, 2012 at 3:18 PM, Mark Haney wrote: > On 04/25/2012 02:54 PM, Matthew K wrote: > >> Mark, >> >> - Original Message - >> >>> From: Mark Haney >>> To: Perl Beginners >>> Cc: >>> Sent: Wednesday, April 25,

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Shawn H Corey
On 12-04-25 03:18 PM, Mark Haney wrote: FWIW, I've never seen an entire website built completely in perl. Doesn't mean there aren't any, but they must be very few and far between. (No offense to the perl crowd, just an observation.) Here's a few: amazon.com craiglist.com livejournal.com slash

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Mark Haney
On 04/25/2012 02:54 PM, Matthew K wrote: Mark, - Original Message - From: Mark Haney To: Perl Beginners Cc: Sent: Wednesday, April 25, 2012 11:51 AM Subject: PERL CGI, HTML and PHP I've got, what I hope is a fairly simple problem that someone can point me to the best (or

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Matthew K
Mark, - Original Message - > From: Mark Haney > To: Perl Beginners  > Cc:  > Sent: Wednesday, April 25, 2012 11:51 AM > Subject: PERL CGI, HTML and PHP >  > I've got, what I hope is a fairly simple problem that someone can point me  > to the best (or best pr

PERL CGI, HTML and PHP

2012-04-25 Thread Mark Haney
want. Here's an idea of what I'm doing now: PHP form -> perl CGI -> perl generated HTML (STDOUT) Here's what I'd like to do: PHP form -> perl CGI -> perl generated PHP/HTML (STDOUT) The only way I've come up with is to simply output the report data to

Re: Encoding angle brackets in HTML text nodes

2012-02-27 Thread Rob Dixon
On 28/02/2012 02:46, Webley Silvernail wrote: From: Shlomi Fish > For more information see: http://perl-begin.org/tutorials/bad-elements/ Regards, Shlomi Fish Hi, Shlomi - Thanks for the advice and the link. I appreciate it. Webley Webley you should be aware that Shlomi is referrin

Re: Encoding angle brackets in HTML text nodes

2012-02-27 Thread Webley Silvernail
Hi, Shlomi - Thanks for the advice and the link. I appreciate it. Webley - Original Message - From: Shlomi Fish To: Webley Silvernail Cc: Rob Dixon ; "beginners@perl.org" Sent: Friday, February 24, 2012 12:36 PM Subject: Re: Encoding angle brackets in HTML text nodes Hi W

Re: Encoding angle brackets in HTML text nodes

2012-02-25 Thread Dr.Ruud
On 2012-02-24 03:01, Webley Silvernail wrote: open IN, "$html_file" || die "Can't open input: $!"; Yuck! And that will only die if "$html_file" is "" or "0". -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://lear

Re: Encoding angle brackets in HTML text nodes

2012-02-24 Thread Shlomi Fish
Hi Webley, On Thu, 23 Feb 2012 18:01:11 -0800 (PST) Webley Silvernail wrote: > --Snipped the previous posts as well as some of the redundant bits from > below.-- > > > >Hello Webley. See my comments below. > >>snip > >They are very different: >

Re: Encoding angle brackets in HTML text nodes

2012-02-24 Thread Webley Silvernail
--Snipped the previous posts as well as some of the redundant bits from below.-- >Hello Webley. See my comments below. >>snip >They are very different: > > my $root = HTML::TreeBuilder->new_from_content($content) > >is the same as > >  my $root = HTML::T

Re: Encoding angle brackets in HTML text nodes

2012-02-24 Thread Webley Silvernail
On 23/02/2012 00:59, Webley Silvernail wrote: >> >> I have an HTML page that is updated automatically each day. I am >> using  HTML::TreeBuilder to create and insert the new content. >> >> Most of the time, this works fine, but I've hit a snag when existing &

Re: Encoding angle brackets in HTML text nodes

2012-02-23 Thread Rob Dixon
On 24/02/2012 00:17, Webley Silvernail wrote: On 23/02/2012 00:59, Webley Silvernail wrote: Hey Webley Approach II is the correct one. The problem is with the way you are adding your new content, which is presumably as a text string (in which case HTML::Element is correct to render it as text

Re: Encoding angle brackets in HTML text nodes

2012-02-23 Thread Rob Dixon
On 23/02/2012 00:59, Webley Silvernail wrote: I have an HTML page that is updated automatically each day. I am using HTML::TreeBuilder to create and insert the new content. Most of the time, this works fine, but I've hit a snag when existing text nodes on the page includes a gt or lt s

Encoding angle brackets in HTML text nodes

2012-02-23 Thread Webley Silvernail
I have an HTML page that is updated automatically each day. I am using HTML::TreeBuilder to create and insert the new content. Most of the time, this works fine, but I've hit a snag when existing text nodes on the page includes a gt or lt symbol. For example, I might have an existing el

Making HTML::WikiConverter for MWimporter on Win64

2011-09-22 Thread Pete
Hi – I’ve been trying to get HTML::WikiConverter to build on a Win 2008R2 machine, without success. It might be a simple command syntax problem – I’m pretty new to Perl. I first tried the perl –MCPAN –e “install Bundle::HTMLWikiConverter” which took quite a while compiling various

Re: Parse HTML

2011-07-28 Thread Rob Dixon
On 26/07/2011 21:12, Jeffrey Joh wrote: > On 26 Jul 2011 16:48, Rob Dixon wrote: >> On 25/07/2011 21:17, Jeffrey Joh wrote: >>> >>> Hello, I'm trying to parse HTML files. I want to extract values from >>> tables (1) and from text fields (2). (1)>&

RE: Parse HTML

2011-07-26 Thread shawn wilson
> > > Floor plan: > Big house #9 > > > > I would like to retrieve all of the plan/date/IDs, AND discard all those plans that do not have a proper date_constructed such as "last summer".How could I do that? Jeff > > Date: Tue, 26 Jul 2011 16:48:41 +01

RE: Parse HTML

2011-07-26 Thread Jeffrey Joh
those plans that do not have a proper date_constructed such as "last summer".How could I do that? Jeff > Date: Tue, 26 Jul 2011 16:48:41 +0100 > From: rob.di...@gmx.com > To: beginners@perl.org > CC: johjeff...@hotmail.com > Subject: Re: Parse HTML > > On 25/07/2011 21:1

RE: Parse HTML

2011-07-26 Thread Jeffrey Joh
mx.com > To: beginners@perl.org > CC: johjeff...@hotmail.com > Subject: Re: Parse HTML > > On 25/07/2011 21:17, Jeffrey Joh wrote: > > > > Hello, I'm trying to parse HTML files. I want to extract values from > > tables (1) and from text fields (2). (1) > sr

  1   2   3   4   5   6   7   8   9   10   >