I'm to use indirect filehandles, per Damian Conway's PBP
my $FH = "DATA";
open $FH, "<", $filename or croak "Cannot open file $filename
Of course, I have
enabled, and would like to leave it that way. But because of that, I'm getting the following error when I run the code:
Can't use string ("DATA") as a symbol ref while "strict refs" in use a
+t parse.pl line 105.
As you'd expect, line 105 is the open statement in the code above.
I'm using perl 5.8.7, so I know I don't need to have
use Symbol qw( gensym );
(according to PBP, pg. 204, it's only needed for versions less than 5.6). I'd also like to stay with the standard builtin modules, so it rules out using IO::File. Any thoughts?