Re: Align text

2003-12-16 Thread James Edward Gray II
\On Dec 16, 2003, at 1:39 PM, Hemond, Steve wrote: Hi again, Thanks for you help with my data structure problem, a hash of hashes problem did the job :-) I would like to know how to align text with the print command. I have four scalar variables to print but I want them to follow their header's

Re: Align Text

2003-12-18 Thread James Edward Gray II
On Dec 18, 2003, at 12:03 AM, Bill Jastram wrote: James: I'm happy to help, but keep your replies on the list so we can all learn/help. Can printf set the value in spaces of tab (\t)? I need to do three column output with perl for mailing labels. You bet: >perl -e 'printf "%20s %20s %20s\n", "

Re: Align Text

2003-12-19 Thread James Edward Gray II
On Dec 19, 2003, at 8:29 AM, Bill Jastram wrote: James: A coupe of things. #1. Pardon my ignorance, but I'm not sure how to use the list where I found the reply button to e-mail you directly. I could not find a way to add to the already existing 'thread'. Your help would be appreciated. The lis

RE: Align Text

2003-12-19 Thread Tom Kinzer
rl List Subject: Re: Align Text On Dec 19, 2003, at 8:29 AM, Bill Jastram wrote: > James: > > A coupe of things. > > #1. Pardon my ignorance, but I'm not sure how to use the list where I > found the reply button to e-mail you directly. I could not find a way > to > add

RE: Align Text

2003-12-19 Thread Bill Jastram
of slick stuff with it, like centering. > >-Tom Kinzer > >-Original Message- >From: James Edward Gray II [mailto:[EMAIL PROTECTED] >Sent: Friday, December 19, 2003 9:16 AM >To: Bill Jastram >Cc: Perl List >Subject: Re: Align Text > > >On Dec 19, 2003

RE: Align Text

2003-12-19 Thread Jeff Westman
do lots of slick stuff with it, like centering. > > > >-Tom Kinzer > > > >-Original Message- > >From: James Edward Gray II [mailto:[EMAIL PROTECTED] > >Sent: Friday, December 19, 2003 9:16 AM > >To: Bill Jastram > >Cc: Perl List > >Subject: Re

Re: Align Text

2003-12-19 Thread James Edward Gray II
On Dec 19, 2003, at 12:04 PM, Bill Jastram wrote: We're getting closer. But lets say the first name of the first field in the first row is 'Bill'. And the first name of the first field in the second row is 'Lanette'. This command will not compensate for the difference in the length of the two f

RE: Align Text

2003-12-19 Thread Tom Kinzer
say wha? show me, please. -Original Message- From: Bill Jastram [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:04 AM To: Tom Kinzer Cc: James Edward Gray II; Perl List Subject: RE: Align Text We're getting closer. But lets say the first name of the first field i

Re: Align Text

2003-12-19 Thread Rob Dixon
Bill Jastram wrote: > We're getting closer. But lets say the first name of the first > field in the first row is 'Bill'. And the first name of the > first field in the second row is 'Lanette'. This command will > not compensate for the difference in the length of the two > first names. So, the ali

Re: Align Text

2003-12-19 Thread Eric Walker
I have use the FORMAT function in perl. Its pretty nice. perldoc -f format. Hope that helps perlknucklehead On Fri, 2003-12-19 at 14:20, Rob Dixon wrote: Bill Jastram wrote: > We're getting closer. But lets say the first name of the first > field in the first row is 'Bill'. And t

Re: Align Text

2003-12-19 Thread R. Joseph Newton
Bill Jastram wrote: > We're getting closer. But lets say the first name of the first field in the first > row is 'Bill'. And the first name of the first field in the second row is 'Lanette'. > This command will not compensate for the difference in the length of the two first > names. So, the al

Re: Align Text

2003-12-22 Thread Bill Jastram
James: Thanks for the sample and I agree it does work. How can I create an array of just the first names for a file? This is what I have so far: __ open (A, "testing.txt"); @A = ; foreach ($n = 0; $n<10; $n++) { #Split each record into its fie

Re: Align Text

2003-12-22 Thread James Edward Gray II
On Dec 21, 2003, at 10:47 PM, Bill Jastram wrote: James: Thanks for the sample and I agree it does work. How can I create an array of just the first names for a file? This is what I have so far: Let's take a look at what you have first. You're missing two very important lines right here: use

Re: Align Text

2003-12-23 Thread Bill Jastram
Wow! That's a lot to take in, but consider it, and I'll get back to you with the results of my considerations. Thanks much. Bill J. __ On Mon, 22 Dec 2003, James Edward Gray II wrote: > On Dec 21, 2003, at 10:47 PM, Bill Jastram wrote: > > > Jam

Re: Align Text

2003-12-23 Thread Bill Jastram
After taking a look at your last suggested script I have a short question: At what point does this script read in information from the source file 'testing.txt'? Is it during the 'while (<>)' statement? If so what would the syntax be? Thanks again for your help. Bill J. __

Re: Align Text

2003-12-23 Thread James Edward Gray II
On Dec 23, 2003, at 12:17 AM, Bill Jastram wrote: After taking a look at your last suggested script I have a short question: At what point does this script read in information from the source file 'testing.txt'? Is it during the 'while (<>)' statement? If so what would the syntax be? Yes, you've

Re: Align Text

2003-12-24 Thread Bill Jastram
Yes, this helps tremendously. Actually, your suggestions helped me make, what for me is, a quantum leap in the use of Perl. I am stuck, however, on the loop you suggested to output the processed @col arrays. I understand how you loaded them. And that, apparently, they are ready to be output. Bu

Re: Align Text

2003-12-24 Thread James Edward Gray II
On Dec 23, 2003, at 11:29 PM, Bill Jastram wrote: Yes, this helps tremendously. Actually, your suggestions helped me make, what for me is, a quantum leap in the use of Perl. Good news. Always happy to help. I am stuck, however, on the loop you suggested to output the processed @col arrays. I un

Re: Align Text

2003-12-29 Thread James Edward Gray II
On Dec 29, 2003, at 11:31 AM, Bill Jastram wrote: Bingo! James. That takes care of label issue. Good news. Glad I could help I was even able to make it three columns instead of three. And change the space between columns. Oh no, I've created a monster! You've obviously been at this for a whi

Re: Align Text

2003-12-29 Thread Bill Jastram
Bingo! James. That takes care of label issue. I was even able to make it three columns instead of three. And change the space between columns. You've obviously been at this for a while and use the tightest code concepts I've seen. By the way, how would you 'search' the incoming file to restric

Re: Align Text

2003-12-29 Thread Bill Jastram
Thanks, that's just what I was trying to figure out, only I'd gone about it with the m// command to little or no avail. Your idea is of course much better. I'll leave you alone for awhile. You given me plenty to think about. Much appreciated! Bill J. ___