what to call my module

2003-02-10 Thread Paul Tremblay
on. Thanks Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to set up Makefile.pl

2003-02-06 Thread Paul Tremblay
Thanks Bob, and thanks RF. I used seek and tell, and now have the data as part of a module. Paul On Wed, Feb 05, 2003 at 05:13:24PM -0500, Bob Showalter wrote: > From: Bob Showalter <[EMAIL PROTECTED]> > To: 'Paul Tremblay' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]

Re: how to set up Makefile.pl

2003-02-05 Thread Paul Tremblay
> >__DATA__ >DO NOT REMOVE THE PRECEDING LINE. > > >Everything else in this file will be ignored. > > See Also > >The "Scalar Value Constructors" section of per

how to set up Makefile.pl

2003-02-04 Thread Paul Tremblay
web but haven't found any straightforward documentation. Thanks Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to distribute a module

2003-02-03 Thread Paul Tremblay
nverts RTF to XML. There are scripts that convert RTF to other formats, but not XML. I have checked several times. I am working with someone else, and he has also checked. (Of course, there is always the possibilithy that I am still wrong!) Thanks Paul -- *Paul Tremb

Re: how to distribute a module

2003-02-02 Thread Paul Tremblay
ht place? This datafile contains the data for character encoding. Obviously, the main script needs to know where to find this data file. Last, there is a dtd. Once my module converts the RTF to XML, in writes a path to the dtd. Again, the script needs to put this dtd some place, and needs to know

how to distribute a module

2003-02-02 Thread Paul Tremblay
make make install make test and have everything working right. Thanks Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: background process

2002-09-22 Thread Paul Tremblay
zip or the burn, then just for you script. > If you use IDE disks though, it may not be a great idea to run a burn > and a zip at the same time, as you are likely to get buffer underruns in > your CD burn. > > > R > > -Original Message- > From: Paul Tremblay [mailto

background process

2002-09-21 Thread Paul Tremblay
be on a CD--in other words, there would be 21 copies of this story if I edited every day for three weeks. After all, I might do some bad editing on day 18 and really wish that I had a copy of the story that I did on day 15. Anyone know of a *well-documented* perl script that does what I wan

finding invalide options in getopt

2002-09-01 Thread Paul Tremblay
nk on perldoc.com for usage::pod, but this link is broken. (I read your tutorial, Drieux, but it was a bit too advanced for me!) Thanks Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: where to put data files

2002-08-29 Thread Paul Tremblay
ry files, and where it reads its data. (I put a variable called $directory at the beginning of the script so a user can change it easily if he wants.) I guess I need to work on the pod documentation. I believe I should be able to simply follow the Perl Cookbook. Thanks Paul > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: convert decimal to hexidecimal

2002-08-28 Thread Paul Tremblay
to convert RTF to XML) uses hexadecimal, so I was thinking along those lines. But yes, I only have to do a simple substitution. None-the-less, I am glad for the tips I have gotten. Who knows if I'll have to convert to hexadecimal sometime in the future? Thanks everyone Paul --

convert decimal to hexidecimal

2002-08-28 Thread Paul Tremblay
s, the two lines above should look like:   ♠ Thanks Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Word and Outlook

2002-08-27 Thread Paul Tremblay
r an array of user records, do the > substitution for each on a copy of '$temp', and e-mail them to the > appropriate user. > > -RN > > -- > > Robin Norwood > Red Hat, Inc. > > "The Sage does nothing, yet nothing remains undone." > -Lao Tzu, Te Tao Ching > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: where to put data files

2002-08-27 Thread Paul Tremblay
On Wed, Aug 21, 2002 at 11:43:43AM -0700, drieux wrote: > On Wednesday, August 21, 2002, at 10:06 , Paul Tremblay wrote: > > > I am writing a script that converts RTF to XML, and this script needs > > to read an external data file to form a hash. I plan to make this >

where to put data files

2002-08-21 Thread Paul Tremblay
, the script outputs to standard output. Future versions might require that the script make one run through the file, write to a temp file, then make a run through the temp file. Where should I put this temp file (if I need to make one, that is)? Thanks Paul -- **** *Paul Tre

to slurp or not to slurp

2002-08-15 Thread Paul Tremblay
7 and 2000. Thanks Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: speed and perl

2002-08-03 Thread Paul Tremblay
On Sat, Aug 03, 2002 at 10:58:24AM +0200, Paul Johnson wrote: > > On Fri, Aug 02, 2002 at 02:08:25AM -0400, Paul Tremblay wrote: > > > (I know I did a little test with sed, a python script, and a perl > > script, just changing the word "the" to "teh"

Re: speed and perl

2002-08-03 Thread Paul Tremblay
o blow python or java or even C right out of the water when it comes to munging text. Paul -- *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

speed and perl

2002-08-01 Thread Paul Tremblay
and a perl script, just changing the word "the" to "teh" in a huge file. Sed and python took about he same time, while perl was six times faster.) Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe,

changing multiple flags and changing them back

2002-08-01 Thread Paul Tremblay
-- *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl IDE's v. Perl Editors was Re: Editor

2002-07-31 Thread Paul Tremblay
nt free choices out there. But nedit is also a good choice as an editor. It is very intuitive and also powerful. Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: fastest way to substitute

2002-07-29 Thread Paul Tremblay
go; And the result is: \ \ & < > \par I'm getting the backslashes in front of my XML tags. I need & < > \par I've tried a number of different variations with no success. Perhaps I will need two lines of substitution in my script, one for backslashed characters

