Re: urgent need for installing perl 5.8.0

2004-03-09 Thread Randy W. Sims
On 03/10/04 02:44, Nilay Puri, Noida wrote: Hi All, I want to install perl 5.8.0 on sun solaris. I am not getting the tar for perl 5.8.0 At the site ftp://ftp.cpan.org/pub/CPAN/src/5.0/ on trying to download perl-5.8.0.tar.gz I get error file not found. At other mirror sites I get the same error

urgent need for installing perl 5.8.0

2004-03-09 Thread Nilay Puri, Noida
Hi All, I want to install perl 5.8.0 on sun solaris. I am not getting the tar for perl 5.8.0 At the site ftp://ftp.cpan.org/pub/CPAN/src/5.0/ on trying to download perl-5.8.0.tar.gz I get error file not found. At other mirror sites I get the same error. I downlaoded stable.tar.gz , which again

Conditional formatting in Excel

2004-03-09 Thread Saadat Saeed
Okay - why doesn't conditional formatting work? Are my OLE statements correct - or is this more of an Excel issue??? (Over here I am extracting some data from Lotus Notes and dumping it into Excel --- all works fine except for the conditional formatting) use strict; use Win32::OLE; my $fp; my $i;

Re: sorting hash list for CGI Form

2004-03-09 Thread R. Joseph Newton
Scott Taylor wrote: > Hello all, > > When I populate this hash (%SrcIDs) from "SELECT id, desc, from myTable > order by desc" it What does "it" refer to here? If you mean the SQL engine, which does care about the content of order clauses, you are mistaken. Your data set is returned in the prope

Re: Install Storable - ActiveState 5.6 Bld 623

2004-03-09 Thread Clinton
Hi RJN I'm using ActiveState 5.6 Bld 623 I tried perdoc storable - nothing I tried running a script with storable - nothing Located storable.zip at http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/ problem solved. must be a little braindead could not find that link for a couple of hours.

Re: Read from tape device

2004-03-09 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > Hi All, > > I am trying to read some data from af unix tape device. The have several files with > "end of file markers". Can I read from tape devices at all? > > I tried "open" on the device and this one reads all files on the tape into the first > file and then hangs.

Re: Install Storable - ActiveState 5.6 Bld 623

2004-03-09 Thread R. Joseph Newton
Clinton James wrote: > Hi > ActiveState's documentation says Storable is in the Core. It's not in mine. Are you sure? Have you tried: Your_prompt> perldoc Storable at the command line? If the documentation is there, the functionality probably is also. You can also make at least a quick and di

RE: Enable Perl Debugging at Run-Time

