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?

Thank You

=====
Edson Manners
Academic Computing & Networking Services
Florida State University

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to