Re: Glob and space in directory name

2003-11-26 Thread John W. Krahn
Boris Shor wrote: > > Why does the following work (eg, give me an array filled with matching file > names): > > @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); > > And when I rename the directory to "House 98" (space instead of underscore), > the following does not: > > @filelist = glob("

Re: Html::tokeparser::simple

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 12:30 US/Pacific, Paul Kraus wrote: Someone want to show me how this module can help parse out html? I want to grap text between text being able to apple regexp to get what I want. The problem is my text is among 10,000 td tags. With the only difference being what

Re: sendmail and attachment

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 15:52 US/Pacific, [EMAIL PROTECTED] wrote: I have sendmail working ok with perl by calling sendmail (qmail-inject). However, now I need to send an attachment with it. Can someone tell me how this can be done? The CPAN is your friend, you might want to look at say:

Re: Html::tokeparser::simple

2003-11-26 Thread R. Joseph Newton
Paul Kraus wrote: > Someone want to show me how this module can help parse out html? > > I want to grap text between text being able to apple regexp to > get what I want. > > The problem is my text is among 10,000 td tags. With the only difference > being what the above tag has in it. > > So if t

sendmail and attachment

2003-11-26 Thread perl
I have sendmail working ok with perl by calling sendmail (qmail-inject). However, now I need to send an attachment with it. Can someone tell me how this can be done? fw - eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [EMAIL PROTE

Re: Testing Perl on a Web Page

2003-11-26 Thread R. Joseph Newton
Jeff Westman wrote: > > Everything makes sense and I appreciate your answering me. Now, I assume the > script has to be executable so I will need telnet access. I tried > (instead) to use a perl script I have that does ftp (including site->chmod) > -- assuming I can't telnet. Anyway, I use

Re: Testing Perl on a Web Page

2003-11-26 Thread R. Joseph Newton
Jeff Westman wrote: > Dan Muey <[EMAIL PROTECTED]> wrote: > > > Perfect! Exactly what I was looking for. I can deal with the > paths/permissions/etc. I'm just trying to figure out how to get started. > Oh, would I call this inside a web page with a

Re: perldoc perltoc WAS Using Benchmark module

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 12:21 US/Pacific, Jerry Rocteur wrote: [..] In as much as perldoc is your friend (Just like Google ;-) I find when you first use perldoc you get awfully confused as to which one to look for. I like to use perldoc perltoc and of course

Re: Openning Files Names with Embedded Spaces

2003-11-26 Thread R. Joseph Newton
Jeff Westman wrote: > Hi, > > I am using Active Perl under Windoze 98. I am trying to open a file that has > embedded spaces. I tried escaping the spaces as well, and that didn't work > either. > > #! perl -w > $file = "c:\\win\\start menu\\programs\\system\\tbs montego\\_visit turtle > beach we

Re: Glob and space in directory name

2003-11-26 Thread Steve Grazzini
David Wagner wrote: > Dan Muey wrote: @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); And when I rename the directory to "House 98" (space instead of underscore), the following does not: >> >> The reason is you escaped the space in $MyLoc but not in /House 98/. > > Under

Re: factorial function

2003-11-26 Thread R. Joseph Newton
Rob Dixon wrote: > B. Rothstein wrote: > > > > Does anyone have any suggestions on how to create an array to hold the value > > of 1000 factorial? > > Hi. > > Use Math::BigInt. The program below stores the first 1000 factorials into an > array and prints out the thousandth, which is 2568 digits lo

Sockets and Daemonizing - was Re: Count the no of times a script is called

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 13:28 US/Pacific, Tom Kinzer wrote: drieux suggests: The alternative of course would be to have the 'perl code' start up as a daemon that handled requests on a socket, this way you would save the 'start up' overhead of invoking a new process each time through. Make s

RE: Glob and space in directory name

2003-11-26 Thread Dan Muey
> Understood, but I know that the space within a > directory name must have the \ otherwise it won't work, but > if I try say ( for my testing purposes): > > $MyLoc = "d:/00Common\ Perl/"; > @filelist = glob($MyLoc . "pl0*.pl"); > > The only thing that prints is > d:/00Common >

RE: Glob and space in directory name

2003-11-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Dan Muey wrote: >>> @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); >>> >>> And when I rename the directory to "House 98" (space instead of >>> underscore), the following does not: >>> > > > The reason is you escaped the space in $MyLoc but not in /House 98/. > If you escape the space in

RE: Count the no of times a script is called

2003-11-26 Thread Tom Kinzer
drieux suggests: >The alternative of course would be to have >the 'perl code' start up as a daemon that >handled requests on a socket, this way you >would save the 'start up' overhead of >invoking a new process each time through. Make sure your sys admin is OK with this one. ---

