Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

RE: RE: RE: RE: RE: Caution - contents may settle in transit

by Anonymous Monk
on Oct 12, 2000 at 23:00 UTC ( #36476=note: print w/replies, xml ) Need Help??


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

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
  • Comment on RE: RE: RE: RE: RE: Caution - contents may settle in transit

Replies are listed 'Best First'.
(tye)RE: Caution - contents may settle in transit
by tye (Sage) on Oct 13, 2000 at 00:21 UTC

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

            - tye (but my friends call me "Tye")
      I'm beginning to think so...
      --
      Casey
         I am a superhero.
      
        Hey.. what do you all mean? THanks Casey, I finnaly understand the link. I tought first it was a completely different command than tr///! With all your help and exemple, i've done it even if I'm far from mastering perl. It's a great language though!
RE: RE: RE: RE: RE: RE: Caution - contents may settle in transit
by cwest (Friar) on Oct 12, 2000 at 23:10 UTC
    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.
    
      Hi, thanks again casey! The only question left is the folowing : if $t="1234" and $_="abcd" and the script does an s/hello/$t/seee; what the "seee" do change? I think it does nothing but... can't find why it is in the script...
        Check perlop for the s operator. It gives a clear definition of s statement modifiers.

        In you case, those modifiers don't help much... look up what 'i' or 'g' does... Am I helping you with your homework?

        --
        Casey
           I am a superhero.
        

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://36476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2022-05-23 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?