http://qs1969.pair.com?node_id=36472


in reply to RE: RE: Caution - contents may settle in transit
in thread Caution - contents may settle in transit

Hi! THanks a lot, you've put me on the right page! ;) But I can't figure out how the tr{}{} function operator works... I have a "tr" followed by a bunch of garbage in a script but can't figure out how to translate this stuf... any exemple? thanks again for your precious help! you're my superhero ;)
  • Comment on RE: RE: RE: Caution - contents may settle in transit

Replies are listed 'Best First'.
RE: RE: RE: RE: Caution - contents may settle in transit
by cwest (Friar) on Oct 12, 2000 at 22:45 UTC
    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.
    
      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

        Is it just me, or does anyone smell a troll? ;-)

                - tye (but my friends call me "Tye")
        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.