On February 24, 2010, [email protected] wrote:

> This is one of those silly moments when I can't remember a simple
> trick, and I'm too cotton-pickin' lazy to dig through all my Perl
> books to find it. I'm maintaining some old DOS code that has pathed
> Linux filenames suffering from LTS. you know...
> \/usr\/local\/fardle\/whang\/dang\/doodle\/etc.....

In what context do you think you need those backslashes?

In a regular string, you can do 'foo/bar/baz'.

In a regex, you can use the special quoting construct:
    $_ =~ m{/foo/bar/baz};

-- Eric

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to