2004-03-09 Thread David le Blanc
> -Original Message- > From: WC Jones [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 10 March 2004 11:55 AM > To: David le Blanc > Subject: Re: Enable Perl Debugging at Run-Time > > On Wed, Mar 10, 2004 at 11:15:39AM +1100, David le Blanc wrote: > > > > While inside a CGI script? enlighte

Re: Problem recording the first digits into a scalar

2004-03-09 Thread Flemming Greve Skovengaard
Yes, your code is more readable and fail safe. Also I was not aware of the performance penalty in using $&, so thanks for teaching me something too. I am still learning Perl. Wiggins d Anconia wrote: This should give you what you need: my $digit = 0; foreach (@commands) { /^\d+/;

RE: Enable Perl Debugging at Run-Time

2004-03-09 Thread David le Blanc
> -Original Message- > From: zentara [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 10 March 2004 1:41 AM > To: [EMAIL PROTECTED] > Subject: Re: Enable Perl Debugging at Run-Time > > On Tue, 9 Mar 2004 12:07:18 +1100, > [EMAIL PROTECTED] (David Le Blanc) wrote: > > > > >Hey all. > > > >

Re: backreferences

2004-03-09 Thread Stuart White
> See if this example gets you going. > > James > > #!/usr/bin/perl > > use strict; > use warnings; > > while () { > if (m/\[([A-Z0-9 -]+)\] > (\w+).+(?:Steal|Assist|Block|replaced by): > (\w+)/) { > print "$1 $2 $3\n"; > } > } That got me started. I do have a que

Re: Installing DBI

2004-03-09 Thread Adam Jacobson
Thanks. I thought I checked this. it works now. - Original Message - From: "Daniel T. Staal" <[EMAIL PROTECTED]> To: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Tuesday, March 09, 2004 6:44 PM Subject: Re: Installing DBI > --As of Tuesday, March 9, 2004 6:05 PM -0500, Adam Jacobson is

Re: Logical problem with small script??

2004-03-09 Thread Gordon Low
Thanks to all for replying, biggest mistake I made was not clearing the string but have been comparing how others would have done the same script and finding it very useful. Am not a great scripter so all hints welcome, will be checking scripts for techniques. On Wed, 2004-03-10 at 09:09, John

Re: HERE DOCUMENTS and teachable moments

2004-03-09 Thread Robin Sheat
On Wed, Mar 10, 2004 at 11:30:35AM +1100, David le Blanc wrote: > Can we create a 'how do' keyed on 'problems answered' rather > than 'pure perl'. After all, who reads a 'how to' for something > they are not trying to do at the time :-) I started my own for my own problems at: http://www.kallisti

RE: HERE DOCUMENTS and teachable moments

2004-03-09 Thread David le Blanc
> -Original Message- > From: WC -Sx- Jones [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 9 March 2004 5:54 PM > To: [EMAIL PROTECTED] > Subject: Re: HERE DOCUMENTS and teachable moments > > R. Joseph Newton wrote: > > > Better just to respond to the situations as they arise. > Sometimes t

RE: problem with play AOA

2004-03-09 Thread Charles K. Clarkson
Shiping Wang <[EMAIL PROTECTED]> wrote: : I try to slice AOA into two subsets, then put them back. The problem : is when I put them back, I couldn't do what I like, for example: : : How can I do it and where I am wrong? Let's take the last part first: : ... and where I am wrong? [snip] : my

How do I read a Property File into ENV.

2004-03-09 Thread Viraj Purang
I have a list of 20-30 properties ("name=value" associations) that I need to read in at runtime.Is there a simpler way of doing it than parsing each line thru . Viraj B. Purang Arzoon Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Installing DBI

2004-03-09 Thread Daniel T. Staal
--As of Tuesday, March 9, 2004 6:05 PM -0500, Adam Jacobson is alleged to have said: I thought about the binary vs. alpha option. Which is correct? --As for the rest, it is mine. Well, since you aren't transferring a plain text file, I would choose the binary option... Daniel T. Staal --

Re: Installing DBI

2004-03-09 Thread Adam Jacobson
I thought about the binary vs. alpha option. Which is correct? - Original Message - From: "Wiggins d Anconia" <[EMAIL PROTECTED]> To: "Adam Jacobson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 09, 2004 5:35 PM Subject: Re: Installing DBI > > > > Hi > > I am trying t

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Randal L. Schwartz
> "Michael" == Michael C Davis <[EMAIL PROTECTED]> writes: Michael> At 09:52 AM 3/9/04 -0700, Wiggins d Anconia wrote: >> ... >> a framework for handling time slicing, or event >> programming tasks, or multi-tasking processes Michael> If that's what it is, these terms localize it pretty well

Re: Installing DBI

2004-03-09 Thread Wiggins d Anconia
> > Hi > I am trying to install DBI on AIX 5. Perl is working great. I also had no problem installing PERL on my own windows laptop. > I have found the DBI-1.41.tar.gz file and have successfully downloaded it. (I need to download it to windows and then transfer the file to unix because of netwo

Re: Variable matching.....

2004-03-09 Thread John W. Krahn
Silverfox wrote: > > Hi all, Hello, > I'm trying to figure out how can I check if a variable matches the > first 5 digits of the line below without removing anything from the line. > > 13384 R 20020920 N Gatekeeper, The In perl, if a variable looks like a number then perl will treat it as a nu

Installing DBI

2004-03-09 Thread Adam Jacobson
Hi I am trying to install DBI on AIX 5. Perl is working great. I also had no problem installing PERL on my own windows laptop. I have found the DBI-1.41.tar.gz file and have successfully downloaded it. (I need to download it to windows and then transfer the file to unix because of network res

Re: Logical problem with small script??

2004-03-09 Thread John W. Krahn
Gordon Low wrote: > > Wondered if anyone can throw some light on why this script won't act > properly. Certainly. > Wrote it to convert a string using a ceaser cipher for a course I am > doing. Basically get the string and replace each character with the > character offset by 3 or 4 up to 26. Ha

Re: sorting hash list for CGI Form

2004-03-09 Thread James Edward Gray II
On Mar 9, 2004, at 3:39 PM, Scott Taylor wrote: Hello all, Howdy. When I populate this hash (%SrcIDs) from "SELECT id, desc, from myTable order by desc" it doesn't order by the description field "desc". (printing each row in the while loop show that the SQL is sorted) See inlined change bel

sorting hash list for CGI Form

2004-03-09 Thread Scott Taylor
Hello all, When I populate this hash (%SrcIDs) from "SELECT id, desc, from myTable order by desc" it doesn't order by the description field "desc". (printing each row in the while loop show that the SQL is sorted) while( my($id, $desc) = $sth->fetchrow ) { $SrcIDs{$id} = $desc; } $sth-

Re: Variable matching.....

2004-03-09 Thread david
Silverfox wrote: > Hi all, I'm trying to figure out how can I check if a variable matches the > first 5 digits of the line below without removing anything from the line. > > 13384 R 20020920 N Gatekeeper, The if you are only concern about digits in front of the line, you don't even need a regex

Re: Variable matching.....

2004-03-09 Thread WilliamGunther
In a message dated 3/9/2004 3:08:10 PM Eastern Standard Time, [EMAIL PROTECTED] writes: >Careful, I believe we want the above capture anchored to the start of >the line, though I prefer the direct match approach... You're right about the anchor, but direct match wouldn't be the preferable method

Re: Variable matching.....

2004-03-09 Thread Wiggins d Anconia
> In a message dated 3/9/2004 2:43:16 PM Eastern Standard Time, > [EMAIL PROTECTED] writes: > >Hi all, I'm trying to figure out how can I check if a variable matches the > >first 5 digits of the line below without removing anything from the line. > > > >13384 R 20020920 N Gatekeeper, The > > > >

Re: Variable matching.....

2004-03-09 Thread Wiggins d Anconia
> Hi all, I'm trying to figure out how can I check if a variable matches the > first 5 digits of the line below without removing anything from the line. > > 13384 R 20020920 N Gatekeeper, The > > Silver Fox > I'm a bit confused, are you trying to test the line against a variable or a variable

Re: Variable matching.....

2004-03-09 Thread WilliamGunther
In a message dated 3/9/2004 2:43:16 PM Eastern Standard Time, [EMAIL PROTECTED] writes: >Hi all, I'm trying to figure out how can I check if a variable matches the >first 5 digits of the line below without removing anything from the line. > >13384 R 20020920 N Gatekeeper, The > >Silver Fox use

Variable matching.....

2004-03-09 Thread SilverFox
Hi all, I'm trying to figure out how can I check if a variable matches the first 5 digits of the line below without removing anything from the line. 13384 R 20020920 N Gatekeeper, The Silver Fox -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Michael C. Davis
At 11:32 AM 3/9/04 -0700, Wiggins d Anconia wrote: > ... "famboozled watchamathingie with xanatically whooziewhatsit" on a beginners list ;-)... Oh yeah, since you bring it up about the whooziewhatsit ... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Wiggins d Anconia
> At 09:52 AM 3/9/04 -0700, Wiggins d Anconia wrote: > > ... > >a framework for handling time slicing, or event > >programming tasks, or multi-tasking processes > > If that's what it is, these terms localize it pretty well for me. "An > event-based framework for handling time-slicing in multitaski

Installing DBI

2004-03-09 Thread Adam Jacobson
Hi I am trying to install DBI on AIX 5. Perl is working great. I also had no problem installing PERL on my own windows laptop. I have found the DBI-1.41.tar.gz file and have successfully downloaded it. (I need to download it to windows and then transfer the file to unix because of network res

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Michael C. Davis
At 09:52 AM 3/9/04 -0700, Wiggins d Anconia wrote: > ... >a framework for handling time slicing, or event >programming tasks, or multi-tasking processes If that's what it is, these terms localize it pretty well for me. "An event-based framework for handling time-slicing in multitasking processes."

Re: backreferences

2004-03-09 Thread Stuart White
Okey doke, I didn't think to think that just changing the subject line would still put the message in the previous thread. My mistake. --- James Edward Gray II <[EMAIL PROTECTED]> wrote: > Stuart, please start new messages for new topics, > instead of replying > to existing threads. > > On Mar

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Wiggins d Anconia
> At 08:54 AM 3/9/04 -0700, Wiggins d Anconia wrote: > >In this case the desire to fork multiple processes and maintain > >bi-directional communication with them becomes a nightmare of dealing > >with forking code, pipes, and all of the other IPC nasties. > >POE::Wheel::Run encapsulates all of t

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Michael C. Davis
At 08:54 AM 3/9/04 -0700, Wiggins d Anconia wrote: >In this case the desire to fork multiple processes and maintain >bi-directional communication with them becomes a nightmare of dealing >with forking code, pipes, and all of the other IPC nasties. >POE::Wheel::Run encapsulates all of that providin

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Wiggins d Anconia
> At 11:08 PM 3/8/04 -0500, Wiggins d'Anconia wrote: > >This is where I do my usual little dance, though untimely as it may be > >in this case, across the stage and say "POE" then exit again as if I was > >still on vacation > > OK, I'll bite. What's so great about POE, and why, oh, why, do

problem with play AOA

2004-03-09 Thread Shiping Wang
Hello, I try to slice AOA into two subsets, then put them back. The problem is when I put them back, I couldn't do what I like, for example: Here is Original array a b 3 4 c d 2 5 e f 13 8 slice into two pieces: print Dumper of array A a b c d e f print Dumper of array B 3 4 2 5 13 8 put them b

POE [WAS:Re: Forking]

2004-03-09 Thread Michael C. Davis
At 11:08 PM 3/8/04 -0500, Wiggins d'Anconia wrote: >This is where I do my usual little dance, though untimely as it may be >in this case, across the stage and say "POE" then exit again as if I was >still on vacation OK, I'll bite. What's so great about POE, and why, oh, why, do you love it

Re: Logical problem with small script??

2004-03-09 Thread James Edward Gray II
On Mar 9, 2004, at 2:28 AM, Gordon Low wrote: Wondered if anyone can throw some light on why this script won't act properly. Looks like you've already been helped with the print problem, but I thought I would add two things. [snip] #!/usr/bin/perl -w use strict; my @alpha = ("a","b","c","d",

Re: backreferences

2004-03-09 Thread James Edward Gray II
Stuart, please start new messages for new topics, instead of replying to existing threads. On Mar 8, 2004, at 8:17 PM, Stuart White wrote: Here's a line: (10:18) [PHX] Stoudemire Turnover: Lost Ball (1 TO) Steal: Jackson (1 ST) I want to match PHX Stoudemire Steal: Jackson See if this example g

Re: backreferences

2004-03-09 Thread James Edward Gray II
On Mar 8, 2004, at 8:17 PM, Stuart White wrote: (5:35) [SAN] Bowen Substitution replaced by Ginobili -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem recording the first digits into a scalar

2004-03-09 Thread Wiggins d Anconia
Please bottom post > This should give you what you need: > > my $digit = 0; > foreach (@commands) { > /^\d+/; > print FILE "DIGIT = $&\n"; > } > While simple, use of $& takes a performance penalty and a readability penalty >From perldoc perlvar: "The use of this variable a

Re: Problem recording the first digits into a scalar

2004-03-09 Thread Wiggins d Anconia
> Hi ppl, > > I have to split a file in pieces and I place every segment in an array. > Each segment begins with digit(s). What I want to do is to parse the > array, and for each segement, record its first digits into a scalar so I > can do further manipulations on it (actually I only print the

Re: Problem recording the first digits into a scalar

2004-03-09 Thread Flemming Greve Skovengaard
This should give you what you need: my $digit = 0; foreach (@commands) { /^\d+/; print FILE "DIGIT = $&\n"; } Hemond, Steve wrote: Hi ppl, I have to split a file in pieces and I place every segment in an array. Each segment begins with digit(s). What I want to do is to parse the a

Problem recording the first digits into a scalar

2004-03-09 Thread Hemond, Steve
Hi ppl, I have to split a file in pieces and I place every segment in an array. Each segment begins with digit(s). What I want to do is to parse the array, and for each segement, record its first digits into a scalar so I can do further manipulations on it (actually I only print the scalar into a

Read from tape device

2004-03-09 Thread kof
Hi All, I am trying to read some data from af unix tape device. The have several files with "end of file markers". Can I read from tape devices at all? I tried "open" on the device and this one reads all files on the tape into the first file and then hangs. Is it my code (I know the first loop

RE: Logical problem with small script??

2004-03-09 Thread EUROSPACE SZARINDAR
Hi Gordon, why don't you use the power of pack and unpack >print unpack ("C",a) # returns 97 >print pack ("i", unpack ("C",A)+3) # returns D >print pack ("i*", map ( $_+=3 , (unpack ("C*",ABCD))) ) # returns DEFG hope it helps Michel -Message d'origine- De: Gordon Low

Install Storable - ActiveState 5.6 Bld 623

2004-03-09 Thread Clinton James
Hi ActiveState's documentation says Storable is in the Core. It's not in mine. There is no binary available. I downloaded v2.04, v2.08, v2.10 from CPAN and ran each 1. perl makefile.pl no problems 2. nmake did not work (results below) I would like to get it working. Any suggestions gratefully re

RE: Logical problem with small script??

2004-03-09 Thread Halkyard, Jim
-Original Message- From: Gordon Low [mailto:[EMAIL PROTECTED] Sent: 09 March 2004 08:29 To: [EMAIL PROTECTED] Subject: Logical problem with small script?? Wondered if anyone can throw some light on why this script won't act properly. Wrote it to convert a string using a ceaser cipher f

[no question, just greeting] hello perl.beginners

2004-03-09 Thread Kevin Pfeiffer
Dear group, Just a quick note to say hello. I've been off trying to learn some Java; wrote one tiny Perl script last week (was like tasting home cooking). Just wanted to check in here. I see that you all are still diligently and patiently helping people with their Perl questions and that this is s

Logical problem with small script??

2004-03-09 Thread Gordon Low
Wondered if anyone can throw some light on why this script won't act properly. Wrote it to convert a string using a ceaser cipher for a course I am doing. Basically get the string and replace each character with the character offset by 3 or 4 up to 26. Have to try up to 26 times so it was crying o

Re: HERE DOCUMENTS and teachable moments

2004-03-09 Thread Robin Sheat
On Tue, Mar 09, 2004 at 08:57:45PM +1300, Robin Sheat wrote: > I was looking through my archives of the list for someone the other day. > I knew it was in there, but had no idea of the subject. If you continue Err, to clarify...was looking for something that wasn't in a howto, just something I sa