develooper Front page | perl.perl5.porters | Postings from April 2008

[PATCH] testing $/ with in memory files

Thread Next
April 27, 2008 14:49
[PATCH] testing $/ with in memory files
Message ID:
Inspired by:  
(fixed somewhere between 5.8.7 and 5.8.8)

But I don't think test were added for it.
Attached is a patch for t/base/rs.t. (I hope this is the correct file  
to test it...)

What is changed:

a) a test counter is used instead of constants,
b) the test output is made more descriptive
c) the tests get repeated for an in memory file (this meant moving the  
test code in two separate subroutines -  and changing the filehandle  
(not absolutly required tho))

(I'm not entirely sure about the name I gave the subs... so feel free  
to change it into something better.)

Kind regards,


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