in reply to Re: format problem
in thread format problem

yes, i got this code so far but im having some errors... please help... 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 . For:@>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> $memo Stamped Signature .

Replies are listed 'Best First'.
Re^3: format problem
by ysth (Canon) on Jul 20, 2005 at 23:36 UTC
    Can you show how you are using this, and what errors you get?
      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
        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.