Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Special character file name File Open Problem

Status
Not open for further replies.

CherylD

Programmer
May 1, 2001
107
CA
I have an odd character named file,and I cannot open it. I am using:

open(SUBJECT,'/var/ Dec\ 13\ 13\:45\:09\ 2002subject');

or I actually put teh filename in a variable and call:
open(SUBJECT,"$filename");

The file won't open, any ideas?
 
When I open the file with the full file name, escaped charaters and all it works.

With the variable name it doesn't......
 
oic, I couldn't see why your first example wouldn't work.

Does the variable method fail if the spaces are escaped in the variable itself? Mike

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884
michael.j.lacey@ntlworld.com
 
ls filename|od -c
will show you what's in it. -----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top