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

Re: bug or a feature?

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
November 21, 2003 13:15
Subject:
Re: bug or a feature?
Message ID:
20031121211626.2796.4@llama.ing-simmons.net
Torsten Foertsch <torsten.foertsch@gmx.net> 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 
>http://dict.leo.org 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


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