On May 19, 2006, at 10:10 PM, Chris Wagner wrote:
At 05:52 PM 5/19/2006 -0700, $Bill Luebkert wrote:
That's not the problem - he's only changing the first \.
His regex does need the g but he said he was getting output of
C:/path/with\new/content. All slashes fixed except the one before n.
C
Carter,
You might also consider using brace delimiters on your substitution to
make it more legible:
$root =~ s{\\}{/}g;
Cheers,
Richard
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv
Chris Wagner wrote:
> At 05:52 PM 5/19/2006 -0700, $Bill Luebkert wrote:
>
>>That's not the problem - he's only changing the first \.
>
>
> His regex does need the g but he said he was getting output of
> C:/path/with\new/content. All slashes fixed except the one before n.
> Carter are u sure
At 05:52 PM 5/19/2006 -0700, $Bill Luebkert wrote:
>That's not the problem - he's only changing the first \.
His regex does need the g but he said he was getting output of
C:/path/with\new/content. All slashes fixed except the one before n.
Carter are u sure u stated ur problem right? With the r
Timothy Johnson wrote:
> For that you can use the \Q and\E operators
>
>/\Q^Root:\s+(.*)$\E/;
>
> Check out 'perldoc perlre'
That's not the problem - he's only changing the first \.
The problem is his RE is:
$root =~ s/\\/\//;
and should be:
$root =~ s/\\/\//g;
> From: [EM
For that you can use the \Q and\E operators
/\Q^Root:\s+(.*)$\E/;
Check out 'perldoc perlre'
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Carter Thompson
Sent: Friday, May 19, 2006 4:37 PM
To: Perl Users
Subject: mistaken newline
Root: C: