programming-examples/perl/Report/Attach a header to a report.pl

21 lines
653 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/local/bin/perl -w
while (<ARGV>)
{
chomp;
($number,$type,$name,$price,$desc) = split (/\|/);
write;
}
format STDOUT_TOP=
Count Item # Item Type Item Name Price Description
------------------------------------------------------------------------
format STDOUT=
@>>>> @|||||| @<<<<<<<<< @<<<<<<<<<<<<< $@####.##
^<<<<<<<<<<<<<<<<<<<<<<<<<
$.,$number,$type,$name,$price,$desc
~ ^<<<<<<<<<<<<<<<<<<<<<<<<<
$desc
~ ^<<<<<<<<<<<<<<<<<<<<<<<<<
$desc