|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Improve perlfaq5: How can I translate tildes (~) in a filename?by brian_d_foy (Abbot) |
| on Jun 10, 2008 at 17:11 UTC ( [id://691281]=perlquestion: print w/replies, xml ) | Need Help?? |
|
brian_d_foy has asked for the wisdom of the Perl Monks concerning the following question: Want to be a Perl contributor? It's easy. Just fix this FAQ answer. Update: An by update, I mean rewrite it, not tell me how to rewrite it. :) perlfaq5 has an answer for "How can I translate tildes (~) in a filename?". Looking at the code in the answer, I know it must break in a lot of places since it relies either on getpwnam or environment variables. Who can come up with a good answer that is more robust? I'm especially interested in any module-fu that can be added. You don't have to necessarily keep any of the existing answer. If you replace the answer, you get your name listed right next to it. :) You can post your answer here or to the mailing list in perlfaq. Here's the source (although you can get at the svn repository too by looking at the instructions in perlfaq:
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||