I have writen a small script to replace the . with /../
which is as follows.
$var = "DataAccess\Dat aAccess.";
$var =~ s/(.)/(\)..(\)/;
print "value is : $var";
But in this case when I run this script it gives me result as :
value is : ()..()ataAccess DataAccess.
which not as per my expectation.
I want the result some thing like this : value is : value is : DataAccess\Data Access\..\
So what changes should i make in my current script to get desire result.
Also why it is removing '\' character when run the script.
-Thanks,
Raju
which is as follows.
$var = "DataAccess\Dat aAccess.";
$var =~ s/(.)/(\)..(\)/;
print "value is : $var";
But in this case when I run this script it gives me result as :
value is : ()..()ataAccess DataAccess.
which not as per my expectation.
I want the result some thing like this : value is : value is : DataAccess\Data Access\..\
So what changes should i make in my current script to get desire result.
Also why it is removing '\' character when run the script.
-Thanks,
Raju
Comment