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
_______________________________________________________
Remember that amateurs built Noah's Ark. Professionals built the Titanic.
if you remove your lineUse 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.
In Section
Seekers of Perl Wisdom