Actually I had forgotten the additional back slashes when I generalize
the name.  So the problem still exists. 

Thanks
DRD

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Tom Phoenix
Sent: Tuesday, March 07, 2006 1:48 PM
To: DiGregorio, Dave
Cc: beginners@perl.org
Subject: Re: Directory issue

On 3/7/06, DiGregorio, Dave <[EMAIL PROTECTED]> wrote:

> chdir("C:\Go\Here\") || die "cant not change dir\n" ;

The backslash is Perl's general magic character. It always means that
the next character is something special. Anywhere in Perl, if you
don't want backslash magic, if you intend a real backslash character,
use two of them. A single backslash is always magical. (In fact,
you've backslashed the closing quote mark!) If you need two real
backslashes, as in some Windows pathnames, use four of them in your
source.

Is that what you needed? Good luck with it!

--Tom Phoenix
Stonehenge Perl Training

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


Reply via email to