perl_learner has asked for the wisdom of the Perl Monks concerning the following question:

hello perl mnks..i am new in perl scripting and i need your guidance. please help me with this program, im not really expecting a complete code i just need some steps or hint on how will i start or do this program.. please i hope you guys understand.. i need to write a program that will generate a check. the program must prompt the user to input the information below. Assign the user data to the scalar and array variables, all presented below. I must use formats to print the check as it appears, which includes the line box surrounding the check items. Check Number ($chkno) First Name ($first) Last Name ($last) A two line Address, stored in array (@addr) Phone Number ($phone) Date ($date) Payee ($payee) Check Amount ($amount) Check Purpose ($memo) the check should shold look something like this +--------------------------------------------------------------+ | Check No. $chkno | | $first $last | | $addr[0] | | $addr[1] | | $phone $date | | | | Pay to the | | Order of: $payee $amount | | | | For: $memo Stamped Signature | | | +--------------------------------------------------------------+ thank you really appreciate it..

Replies are listed 'Best First'.
Re: format problem
by Transient (Hermit) on Jul 20, 2005 at 01:16 UTC
    For the formatting, perlform is your best bet. Read up, try it out. It's not too hard, and you should get the hang of it quickly!

    Best of luck
Re: format problem
by ysth (Canon) on Jul 20, 2005 at 02:43 UTC
    Smells like homework. Don't you need the amount written out non-numerically also?
      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 .
        Can you show how you are using this, and what errors you get?