At 11:09 PM 8/7/00 +0200, Bart Lateur wrote: >On Tue, 8 Aug 2000 06:44:00 +1000 (EST), Damian Conway wrote: > > > > A true value indicates that the file is indeed valid Perl. > > > >So is an empty file! :-) > >That is precisely the problem. You won't get a syntax error if this >happens. > >Now, bringing in the million monkeys typing, again: the chances of >getting a corrupt file that yet is valid Perl source file, is *far* >greater, if empty files are allowed as well. > >Empty files won't return a true value. If the only realistic case you want to catch is an empty file, why not just check for that and issue an error? Easier than everyone in the world having to stick 1; at the end of their .pm (who's forgotten it, now? Hands up...) -- Peter Scott Pacific Systems Design Technologies
- Re: RFC 55 (v1) Compilation: Remove requirement... John Porter
- Re: RFC 55 (v1) Compilation: Remove require... Nathan Torkington
- Re: RFC 55 (v1) Compilation: Remove req... John Porter
- Re: RFC 55 (v1) Compilation: Remov... Nathan Torkington
- Re: RFC 55 (v1) Compilation: Remove requirement... Piers Cawley
- Re: RFC 55 (v1) Compilation: Remove requirement... Andy Wardley
- Re: RFC 55 (v1) Compilation: Remove requirement for fina Bart Lateur
- Re: RFC 55 (v1) Compilation: Remove requirement for fina Damian Conway
- Re: RFC 55 (v1) Compilation: Remove requirement for... Bart Lateur
- Re: RFC 55 (v1) Compilation: Remove requirement... Peter Scott
- Re: RFC 55 (v1) Compilation: Remove require... iain truskett
- Re: RFC 55 (v1) Compilation: Remove req... Bryan C . Warnock
- Re: RFC 55 (v1) Compilation: Remove req... Bart Lateur
- Re: RFC 55 (v1) Compilation: Remove req... William Setzer
- Re: RFC 55 (v1) Compilation: Remov... iain truskett
- Re: RFC 55 (v1) Compilation: Remove req... Damian Conway
- Re: RFC 55 (v1) Compilation: Remove requirement for... Damian Conway