Re: string seperated by multiple spaces

2004-06-29 Thread John W. Krahn
Michelle Rogers wrote: > > The point is...if you're wanting to help beginnersbe nicedon't jump > down their throatsI'd prefer not to have that type of help. Use Charles > K. Clarkson, as an example. He said the exact same thing, but said it in a > way that it should be said to beginn

Re: string seperated by multiple spaces

2004-06-28 Thread John W. Krahn
Michelle Rogers wrote: > > The point is...if you're wanting to help beginnersbe nicedon't jump > down their throatsI'd prefer not to have that type of help. Use Charles > K. Clarkson, as an example. He said the exact same thing, but said it in a > way that it should be said to beginn

RE: string seperated by multiple spaces

2004-06-28 Thread Bob Showalter
Naser Ali wrote: > I used "\s*" in split, so I do not have worry about counting the > spaces or tabs between each field I noticed something in the OP that didn't really get addressed: \s* will match an empty string, which will split into a list of single characters. $ perl -le 'print for spli

RE: string seperated by multiple spaces

2004-06-28 Thread Naser Ali
age- From: James Edward Gray II [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 1:05 PM To: Naser Ali Cc: Perl Beginners Subject: Re: string seperated by multiple spaces On Jun 28, 2004, at 11:55 AM, Naser Ali wrote: > But on the other hand there are people on the list like "Mr. Jame

OT: netiquette (was: RE: string seperated by multiple spaces)

2004-06-28 Thread Wiggins d Anconia
> MCMULLIN, NANCY <[EMAIL PROTECTED]> wrote: > > : After all, I thought the name of this group was Perl BEGINNERS... > > So it's not Perl Beginners for TOP POSTERS, Huh? > > Imagine that. :) > So glad I wasn't forced to go there. Time for this to get posted again, IM(not-so)HO, I've

Re: string seperated by multiple spaces

2004-06-28 Thread Gunnar Hjalmarsson
Michelle Rogers wrote: The point is...if you're wanting to help beginnersbe nicedon't jump down their throatsI'd prefer not to have that type of help. Use Charles K. Clarkson, as an example. He said the exact same thing, but said it in a way that it should be said to beginners. 'b

RE: string seperated by multiple spaces

2004-06-28 Thread Charles K. Clarkson
MCMULLIN, NANCY <[EMAIL PROTECTED]> wrote: : After all, I thought the name of this group was Perl BEGINNERS... So it's not Perl Beginners for TOP POSTERS, Huh? Imagine that. :) HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTE

RE: string seperated by multiple spaces

2004-06-28 Thread Wiggins d Anconia
n [mailto:[EMAIL PROTECTED] > Sent: Monday, June 28, 2004 12:39 PM > To: 'Naser Ali'; [EMAIL PROTECTED] > Subject: RE: string seperated by multiple spaces > > > From: Naser Ali <mailto:[EMAIL PROTECTED]> wrote: > > : Below is the actual code. This is just the p

Re: string seperated by multiple spaces

2004-06-28 Thread Gunnar Hjalmarsson
Naser Ali wrote: But on the other hand there are people on the list like "Mr. James Edward Gray II" has some ego problems. No body asked you to answer my question. if you really think beginners like me, for whom this list was created in the first place, are not worthy of your expertise and knowledg

RE: string seperated by multiple spaces

2004-06-28 Thread Charles K. Clarkson
Naser Ali <[EMAIL PROTECTED]> wrote: : Now your polite comments on using warnings make me think : and as well as guilty. Also emphasizes on going an extra : mile at times helps save time. Point well taken, : : But on the other hand there are people on the list like : "Mr. James Edward Gray II" ha

Re: string seperated by multiple spaces

2004-06-28 Thread James Edward Gray II
On Jun 28, 2004, at 11:55 AM, Naser Ali wrote: But on the other hand there are people on the list like "Mr. James Edward Gray II" has some ego problems. No body asked you to answer my question. if you really think beginners like me, for whom this list was created in the first place, are not wort

Re: string seperated by multiple spaces

2004-06-28 Thread Michelle Rogers
> With all due respect, if you can't, then do not help. The world will survive > without your help. That's my point. If help isn't given cheerfully, it does more harm than good. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: string seperated by multiple spaces

2004-06-28 Thread Michelle Rogers
quot; <[EMAIL PROTECTED]> To: "MCMULLIN, NANCY" <[EMAIL PROTECTED]> Cc: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Monday, June 28, 2004 12:47 PM Subject: Re: string seperated by multiple spaces > On Jun 28, 2004, at 11:37 AM, MCMULLIN, NANCY wrote: > > &g

RE: string seperated by multiple spaces

2004-06-28 Thread Naser Ali
EMAIL PROTECTED] Sent: Monday, June 28, 2004 12:39 PM To: 'Naser Ali'; [EMAIL PROTECTED] Subject: RE: string seperated by multiple spaces From: Naser Ali <mailto:[EMAIL PROTECTED]> wrote: : Below is the actual code. This is just the preliminary code : to test the logic, it is not

RE: string seperated by multiple spaces

2004-06-28 Thread MCMULLIN, NANCY
004 10:45 AM To: Michelle Rogers Cc: Perl Beginners Subject: Re: string seperated by multiple spaces On Jun 28, 2004, at 11:32 AM, Michelle Rogers wrote: > wow..somebody woke up on the wrong side of bed, this morning... I wish I could say I was sorry. ;) You think whatever you want of me, but I&

