stew has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl format INVOICE = +--------------------------------------------------------------------- +--------+ Invoice To Invoice From + @<<<<<<<<<<<<<<<<<<<<<<<<<<<<< The Get Rich Quick C +o. $name Address @* + $address Description: Cost: @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @###.## $description £$cost +--------------------------------------------------------------------- +--------+ . open(INVOICE,">print-invoice"); $name = "Another Sucker"; $address = "Address 1\nAddress2\nXX11 9DJ"; $description = "another mug to help us swell our coffers"; $cost = 999.99; write (INVOICE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FORMATS, filehandle and variables
by broquaint (Abbot) on Jan 06, 2004 at 14:43 UTC | |
|
Re: FORMATS, filehandle and variables
by Fletch (Bishop) on Jan 06, 2004 at 15:00 UTC | |
by duff (Parson) on Jan 06, 2004 at 16:11 UTC |