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


in reply to Caution - contents may settle in transit

I have a script like this and i'm trying to understand how it works... the $_=q(with all those unprintable char after) how does this work. Please help I need it bad, i've been serching since yesterday...
  • Comment on RE: Caution - contents may settle in transit

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