in reply to Re^2: OS X troubleshooting help needed - parse filename & open file
in thread OS X troubleshooting help needed - parse filename & open file
Note that if your filename contains single or double quotes, you'll strip them and subsequently Perl won't find the file under the mangled name. A somewhat saner approach might be to find out how exactly filenames arrive in your program when dragged into it.
As an example, on Windows, filenames dropped into the console window get surrounded by double quotes. So, on Windows it would make sense to strip one leading and the trailing double quote. Windows allows single quotes in filenames, so stripping them out is ill-advised.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: OS X troubleshooting help needed - parse filename & open file
by elef (Friar) on Oct 17, 2010 at 19:01 UTC | |
by Corion (Patriarch) on Oct 17, 2010 at 19:42 UTC | |
by elef (Friar) on Oct 17, 2010 at 20:11 UTC | |
by elef (Friar) on Oct 17, 2010 at 20:21 UTC |
In Section
Seekers of Perl Wisdom