in reply to The space between file names and folder names
I would like to know how to read the file names or folder names if there are spaces between them.IMHO it would have been sensible to give examples in terms of either single quotes or double quotes delimited strings...Example->
Folder name = foo goo
Said this, I think I can understand that you have some paths comprising directory and file names having spaces in them. So far, so fine! Then one should understand what you mean with "I would like to know how to read"...
open shouldn't have any problem with such filenames, e.g.:
open my $fh, '<', 'filename with spaces' or die $!;
All in all experience shows that speaking Perl is more effective, communication-wise than speaking (a fuzzy) English.
My code ( sorry cannot publish the code ) reads the file names and folder names when there is no space between them precisely.Again, it's a common practice to disambiguate what one really wants by means of minimal but complete snippets of code.
|
|---|