Backslash in a string

2003-03-03 Thread Guy P
Hello, My Perl program execute a query that bring back into a variable a Windows paths initially stored in a database. I have got problems to manage the backslash. Example: Here's what is stored in the database --> \Directions\unit\progr\sourcsql I would like to get it in a variable thus I could

RE: Backslash in a string

2003-03-03 Thread Beau E. Cox
Hi - > -Original Message- > From: Guy P [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2003 9:10 AM > To: [EMAIL PROTECTED] > Subject: Backslash in a string > > > Hello, > My Perl program execute a query that bring back into a variable a Windows &g

Re: Backslash in a string

2003-03-03 Thread Todd Wade
"Beau E. Cox" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi - > > > -Original Message- > > From: Guy P [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 03, 2003 9:10 AM > > To: [EMAIL PROTECTED] > > Subject: Backslas

Re: Backslash in a string

2003-03-05 Thread Guy P
Original Message- > > > From: Guy P [mailto:[EMAIL PROTECTED] > > > Sent: Monday, March 03, 2003 9:10 AM > > > To: [EMAIL PROTECTED] > > > Subject: Backslash in a string > > > > > > > > > Hello, > > > My Perl program execute a

Re: Backslash in a string

2003-03-05 Thread wiggins
On Wed, 5 Mar 2003 10:02:17 -0500, "Guy P" <[EMAIL PROTECTED]> wrote: > The problem still remains. Look at the small program below. > The result is this: DirectionsNitprogrsourcsql > DirectionsNitprogrsourcsql

Re: Backslash in a string

2003-03-05 Thread david
Guy P wrote: > The problem still remains. Look at the small program below. > The result is this: DirectionsNitprogrsourcsql > DirectionsNitprogrsourcsql > > And I would like it to be this:\Directions\unit\progr\sourcsql > > .Directions.unit.progr.sourcsq

Managing the backslash in a string

2003-03-03 Thread Guy P
Hello, My Perl program execute a query that bring back into a variable a Windows paths initially stored in a database. I have got problems to manage the backslash. Example: Here's what is stored in the database --> \Directions\unit\progr\sourcsql I would like to get it in a variable thus I could

RE: Managing the backslash in a string

2003-03-03 Thread Dan Muey
Uh.. What's the problem? Are you getting an error of some kind? Are you having problems querying a database? A little context/code you're using might help. There is no conflict with having slashes in a string that is stored in a variable so You may want to expound a little more. DMuey > Hello,

Re: Managing the backslash in a string

2003-03-05 Thread Guy P
Look at the small program below. The result is this: DirectionsNitprogrsourcsql DirectionsNitprogrsourcsql And I would like it to be this:\Directions\unit\progr\sourcsql .Directions.unit.progr.sourcsql Notice that it doesn't print the backslashes and it

RE: Managing the backslash in a string

2003-03-05 Thread Bakken, Luke
> ## > #!/usr/bin/perl > my ($reprt); > $reprt= "\Directions\unit\progr\sourcsql"; > > print $reprt."\n"; > > # $reprt =~ s/\\//g; > $reprt =~ s/[\\]/\./g; > > print $reprt."\n"; my $reprt= '\Directions\unit\progr\sourcsql'; print $rep

Re: Managing the backslash in a string

2003-03-05 Thread R. Joseph Newton
Guy P wrote: > Look at the small program below. > The result is this: DirectionsNitprogrsourcsql > DirectionsNitprogrsourcsql > > And I would like it to be this:\Directions\unit\progr\sourcsql ... > > $reprt= "\Directions\unit\progr\sourcsql"; ...Hi Guy