Article View: fj.lang.perl
Article #72Re: lpr pages in reverse order
From: enami tsugutomo
Date: Thu, 26 Nov 1992 09:07
Date: Thu, 26 Nov 1992 09:07
19 lines
1286 bytes
1286 bytes
In article <ZIC.92Nov25131221@tcin0.tci.toshiba.CO.JP>,
zic@tci.toshiba.CO.JP (Nobuyoshi Kamei) writes:
> FF(FormFeed)$B%3!<%I$+$i(BFF$B%3!<%IKx$r(B 1$B%Z!<%8$H$_$J$7$F!"$=$N%Z!<%8$r5U(B
> $B=g$KJB$YBX$($F$/$l$^$9!#(B
perl $B$G=q(B$B$/$H$3$&$J$k$N$+$J(B? :).
#!/usr/local/bin/perl
$, = $/ = "\f";
while (<>)
{
s,$/,,;
unshift (@pages, $_);
}
print @pages;
$B$($J$_(B $B$D$0$H$b(B / $B%=%K!<(B
Technical Details
Message-ID:
<ENAMI.92Nov26180739@kitt.sys.ptg.sony.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!news.hawaii.edu!sh.wide!wnoc-tyo-news!scslwide!wsgw!headgw!ptggw!enamiReferences:
<ZIC.92Nov25131221@tcin0.tci.toshiba.CO.JP>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 1043e7,2cbdde68747a6258,start X-Google-Attributes: gid1043e7,public X-Google-Thread: 10d5fe,2cbdde68747a6258,start X-Google-Attributes: gid10d5fe,public X-Google-ArrivalTime: 1992-11-26 09:25:23 PST Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!news.hawaii.edu!sh.wide!wnoc-tyo-news!scslwide!wsgw!headgw!ptggw!enami From: enami@sys.ptg.sony.co.jp (enami tsugutomo) Newsgroups: fj.lang.perl,fj.comp.printers Subject: Re: lpr pages in reverse order Message-ID: <ENAMI.92Nov26180739@kitt.sys.ptg.sony.co.jp> Date: 26 Nov 92 09:07:39 GMT References: <ZIC.92Nov25131221@tcin0.tci.toshiba.CO.JP> Sender: news@ptg.sony.co.jp Distribution: fj Organization: Sony Corp. Production Technology Development Grp. R&D Div. Lines: 19 In-reply-to: zic@tci.toshiba.CO.JP's message of 25 Nov 92 04:12:21 GMT