D
dmedhora
Hi
I have a var that has this value:
$var="$logfile=x.$$.log";
If I print $var, I get
$logfile=x.$$.log
But If I want to change the $ to \$ in the value of the variable
that is I want $var to have \$logfile=x.\$\$.log as its value then how
do I do it?
1 while ($var =~ s/\$/\\\$/g); does not work
Any help would be appreciated, thanks!
I have a var that has this value:
$var="$logfile=x.$$.log";
If I print $var, I get
$logfile=x.$$.log
But If I want to change the $ to \$ in the value of the variable
that is I want $var to have \$logfile=x.\$\$.log as its value then how
do I do it?
1 while ($var =~ s/\$/\\\$/g); does not work
Any help would be appreciated, thanks!