Re: string seperated by multiple spaces

2004-06-28 Thread James Edward Gray II
On Jun 28, 2004, at 11:37 AM, MCMULLIN, NANCY wrote: After all, I thought the name of this group was Perl BEGINNERS... Sure is. And the FIRST thing beginners need to learn is to add strict and warnings to help them learn. It also helps us read your code, which can only be good for you. James -

Re: string seperated by multiple spaces

2004-06-28 Thread Michelle Rogers
PROTECTED]>; "Naser Ali" <[EMAIL PROTECTED]> Cc: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Monday, June 28, 2004 12:37 PM Subject: RE: string seperated by multiple spaces After all, I thought the name of this group was Perl BEGINNERS... -Original Message

Re: string seperated by multiple spaces

2004-06-28 Thread James Edward Gray II
On Jun 28, 2004, at 11:32 AM, Michelle Rogers wrote: wow..somebody woke up on the wrong side of bed, this morning... I wish I could say I was sorry. ;) You think whatever you want of me, but I'm not wrong. I've tried telling the person who started this thread before. Now I'm trying something e

RE: string seperated by multiple spaces

2004-06-28 Thread Charles K. Clarkson
From: Naser Ali wrote: : Below is the actual code. This is just the preliminary code : to test the logic, it is not final yet, therefore, I am not : using "Warnings", "Strict" or for that matter anything else. Use strict and warnings from the very beginning. Don't w

RE: string seperated by multiple spaces

2004-06-28 Thread MCMULLIN, NANCY
After all, I thought the name of this group was Perl BEGINNERS... -Original Message- From: Michelle Rogers [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 10:33 AM To: James Edward Gray II; Naser Ali Cc: Perl Beginners Subject: Re: string seperated by multiple spaces wow

Re: string seperated by multiple spaces

2004-06-28 Thread Gunnar Hjalmarsson
Naser Ali wrote: Below is the actual code. This is just the preliminary code to test the logic, it is not final yet, therefore, I am not using "Warnings", "Strict" or for that matter anything else. That reasoning is so very, very *wrong*. Strictures and warnings are not to be added when a program i

Re: string seperated by multiple spaces

2004-06-28 Thread Michelle Rogers
Sent: Monday, June 28, 2004 12:28 PM Subject: Re: string seperated by multiple spaces > On Jun 28, 2004, at 11:15 AM, Naser Ali wrote: > > > Below is the actual code. This is just the preliminary code to test the > > logic, it is not final yet, therefore, I am not using "Warning

Re: string seperated by multiple spaces

2004-06-28 Thread James Edward Gray II
On Jun 28, 2004, at 11:15 AM, Naser Ali wrote: Below is the actual code. This is just the preliminary code to test the logic, it is not final yet, therefore, I am not using "Warnings", "Strict" or for that matter anything else. It's easy to make excuses, harder to do the right thing. Help us hel

RE: string seperated by multiple spaces

2004-06-28 Thread Naser Ali
print "$label,$TD,$YT,$M,$L,$Y,$W\n"; } --- -Original Message- From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 12:01 PM To: [EMAIL PROTECTED] Subject: Re: string seperate

RE: string seperated by multiple spaces

2004-06-28 Thread Naser Ali
- From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 11:55 AM To: [EMAIL PROTECTED] Subject: Re: string seperated by multiple spaces Naser Ali wrote: > Any suggestions on what am I doing wrong..? Why do you want a scalar variable for each value? Why not using

Re: string seperated by multiple spaces

2004-06-28 Thread Gunnar Hjalmarsson
Naser Ali wrote: I tried with, after removing "i" " split ' ' " and " split (/\s+/,$Avg) " as well, but no success In that case there is a problem also with a part of your code that you did not show us. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e

RE: string seperated by multiple spaces

2004-06-28 Thread Naser Ali
'Naser Ali'; [EMAIL PROTECTED] Subject: RE: string seperated by multiple spaces From: Naser Ali <mailto:[EMAIL PROTECTED]> wrote: : Hello all, : : I have a line of text and numbers each seperated by : multiple or single spaces looks like this : : abc 123 33545 789 : : I

Re: string seperated by multiple spaces

2004-06-28 Thread Gunnar Hjalmarsson
Naser Ali wrote: Any suggestions on what am I doing wrong..? Why do you want a scalar variable for each value? Why not using an array instead? And you seem not to be using strictures and warnings. Others have helped you with the pattern passed to split(). -- Gunnar Hjalmarsson Email: http://www.g

RE: string seperated by multiple spaces

2004-06-28 Thread Charles K. Clarkson
From: Naser Ali wrote: : Hello all, : : I have a line of text and numbers each seperated by : multiple or single spaces looks like this : : abc 123 33545 789 : : I wanted to split the above line and store each : column value in a specific variable and later

Re: string seperated by multiple spaces

2004-06-28 Thread James Edward Gray II
On Jun 28, 2004, at 10:19 AM, Naser Ali wrote: Hello all, I have a line of text and numbers each seperated by multiple or single spaces looks like this abc 123 33545 789 I wanted to split the above line and store each column value in a specific variable and later print, Below is the code

Re: string seperated by multiple spaces

2004-06-28 Thread Wiggins d Anconia
> > Hello all, > > I have a line of text and numbers each seperated by multiple or single > spaces looks like this > > abc 123 33545 789 > > I wanted to split the above line and store each column value in a specific > variable and later print, > > Below is the code I am using but