develooper Front page | perl.perl5.porters | Postings from February 2002

Re: [PATCH] readline() with no FILEHANDLE

Thread Previous
From:
Rafael Garcia-Suarez
Date:
February 22, 2002 15:24
Subject:
Re: [PATCH] readline() with no FILEHANDLE
Message ID:
20020223002857.E15069@rafael
On 2002.02.22 21:40 Yitzchak Scott-Thoennes wrote:
> This looks like the right thing to me (but makes t/op/flip fail test 10).
> 
> --- opcode.pl.orig	Mon Feb 11 16:25:16 2002
> +++ opcode.pl	Thu Feb 21 17:53:54 2002
> @@ -480,7 +480,7 @@
>  backtick	quoted execution (``, qx)	ck_open		t%	
>  # glob defaults its first arg to $_
>  glob		glob			ck_glob		t@	S?
> -readline	<HANDLE>		ck_null		t%	F?
> +readline	<HANDLE>		ck_fun		t%	F
>  rcatline	append I/O operator	ck_null		t$
>  
>  # Bindable operators.
> End of Patch.

Excuse me, but, naively, why don't make readline(*FH) and
readline(FH) work like <FH> in all cases (and readline() like
<>) ?

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About