On Nov 22, Jorge Goncalvez said:

>$buf=~(/d:/dhs3mgr/e1401/dhs3linux/fr/cpiofile/)
>
>but it didn't work.How can i do to escape the /.

Well, escaping is done with \, but if you do that, you'll end up having
"leaning toothpick syndrome":

  $buf =~ /d:\/dhs3mgr\/e1401\/dhs3linux\/fr\/cpiofile/;

That is gross.  Use a different m// delimiter:

  $buf =~ m{d:/dhs3mgr/e1401/dhs3linux/fr/cpiofile};

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to