[Perl] Offer's riddle
Mikhael Goikhman
migo at homemail.com
Mon Oct 7 04:04:21 PDT 2002
On 07 Oct 2002 12:59:50 +0200, Shlomo Yona wrote:
>
> On Mon, 7 Oct 2002, Mikhael Goikhman wrote:
>
> > Please describe the example that hands for you. It should never hang.
> > Did you prepare file "a" as the riddle says and redirected from it?
>
> the oneliner:
>
> perl -pe'<>' a>b;perl -pe'$_=<>';a>c;
This is not what I posted. Here it is again. :)
perl -pe'<>'<a>b;perl -pe'$_=<>'<a>c
> the content of the file 'a'
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
>
> the result:
>
> the oneliner hangs...
Works fine.
Regards,
Mikhael.
More information about the Perl
mailing list