Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

RE: RE: Caution - contents may settle in transit

by cwest (Friar)
on Oct 12, 2000 at 21:53 UTC ( [id://36455]=note: print w/replies, xml ) Need Help??


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

Read the docs for qin perlop. Learn how to build a q operator statement with different delimiters.
$_=q uit it u; print; # prints 'it it '
Enjoy!
--
Casey
   I am a superhero.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-19 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found