RE: Glob and space in directory name

2003-11-26 Thread Dan Muey
> > @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); > > > > And when I rename the directory to "House 98" (space instead of > > underscore), the following does not: > > The reason is you escaped the space in $MyLoc but not in /House 98/. If you escape the space in /House 98/ (IE /House\

Re: Count the no of times a script is called

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 12:50 US/Pacific, Amit Phatak wrote: I have a fortran program calling a perl script for various parsing activities for multiple number of times. I wish to increment a variable by 1 in the PERL SCRIPT (not the fortran program) to have a record of how many times th

Re: Glob and space in directory name

2003-11-26 Thread Daniel Staal
--As off Wednesday, November 26, 2003 3:58 PM -0500, Boris Shor is alleged to have said: Why does the following work (eg, give me an array filled with matching file names): @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); And when I rename the directory to "House 98" (space instead of under

RE: Glob and space in directory name

2003-11-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Boris Shor wrote: > Why does the following work (eg, give me an array filled with > matching file names): > > @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); > > And when I rename the directory to "House 98" (space instead of > underscore), the following does not: > > @filelist = glob("w:/

RE: Count the no of times a script is called

2003-11-26 Thread Amit Phatak
Implemented that. Not exaclty what you said but something very similar. Thanks for the help. Amit Original Message Follows From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> To: "Amit Phatak" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: RE: Count the no

perldoc perltoc WAS Using Benchmark module

2003-11-26 Thread Jerry Rocteur
On Tuesday, Nov 25, 2003, at 20:11 Europe/Brussels, drieux wrote: On Tuesday, Nov 25, 2003, at 10:29 US/Pacific, Paul Harwood wrote: [..] Perfect, thanks! [..] There are "Clear and Compelling" reasons why we thump on folks about 'perldoc' is your friend. For the life of me I can never remember t

Re: Count the no of times a script is called

2003-11-26 Thread Paul Johnson
On Wed, Nov 26, 2003 at 03:50:57PM -0500, Amit Phatak wrote: > I have a fortran program calling a perl script for various parsing > activities for multiple number of times. I wish to increment a variable by > 1 in the PERL SCRIPT (not the fortran program) to have a record of how many > times t

Glob and space in directory name

2003-11-26 Thread Boris Shor
Why does the following work (eg, give me an array filled with matching file names): @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); And when I rename the directory to "House 98" (space instead of underscore), the following does not: @filelist = glob("w:/stleg/Colorado/House 98/*.htm"); Th

RE: Count the no of times a script is called

2003-11-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Amit Phatak wrote: > I have a fortran program calling a perl script for various parsing > activities for multiple number of times. I wish to increment a > variable by 1 in the PERL SCRIPT (not the fortran program) to have a > record of how many times the script has been called. In simple > words,

Re: Reply to the list WAS Yahoo! Getter

2003-11-26 Thread Daniel Staal
--As off Wednesday, November 26, 2003 9:37 PM +0100, Jerry Rocteur is alleged to have said: I see this a lot of this on this list, Reply to the list, Reply to the list, Reply to the list. If it was the intention of the list manager for people to reply to the list then a reply would go to the list

Count the no of times a script is called

2003-11-26 Thread Amit Phatak
I have a fortran program calling a perl script for various parsing activities for multiple number of times. I wish to increment a variable by 1 in the PERL SCRIPT (not the fortran program) to have a record of how many times the script has been called. In simple words, i have a variable $coun

RE: Reply to the list WAS Yahoo! Getter

2003-11-26 Thread Bob Showalter
Jerry Rocteur wrote: > ... > I see this a lot of this on this list, Reply to the list, > Reply to the > list, Reply to the list. > > If it was the intention of the list manager for people to > reply to the > list then a reply would go to the list, however, a reply goes to the > poster, not the lis

Reply to the list WAS Yahoo! Getter

2003-11-26 Thread Jerry Rocteur
On Tuesday, Nov 25, 2003, at 06:13 Europe/Brussels, Andrew Gaffney wrote: Jason Dusek wrote: On Monday, November 24, 2003, at 10:56 PM, Andrew Gaffney wrote: There is atleast 1 Perl program for downloading Yahoo mail out there. Okay, but let's say I want to /learn/ to do it - since I don't k

Html::tokeparser::simple

2003-11-26 Thread Paul Kraus
Someone want to show me how this module can help parse out html? I want to grap text between text being able to apple regexp to get what I want. The problem is my text is among 10,000 td tags. With the only difference being what the above tag has in it. So if th tag = then store text between i

