Read perlop for the tr operator. It's the same thing... these operators ( q, qq, qw, s, tr, m, qx, qr ) can all be delimited by nearly any delimiter.
--
Casey
I am a superhero.
| [reply] [d/l] |
Well.. i've tried to understand it but my english seems to lack a bit... i've tryed :
$res = tr'ou''hello';
thinking I would get "hellu" in $res but it gives me some error... could you give me a working exemple? Thanks a lot, I know I must be a pain for you. Sorry
| [reply] |
| [reply] |
my $variable = 'hello';
$variable =~ tr/o/u/;
print $variable;
You need to read perlop to figure out how to use tr and it's family.
--
Casey
I am a superhero.
| [reply] [d/l] |