You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
649 B
Perl
28 lines
649 B
Perl
5 years ago
|
#!/usr/local/bin/perl -w
|
||
|
|
||
|
use English;
|
||
|
|
||
|
while (<ARGV>)
|
||
|
{
|
||
|
chomp;
|
||
|
($number,$type,$name,$price,$desc) = split (/\|/);
|
||
|
write;
|
||
|
}
|
||
|
|
||
|
format STDOUT_TOP=
|
||
|
Count Item # Item Type Item Name Price Description Page @>>>>>>
|
||
|
$FORMAT_PAGE_NUMBER
|
||
|
------------------------------------------------------------------------------
|
||
|
|
||
|
.
|
||
|
|
||
|
format STDOUT=
|
||
|
@>>>> @|||||| @<<<<<<<<< @<<<<<<<<<<<<< $@####.##
|
||
|
^<<<<<<<<<<<<<<<<<<<<<<<<<
|
||
|
$.,$number,$type,$name,$price,$desc
|
||
|
~^<<<<<<<<<<<<<<<<<<<<<<<<<
|
||
|
$desc
|
||
|
~^<<<<<<<<<<<<<<<<<<<<<<<<<
|
||
|
$desc
|
||
|
|
||
|
.
|