XP is just a number | |
PerlMonks |
Re: an ever-available file for openingby andyford (Curate) |
on Jan 15, 2008 at 18:08 UTC ( [id://662520]=note: print w/replies, xml ) | Need Help?? |
What if your turn it around and say "Does there exist a file that I can open?" Start at the root directory and recurse till you find a file that your can open. This thinking will strip out any dependence on a particular file and replace it with the seemingly broader assumption that "somewhere on this system, there exists a file that I can open".
non-Perl:
read my music blog
be my fan at Reverbnation
In Section
Seekers of Perl Wisdom
|
|