[Perl] Offer's riddle

Shlomo Yona shlomo at cs.haifa.ac.il
Mon Oct 7 03:59:50 PDT 2002


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;

the content of the file 'a'
1
2
3
4
5
6
7
8
9

the result:

the oneliner hangs...

-- 
Shlomo Yona
shlomo at cs.haifa.ac.il
http://cs.haifa.ac.il/~shlomo/




More information about the Perl mailing list