Foxcub is correct. It looks like it is a scope problem. If you were to enforce warnings ( perl -w ) then you would get an error allong the lines of
in reply to Re: Question on using format and write
in thread Question on using format and write
if you remove your line
Use of uninitialized value in formline at ????.pl line ??.
from the function, or perhaps put it before you define your format that should give you your output :-)
my ($cust, $d1, $d2, $c1, $c2);
Remember that amateurs built Noah's Ark. Professionals built the Titanic.