D
David Filmer
I can't seem to do:
$vowels = 'aeiou'; $VOWELS = 'AEIOU';
tr/$vowels/$VOWELS/; #make all vowels uppercase
Perl doesn't see '$vowels' as a variablename, but as a 7-byte string
literal.
Of course, it works fine if I say
tr/aeiou/AEIOU/;
but I would like to know the proper syntax to do it with variablenames.....
TIA
$vowels = 'aeiou'; $VOWELS = 'AEIOU';
tr/$vowels/$VOWELS/; #make all vowels uppercase
Perl doesn't see '$vowels' as a variablename, but as a 7-byte string
literal.
Of course, it works fine if I say
tr/aeiou/AEIOU/;
but I would like to know the proper syntax to do it with variablenames.....
TIA