IO::File->new('<$file')
Do you really have a file name $file, literally?
In reply to Re: anonymous file handler objects by moritz in thread anonymous file handler objects by roadtest