At 11:09 21.05.2001 -0700, you wrote:
>if ($oldLot[1] == 0)
>{
> $arpCount = $arp{$lot}; ==> Part 1
>}
>else
>{
> $arpCount = "-"; ==> Part 2
>}
>
>printf "%3s %3d ", $arpCount, $count;
>
>My problem occurs in the "printf" at the "%3s". Here
>is the situation: When $oldLot[1] == 0, $arpCount is
>equal to an integer, but when $oldLot[1] != 0
>$arpCount is equal to a character. the printf
>foramtting will only allow me to print 'either' a
>character or an integer. how can I do both or how can
>I change the integer into a character variable so that
>it will work under the %s?
I know this is really un-Perl, but I always try to keep my number variables
separate from my string variables. It keeps things clean, and debugging is
a lot easier, because you don't have to worry about whether or not Perl is
turning a number into a letter for you, or vice-versa. Call it my C++
influence, but I find mixing numbers and strings in the same variable a
rather risky business.
Aaron Craig
Programming
iSoftitler.com