develooper Front page | perl.perl5.porters | Postings from November 2003

Re: bug or a feature?

Thread Previous | Thread Next
Nick Ing-Simmons
November 21, 2003 13:15
Re: bug or a feature?
Message ID:
Torsten Foertsch <> writes:
>In both cases sv_gets() at line 1576 returns false (EOF). But with $/="\n" it 
>enters the if-block at line 1579 goes through lines 1596 and 1597 and returns 
>in line 1603. With $/=undef the if-block at line 1579 is not entered.
>BTW, what does RsSNARF (or simply snarf) mean? I have looked it up at 
> with no result.

I am not sure what "snarf" means, but RsSNARF means: $/ is undef, read
entire file as one "line".

I think there is a "feature" that the "whole file" means each-file
in the case of *ARGV aka <>.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About