Dirty HTML

2006-06-30 Thread bruce
hi... when it comes to reading/parsing HTML, what's the best mod you've used to effectively clean up the HTML before parsing/manipulating it i'm playing with libxml. is there anything better? -bruce ___ ActivePerl mailing list ActivePerl@listserv.

XPath question....

2006-06-30 Thread bruce
hi... i'm having an issue dealing with a possible XPath/HTML question. I've copied a page from a college website to a file. i've gone through the firefox/html validator and cleaned it up... the follwoing code is what i'm using, but it's giving me an error from the libxml.pm i'm also including th

Re: running perl on linux..

2006-06-30 Thread Brandon
At 12:29 PM 6/30/2006, bruce wrote: >hi... > >i know this list is geared towards windows > >i have a perl script... i can run it with d:perl foo.pl > >i have the 1st line as > !/usr/bin/perl > perl exists in the dir... You will want to use: #!/usr/bin/perl in order to get the shell

Re: running perl on linux..

2006-06-30 Thread Williamawalters
hi bruce --     In a message dated 6/30/2006 3:39:28 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:   > hi...> > i know this list is geared towards windows> > i have a perl script... i can run it with d:perl foo.pl> > i have the 1st line as> !/usr/bin/perl   shouldn't this be ``#

RE: running perl on linux..

2006-06-30 Thread Bowie Bailey
bruce wrote: > hi... > > i know this list is geared towards windows > > i have a perl script... i can run it with d:perl foo.pl > > i have the 1st line as > !/usr/bin/perl > perl exists in the dir... 1st line should be: #!/usr/bin/perl -- Bowie _

Re: running perl on linux..

2006-06-30 Thread David Stanaway
On Unix, scripts uses a shbang, the first 2 characters of the file must be ASCII #! The path after that is executed. Commonly, you will have: #! /usr/bin/env perl -w But if you know that perl will be in /usr/bin/perl then #! /usr/bin/perl -w will work too. Also, it is important that at least

RE: running perl on linux..

2006-06-30 Thread bruce
thanks all... #&^&[EMAIL PROTECTED] fingers.. never type what you tell them to!! -Original Message- From: Thurn, Martin [mailto:[EMAIL PROTECTED] Sent: Friday, June 30, 2006 12:57 PM To: [EMAIL PROTECTED] Subject: RE: running perl on linux.. The shebang line has to start with #, not

RE: running perl on linux..

2006-06-30 Thread Jeff Kiser
| !/usr/bin/perl I'm assuming this is a typo but it should be #!/usr/bin/perl My bet is you have a space,newline,etc. something before #!. The #! perl directive should be the very first thing in your script. Also, if you composed the script on Windows and copied it to a Linux machine, you may

running perl on linux..

2006-06-30 Thread bruce
hi... i know this list is geared towards windows i have a perl script... i can run it with d:perl foo.pl i have the 1st line as !/usr/bin/perl perl exists in the dir... i've changed the mode to be x --> chmod +x foo.pl when i try to directly run using ./foo.pl .foo.pl etc.. i get err

RE: xpath question

2006-06-30 Thread Brian Raven
bruce wrote: > hi brian.. > > thanks for your reply... took a look at the website for the app.. got > a question that i can't find the answer to from the site. > > do you know if the app allows you to select a given item/element from > either the actual html, (or from

RE: xpath question

2006-06-30 Thread bruce
hi brian.. thanks for your reply... took a look at the website for the app.. got a question that i can't find the answer to from the site. do you know if the app allows you to select a given item/element from either the actual html, (or from the dom tree) and will then generate the XPath statemen

RE: xpath question

2006-06-30 Thread stuart arnold
There's a website: http://www.zvon.org/ But does not let you use your data, but it has its own of 4 or 5 xml data sets. Its excellent for learning. Has labs, etc. all free to use. Also does a host of other programming languages. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PR

RE: xpath question

2006-06-30 Thread Brian Raven
bruce <> wrote: > hi... > > in getting information on xpath/xml.. i thought i'd ask these lists > as well... > > i'm trying to find out if there's a tool that i could use to load an > HTML web page into, that would allow me to point to a given > item/element within the Tree/DOM structure and all