http://www.perlmonks.org?node_id=219740


in reply to Re: Question on using format and write
in thread Question on using format and write

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
Use of uninitialized value in formline at ????.pl line ??.
if you remove your line
my ($cust, $d1, $d2, $c1, $c2);
from the function, or perhaps put it before you define your format that should give you your output :-)

_______________________________________________________
Remember that amateurs built Noah's Ark. Professionals built the Titanic.