-
cgi question
Hi,
I have a cgi script and i don't realy have a clue in cgi..
There are variables like $dir_name or $tmp that i use in several places on the cgi page.
The problem is that some of the values of these variables have underscore (_) inside and i'd like to display the value without the underscore. It means to replace the _ with space.
For example if the value is "George_W_Bush" it will display "George W Bush".
Is there a simple way to do it - something like commandname($tmp) ?
Or a hard way ?
Please help, Thanks,
E-A.
-
Code:
$string = 'George_W_Bush';
$string =~ tr/_/ /;
print $string;
-
Worked like a charm :)
Thanks !
E-A.