--- a2ps-j.orig 2012-02-23 15:04:21.000000000 +0900
+++ a2ps-j 2012-10-02 01:58:37.000000000 +0900
@param_b4 = (10.15, 14.31, 1.40, 1.2, 8.50, 9.5, 0.29, 0.22, 0.08, 'b4');
local(*param) = 'param_' . $_[0];
- die "Unknown paper type: $_[0]\n" unless defined @param;
- ($width, $height, $lmargin, $smargin, $fontsize_l, $fontsize_p,
- $portrait_header, $landscape_header, $paper_adjust, $paper_tray) = @param;
+ ($width, $height, $lmargin, $smargin, $fontsize_l, $fontsize_p,
+ $portrait_header, $landscape_header, $paper_adjust, $paper_tray) = @param;
+ die "Unknown paper type: $_[0]\n";
+## Perl 5.10.1 says $# is no longer supported
'width', 'height', 'lmargin', 'smargin', 'font_size',
'sheet_height', 'sheet_width', 'char_width', 'skip_column',
if ($file && !-r $file) { warn "$file: $!\n"; next; }
+ # flush.pl obsolete (originally in Perl 4)
+ # replaced with equivalent code of &flush(STDOUT)
+ local($old_stdout) = select(STDOUT);
+ # end of equivalent code
open(F, "-|") || &jis($file);
$file = '-' if $file eq '';
shift while @_ > 0 && $_[0] eq '';
exec('nkf', '-b', '-j', @_);
- exec('jconv', '-j', @_);
if (($file = shift) ne '') {
open(STDIN, $file) || die "$file: $!\n";