Forum Moderators: coopster & phranque

Message Too Old, No Replies

Need to convert an ENV

         

branmh

2:35 pm on Oct 19, 2003 (gmt 0)

10+ Year Member



I need to convert the / from this $ENV{'DOCUMENT_URI'} and turn them into _

claus

5:51 pm on Oct 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



$string = $ENV{'DOCUMENT_URI'}
$string =~ s/\//_/

...might do it

branmh

6:04 pm on Oct 19, 2003 (gmt 0)

10+ Year Member



Thanks, had to add g; to the end of it.

$document_name = $ENV{'DOCUMENT_URI'};
$document_name =~ s/\//_/g;