in reply to Re: escaping filenames taken in via user input
in thread escaping filenames taken in via user input

Escaping or removing all dots was something I originally considered, but decided against, because it would mangle my file exension. I didn't think to append the extension automatically... duh! How simple. :)

Also, Aristotle++ for pointing out the problem with join "", <FH>. This is something I use often, for no reason other than it seems clear and obvious to me... but if it's grossly inefficient, I'll gladly switch to something else.

Replies are listed 'Best First'.
Re^3: escaping filenames taken in via user input
by Aristotle (Chancellor) on Oct 30, 2002 at 02:30 UTC
    Well, not necesarily grossly inefficient - but it's just useless work. I don't generally microoptimize, but there's absolutely no gain to be had by the less efficient form, since typing do { local $/; <FH> } instead takes no more programmer time and doesn't make maintenance any harder. So it's a case of simple economics. </rambling type="short"> :-)

    Makeshifts last the longest.