I'm trying to initialize a variable to the transliterated scalar value of another variable. I'm unable to make the following work:
#!/usr/bin/perl/ -w use strict; open UDATA, '<', "todo.users" or die "Failed to open userdata... $!"; while (my $line = <UDATA>) { chomp $line; my $nuline =~ tr/a-zA-Z/n-za-mN-ZA-M/; print "$nuline\n"; } close UDATA;
Why does this not print the transliterated value of $line?
Thanks!
In reply to Problem using transliteration to modify a variable... by cgmd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |