P
Patrick
Hi,
I have a bunch of variables that I need changed. Basicly, anywhere i
see something like this:
$test{'HI_THERE'}
I need tranlated to this:
$test{'hi_there'}
But I can't use:
tr/A-Z/a-z/
because that translates all uppercases to lower cases (and breaks most
of my code - i.e. $cgi = new CGI; turns into: $cgi = new cgi.
Is there anyway to get this to work for that particular patter. I
tried this, but didn't seem to work (it translated everything to lower
case):
perl -pi -e "tr/{'A-Z'}/{'a-z'}/" test.cgi
Any help would be appriciated. Thanks,
-Patrick-
I have a bunch of variables that I need changed. Basicly, anywhere i
see something like this:
$test{'HI_THERE'}
I need tranlated to this:
$test{'hi_there'}
But I can't use:
tr/A-Z/a-z/
because that translates all uppercases to lower cases (and breaks most
of my code - i.e. $cgi = new CGI; turns into: $cgi = new cgi.
Is there anyway to get this to work for that particular patter. I
tried this, but didn't seem to work (it translated everything to lower
case):
perl -pi -e "tr/{'A-Z'}/{'a-z'}/" test.cgi
Any help would be appriciated. Thanks,
-Patrick-