On Jan 31, 2008 12:35 PM, rc <[EMAIL PROTECTED]> wrote: > I have to create a file with / in the name. I have tried different > techniques but keep getting errors. > > My file name also has & in it. > > open(MYFILE, ">>", "confused&lost/.com") > or die "2. Can't open MYFILE for writing: $!. > Stopped"; > snip
I don't believe you can. I don't think / is a valid filename character in UNIX. In Mac OS X, it uses : instead of / (that is the file foo:bar is displayed as foo/bar), but that is the closest I can get. Why do you want to do such a thing? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/