in reply to Re: Re: Re: Re: opening a file in a subroutine
in thread opening a file in a subroutine

Sorry, I can't help you directly with your issue at hand - your program works fine for me, even on bigger files. But allow me to give two remarks:

Update: If it's a bug as demerphq suspects, then I suspect that it's OS dependent - I get the same times here on all opens (perl v5.6.0 built for sun4solaris).

-- Hofmator