in reply to Re^2: Regular expression to check for invalid file name characters
in thread Regular expression to check for invalid file name characters
If it succeeds, then you'd have to delete it again--assuming the idea is to just check, not actually use.
I assumed the opposite. When we get questions like this, the check is followed by actually opening or creating the file.
How would you do that reliably?
Errno provides codes against which you can check $!.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Regular expression to check for invalid file name characters
by BrowserUk (Patriarch) on Feb 22, 2010 at 16:37 UTC | |
by merrymonk (Hermit) on Feb 22, 2010 at 16:53 UTC | |
by BrowserUk (Patriarch) on Feb 22, 2010 at 16:59 UTC |