http://www.perlmonks.org?node_id=604400

Zadeh has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I can't seem to figure out a way to open filenames with the '*' character in it. I have a general subroutine that looks like so:
sub blah { my $file = shift; ... my $retval = open(FHANDLE, $file); ... }
But that always fails. I've also tried using e.g.:
my $retval = sysopen(FHANDLE, $file, O_RDONLY);
But that also fails. Is there any way to do this?

(And please don't ask me why I'd want to do this, or if I can just not do it, etc. Yes I really do, and I don't know why some users/software creates such horridly named files, but I have to process them nonetheless. :))