in reply to Re^3: format problem
in thread format problem

i need to write a program that will generate a check i got his codes: format STDOUT = Check No. @<<<<<< $chkno first @<<<<<<<<<< last @<<<<<<<<<<<<<<< $first,$last Address:@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $addr[0] Address:@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $addr[1] Phone:@<<<<<<<<<<<< Date:@<<<<<<<<<<<< $phone,$date Pay to the Order of: @<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $payee . format Amount: Amount: @#####.## $amount . format STDOUT = For:@>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> $memo Stamped Signature . i got this errors: am having syntax error line 24 EOF might be a run away multi line << string startng line 2 any help will do thanks

Replies are listed 'Best First'.
Re^5: format problem
by ysth (Canon) on Jul 20, 2005 at 23:59 UTC
    Several things:
    • I think no space is allowed between the format name and the =
    • "format Amount:" what is this?
    • You can only have one format for each name; you can select different names by setting the $~ variable (see perldoc perlvar).
    • If you need more help, please show your complete code including the write calls you are using to actually use the formats.