On Thu, Dec 18, 2008 at 20:47, Rob Dixon <rob.di...@gmx.com> wrote:
snip
>
> First of all it is best to use single quotes when defining strings that 
> contain
> backslashes.
>
>  my $s1 = 'c:\log\s1.log';
>
> then you don't need to escape them (unless one appears as the final character 
> in
> the string, when you still need to double it up to avoid escaping the string
> terminator).
snip

I would say it is best to use forward slashes since they work, even on Win32:

my $s1 = "c:/log/s1.log";


-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to