Don't ask to ask, just ask | |
PerlMonks |
Re (tilly) 1: rename files in directory with new extenstionby tilly (Archbishop) |
on Aug 09, 2001 at 08:42 UTC ( [id://103332]=note: print w/replies, xml ) | Need Help?? |
And what if you have a file named, "old.old"? On older Perl's, what if your directory exceeds the limit of the shell? And before using glob freely, I like worrying about what happens if someone use a space in a path. I see no reason to open myself up to that. As you can tell, I like to be the kind of person who anticipates potential problems and heads them off at the pass. So even though it isn't so short, I tend to use an explicit opendir/readdir/grep solution rather than globbing. YMMV.
In Section
Seekers of Perl Wisdom
|
|