S
SqlSlinger
I'm trying to convert all occurances of variables of the form
VARIABLE_ONE, VARIABLE_NUMBER_TWO, a_really_long_VARIABLE_name
to the form
VariableOne, VariableNumberTwo, AReallyLongVariableName
Here's my Program:
$_='a_really_long_VARIABLE_name';
s/([A-Za-z])([^_ \t\n]*?)(_([A-Za-z0-9])([^_ \t\n]*?))+/\u$1\L$2\E\u$4\L$5\E/;
print;
__END__
Prints "AReally_long_VARIABLE_name".
Can anyone help?
VARIABLE_ONE, VARIABLE_NUMBER_TWO, a_really_long_VARIABLE_name
to the form
VariableOne, VariableNumberTwo, AReallyLongVariableName
Here's my Program:
$_='a_really_long_VARIABLE_name';
s/([A-Za-z])([^_ \t\n]*?)(_([A-Za-z0-9])([^_ \t\n]*?))+/\u$1\L$2\E\u$4\L$5\E/;
print;
__END__
Prints "AReally_long_VARIABLE_name".
Can anyone help?