Re: So what is munging?

2002-07-29 Thread Paul Tremblay
arsing and munging? For example, if you wrote a script to convert Word RTF to XML, is that parsing or is that still munging? Paul -- *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: fastest way to substitute

2002-07-27 Thread Paul Tremblay
my hash looks like this: my %rep = qw( ldblquote rdblquote & & > > < < . ); Then you solution shold work. I planned to change my hash, but I guess I got ahead of myslef in my email! Paul -- *Paul

Re: fastest way to substitute

2002-07-27 Thread Paul Tremblay
bs for this text. Even with huge files it shouldn't take more than 1/2 a second or so, and that allows me to use your original method to speed things up. Or this just occurred to me: s[(&)|(<)|(>)|\\($rx)][<$rep{$1}/>]go; Yea, that should work! I also realize that I shouldn&#x

Re: fastest way to substitute

2002-07-26 Thread Paul Tremblay
%rep; $line =~ s[\\($rx) ][<$rep{$1}/>]go; ##print "$line\n"; } #-- # the main loop section timethese $loopcount, { each_line => \&each_line, hash_method => \&hash_method, }; # end of the world as I knew it [EMAIL PROTECTED] all rights reserved #

Re: time comparison

2002-07-26 Thread Paul Tremblay
Hope that helps Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: fastest way to substitute

2002-07-26 Thread Paul Tremblay
of a team, but I've never done something like this before. I guess I'll post feelers on other mailing lists. (This really should be another thread!) Thanks! Paul -- *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

create annoymous hash here?

2002-07-22 Thread Paul Tremblay
cessarily slow down my script. Thanks! Paul -- *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: script too slow?

2002-07-15 Thread Paul Tremblay
x27;\pard' '' '\plain' ' ' '\{' 'All of this text ' '{\i' ' italicized words' '}' ' is ' '\{' '' '\}' ' ' '\}' '' '\{between' ' brackets' '\}' '' '\\' '\\escaped_back_slash' '\par' ' Thanks Paul -- *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: script too slow?

2002-07-14 Thread Paul Tremblay
50. Thanks! Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: script too slow?

2002-07-13 Thread Paul Tremblay
# line ending should come at the \par delimter Also, rtf does this \pard {i The Sun Also Rises \par } I have to read the whole file in and swith it so it reads: \pard {i The Sun Also Rises} \par I tried this on my big document, and it took only 4 tenths of

Re: script too slow?

2002-07-13 Thread Paul Tremblay
rt of the job. Thanks Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

script too slow?

2002-07-13 Thread Paul Tremblay
w the only free utilities for converting rtf to xml are a java utility call majix, which deletes your footnotes and only allows for 9 user-defined styles. If my perl script is too slow, it won't be very useful. Thanks Paul -- **** *Paul Tremblay * *[EMAIL

Re: fastest regexp: split or (.*)?

2002-07-12 Thread Paul Tremblay
I asked a question with an example line, and the same example line was used; I chose two variables, and the same two variables were used. I kept having to say "no they didn't use your code you posed a few hours ago." Paul -- **** *Paul Tremblay

fastest regexp: split or (.*)?

2002-07-11 Thread Paul Tremblay
Thanks! Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: converting html to text

2002-04-05 Thread Paul Tremblay
SHOWN][TABLE NOT SHOWN][TABLE NOT SHOWN][TABLE NOT SHOWN][TABLE NOT SHOWN] I have tried it on five different files. All of these files were from the same website. It appears that this module is broken. That is, it can't handle certain html (which is valid when looked at in a browser). I th

Re: converting html to text

2002-04-04 Thread Paul Tremblay
y did a pretty poor job. A good script might put a "*" before list items, might apporxtimate tables, etc. No sense in hacking something together when someone problably wrote a powerful version. Paul -- *Paul Tremblay * *[EMAIL PROTECTED]* ***

converting html to text

2002-04-04 Thread Paul Tremblay
CPAN module already written. Converting html to text seems like such a common task, that there ought to be some robust scripts out there. Interestingly enough, I found many scripts to convert html to rtf and LaTeX and every other format, but not plain old text! Paul -- ****

Re: anonymous subroutine problem

2002-03-29 Thread Paul Tremblay
quot; #in use at /home/paul/bin/test16.pl line 27. Again, I believe that the reference to the anonymous subroutine expires once I start the 'new' subroutine. If I put the anonymous subroutine within the 'new' subroutine block, t

anonymous subroutine problem

2002-03-27 Thread Paul Tremblay
s as long as I make an anonymous subroutine--no matter where I put it. Thanks! PS: Typos in computer books can really cause you to lose your mind. You keep thinking that you typed something wrong! -- *Paul Tremblay * *[EMAIL PROTECTED]*

path for personal library

2002-03-27 Thread Paul Tremblay
rl scripts tell me it can't find the module. If I use use lib "/home/paul/perl5"; Then I don't get an error message. How do I set a permanent path for my own personal library? Thanks Paul -- *Paul Tremblay * *[EMAIL PROTECTED]* *

Re: looking for book on object oriented perl

2002-03-18 Thread Paul Tremblay
ose with some prior > experience. > > Jonathan Paton > > __ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

looking for book on object oriented perl

2002-03-18 Thread Paul Tremblay
eginner with no previous experience in any object oriented langauge. Thanks! Paul -- **** *Paul Tremblay * *[EMAIL PROTECTED]* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]