RE: Testing Perl on a Web Page

2003-11-26 Thread Dan Muey
> > > > > Thanks again...! > > > > No sweat! > > Everything makes sense and I appreciate your answering me. > Now, I assume the script has to be executable so I will > need telnet access. I tried > (instead) to use a perl script I have that does ftp > (including site->chmod) > -- assum

RE: Testing Perl on a Web Page

2003-11-26 Thread Jeff Westman
Dan Muey <[EMAIL PROTECTED]> wrote: > > > > Hello There, > > > > > > > > I would like to see if my ISP has perl available if one > > > > wanted to incorporate perl into a web page. Is there a quick > > > > and dirty web page I can upload to my ISP to test if perl is > > > Try this: > > > > > >

RE: Testing Perl on a Web Page

2003-11-26 Thread Dan Muey
> Dan Muey <[EMAIL PROTECTED]> wrote: > > > > Hello There, > > > > > > I would like to see if my ISP has perl available if one > > > wanted to incorporate perl into a web page. Is there a quick > > > and dirty web page I can upload to my ISP to test if perl is > > Try this: > > > > test.cgi >

RE: Testing Perl on a Web Page

2003-11-26 Thread Bob Showalter
Jeff Westman wrote: > Hello There, > > I would like to see if my ISP has perl available if one wanted to > incorporate perl into a web page. Is there a quick and dirty web > page I can upload to my ISP to test if perl is available and works ? > I would also like to see what version of perl is ru

RE: Testing Perl on a Web Page

2003-11-26 Thread Jeff Westman
Dan Muey <[EMAIL PROTECTED]> wrote: > > Hello There, > > > > I would like to see if my ISP has perl available if one > > wanted to incorporate perl into a web page. Is there a quick > > and dirty web page I can upload to my ISP to test if perl is > Try this: > > test.cgi > #!/usr/bin/perl -w

RE: Testing Perl on a Web Page

2003-11-26 Thread Dan Muey
> Hello There, > > I would like to see if my ISP has perl available if one > wanted to incorporate perl into a web page. Is there a quick > and dirty web page I can upload to my ISP to test if perl is Try this: test.cgi #!/usr/bin/perl -w use strict; use CGI 'header'; print header(); print "/

Re: Testing Perl on a Web Page

2003-11-26 Thread Wiggins d Anconia
> Hello There, > > I would like to see if my ISP has perl available if one wanted to incorporate > perl into a web page. Is there a quick and dirty web page I can upload to my > ISP to test if perl is available and works ? I would also like to see what > version of perl is running ? > > Could

Testing Perl on a Web Page

2003-11-26 Thread Jeff Westman
Hello There, I would like to see if my ISP has perl available if one wanted to incorporate perl into a web page. Is there a quick and dirty web page I can upload to my ISP to test if perl is available and works ? I would also like to see what version of perl is running ? Could someone post some

Re: symbol Perl_get_sv

2003-11-26 Thread Ying Liu
> Stylish! > > It appears that you have a multi-perl environment. > This will allow you to work in both the 5.8 world > and the 5.5 world - although I would still recommend > that you chat with your SysAdmin about upgrading > the /usr/perl5/bin/perl to the 5.6.1 version. > > ciao > drieux > Than

Re: symbol Perl_get_sv

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 08:46 US/Pacific, Ying Liu wrote: [..] /usr/local/bin/perl -v This is perl, v5.8.0 built for sun4-solaris Now, I see where the problem is. Thanks, Ying Stylish! It appears that you have a multi-perl environment. This will allow you to work in both the 5.8 world and t

RE: symbol Perl_get_sv

2003-11-26 Thread Ying Liu
Thanks! I see the conflict here: > When for instance, you type > %perl -v This is perl, version 5.005_03 built for sun4-solaris > %which perl /bin/perl /usr/local/bin/perl -v This is perl, v5.8.0 built for sun4-solaris Now, I see where the problem is. Thanks, Ying -- To unsubscribe, e-

Re: symbol Perl_get_sv

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 08:05 US/Pacific, NYIMI Jose (BMB) wrote: [..] Anyway, i noticed something that bother me in your post: That is version of your perl on your machine: 5.8.0 and 5.00503 [..] A part of the issue seems to be that minor glitch, In one of the updates Sun came out with a 5

RE: symbol Perl_get_sv

2003-11-26 Thread NYIMI Jose (BMB)
So ldd said all expected objects are there. I was suspecting a missing one. In that case ldd would say libm.so.1 => not found For instance. Anyway, i noticed something that bother me in your post: That is version of your perl on your machine: 5.8.0 and 5.00503 When for instance, you type %perl -v

