in reply to How do you open a file when using strict?

It doesn't work ...

It doesn't work how? If you're reporting a problem, it really helps to say something more than "it doesn't work."

I'm guessing that your problem is that   print <<EOF should be   print <<EOF;