On Jan 31, 2008 9:35 AM, rc <[EMAIL PROTECTED]> wrote:

> I have to create a file with / in the name.

Do you mean you want to create a file within a subdirectory?

>  open(MYFILE, ">>", "confused&lost/.com")
>                 or die "2. Can't open MYFILE for writing: $!.
> Stopped";

I'm hoping that you want to create a file called ".com" in the
directory "confused&lost". Could that be it? See the mkdir() function
if it is.

If your operating system (or filesystem) reserves forward slashes as a
special character in filepaths, you won't be able to use that
character in the name itself. What OS are you using?

Is there another character that could serve your needs?

Are you trying to do something involving a URL?

Is this a homework assignment?

If we haven't guessed correctly, please tell us: What are you _really_
trying to accomplish by putting characters like '/' and '&' in a
filename?

Cheers!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to