Re: symbol Perl_get_sv

2003-11-26 Thread drieux
On Tuesday, Nov 25, 2003, at 20:15 US/Pacific, Ying Liu wrote: [..] I am working on this, lots of new things (include what's meaning of 'You Are So Toast'). bear with us, we are all learning, the phrase 'you are so Toast' - is an americanism denoting 'burnt' and/or 'fried' - not operable. Actually,

RE: symbol Perl_get_sv

2003-11-26 Thread Ying Liu
Jose, After I ran, it shows me: > %ldd /mz/hd/liuyi/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Tk/Event/Event.so libm.so.1 => /usr/lib/libm.so.1 libc.so.1 => /usr/lib/libc.so.1 libdl.so.1 =>/usr/lib/libdl.so.1 /usr/platform/SUNW,Sun-Blade-100/lib/

Re: Is slicing web images possible with perl?

2003-11-26 Thread Rob Dixon
<[EMAIL PROTECTED]> wrote: > > I've tried to install image magic on my server a couple years ago, but found > out it wasn't necessary for my project. But now I may need it. All I want > to do is slice an image and add it to a database. It has to be executed > automaticall from a script. Hi. Ha

RE: Is slicing web images possible with perl?

2003-11-26 Thread Dan Muey
> I've tried to install image magic on my server a couple years > ago, but found I believe Image::Magick and Imager can help you grab certain area of an image into another image objetc with which you can do as you please. HTH DMuey > out it wasn't necessary for my project. But now I may

RE: factorial function

2003-11-26 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > > B. Rothstein wrote: > > > Does anyone have any suggestions on how to create an array to > > > hold the value of 1000 factorial? > > > > This will compute it: > > > > perl -MMath::BigInt -le '$n = Math::BigInt->new("1"); $n *= $_ for > > 2..1000; print $n' > > > > in

RE: factorial function

2003-11-26 Thread drowl
> B. Rothstein wrote: >> Does anyone have any suggestions on how to create an array to hold the >> value of 1000 factorial? > > This will compute it: > > perl -MMath::BigInt -le '$n = Math::BigInt->new("1"); $n *= $_ for > 2..1000; print $n' > in trying to understand this i guess that: $n = Math:

RE: factorial function

2003-11-26 Thread Bob Showalter
B. Rothstein wrote: > Does anyone have any suggestions on how to create an array to hold > the value of 1000 factorial? This will compute it: perl -MMath::BigInt -le '$n = Math::BigInt->new("1"); $n *= $_ for 2..1000; print $n' You can stick the result in an array if you want... -- To unsubscr

Re: perl is slick

2003-11-26 Thread Todd W.
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Todd W. wrote: > > > > "Rob Dixon" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > Todd wrote: > > > > > > > > Perl is so slick: > > > > > > > > if ( $self->{code} ) { > > > > $string = $self->{co

Re: factorial function

2003-11-26 Thread Rob Dixon
B. Rothstein wrote: > > Does anyone have any suggestions on how to create an array to hold the value > of 1000 factorial? Hi. Use Math::BigInt. The program below stores the first 1000 factorials into an array and prints out the thousandth, which is 2568 digits long. It also runs incredibly quickl

Re: Openning Files Names with Embedded Spaces

2003-11-26 Thread Rob Dixon
Jeff wrote: > > I am using Active Perl under Windoze 98. I am trying to open a file that has > embedded spaces. I tried escaping the spaces as well, and that didn't work > either. > > #! perl -w > $file = "c:\\win\\start menu\\programs\\system\\tbs montego\\_visit turtle beach web > site.lnk"; >

Re: factorial function

2003-11-26 Thread drowl
>>Does anyone have any suggestions on how to create an array to hold the >> value of 1000 factorial? > > Do you mean 1000! > > That's a super-sized number--something like 10-to-the-2566th power, if > I am using Sterling's approximation correctly. > > I don't know of a numeric type that stores suc

RE: symbol Perl_get_sv

2003-11-26 Thread NYIMI Jose (BMB)
Try ldd : %ldd /mz/hd/liuyi/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Tk/Event/Event.so Or %ldd -s /mz/hd/liuyi/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Tk/Event/Event.so %man ldd Reformatting page. Please Wait... done User Commands

Re: factorial function

2003-11-26 Thread Shawn O'Donnell
Does anyone have any suggestions on how to create an array to hold the value of 1000 factorial? Do you mean 1000! That's a super-sized number--something like 10-to-the-2566th power, if I am using Sterling's approximation correctly. I don't know of a numeric type that stores such animals. If you