RE: print if variable matches key





-----Original Message-----
From: Wagner, David --- Senior Programmer Analyst --- WGO
[mailto:David.Wagner@xxxxxxxxxxxxxxxxx]
Sent: Wednesday, February 28, 2007 3:31 PM
To: Brian Volk; Brian Volk; beginners@xxxxxxxx
Subject: RE: print if variable matches key


I am jusmping into the middle, so not real certain on what the
output looks like, but the problem comes from what a\t does under the
current shell setup you are using. If you print $emailValue and it is 20
characters plus \t will not look the same if you print 5 characters plus
a \t. You could use printf and then size appropriately and \t will do
what you want.

If you have any problems or questions, please let me know.

Thanks.

Wags ;)

[Brian Volk] thank you for the response...actually I'm printing the output
to a tab file so excel handles my needs fine. I'm just having trouble
"printing" a tab when the key does not exist in %hash. If I can get this to
work, ...then every time I run the program on a new email file it will place
the record in the correct field in the existing file. (I'm guessing...but
one thing at a time for me! :-) )

Brian

.