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:
(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. :))
But that always fails. I've also tried using e.g.:sub blah { my $file = shift; ... my $retval = open(FHANDLE, $file); ... }
But that also fails. Is there any way to do this?my $retval = sysopen(FHANDLE, $file, O_RDONLY);
(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. :))
Back to
Seekers of Perl Wisdom