split an html file

2014-04-19 Thread Mike McClain
Hi,
My brother Rick, a windrider, put together a webpage,
http://www.photographers1.com/Sailing/NauticalTermsNomenclature.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 that would automate the
process of fixing all the links?
Thanks,
Mike
--
Why is it that all of the instruments seeking intelligent life
in the universe are pointed away from Earth?

-- 
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-19 Thread Shlomi Fish
Hi Mike,

On Thu, 17 Apr 2014 10:01:35 -0700
Mike McClain mike.j...@nethere.com wrote:

 Hi,
 My brother Rick, a windrider, put together a webpage,
 http://www.photographers1.com/Sailing/NauticalTermsNomenclature.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 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.org/uses/text-parsing/

* http://perl-begin.org/uses/web-automation/

(*Note*: perl-begin.org is a site I originated and maintain).

And write some code using it.

Before you do all that, it is a good idea to make sure the HTML markup
validates so the parser will have an easier time:

* http://perl-begin.org/tutorials/bad-elements/#generating_non_valid_markup

See:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.photographers1.com%2FSailing%2FNauticalTerms%26Nomenclature.html

Perhaps https://metacpan.org/pod/HTML::Tidy and
https://github.com/petdance/tidyp will prove of utility.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise

The apple completely supplanted the tree.
— http://www.shlomifish.org/humour/Summerschool-at-the-NSA/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
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-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/NauticalTermsNomenclature.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 that would automate the
process of fixing all the links?
Thanks,
Mike
--
Why is it that all of the instruments seeking intelligent life
in the universe are pointed away from Earth?



Hi,

I'm only a beginner in Perl myself so I don't know the 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 present-url#A to 
pageA-url.


Just an idea
Moss




--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Do 5.18.2 functions is and isnt exist?

2014-04-19 Thread Sherman Willden
I have been reading Modern Perl and in several instances they use is and
isnt. Are these functions available in Perl? I looked at
http://perldoc.perl.org/index-functions.html and couldn't find them. Two
usage examples are shown below.

isnt( $i, 'pig', '$i overwritten with a number' );

is( $nums[9], 100, '10 * 10 is 100' );

Thank you;

Sherman


Re: Do 5.18.2 functions is and isnt exist?

2014-04-19 Thread Shawn H Corey
On Sat, 19 Apr 2014 09:30:40 -0600
Sherman Willden sherman.will...@gmail.com wrote:

 I have been reading Modern Perl and in several instances they use is
 and isnt. Are these functions available in Perl? I looked at
 http://perldoc.perl.org/index-functions.html and couldn't find them.
 Two usage examples are shown below.
 
 isnt( $i, 'pig', '$i overwritten with a number' );
 
 is( $nums[9], 100, '10 * 10 is 100' );
 
 Thank you;
 
 Sherman

Those are function of Test::More. See `perldoc Test::More` for details.


-- 
Don't stop where the ink does.
Shawn

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/