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


in reply to Re^9: Words in Words
in thread Words in Words

Got it!

The only piece in the code I am wondering about is where you are checking for rules 3 and 4 and use "$subword . q{s}..."

I know what it is doing but where did the "q" come from?

Thank you!

Replies are listed 'Best First'.
Re^11: Words in Words
by Anonymous Monk on Oct 03, 2011 at 00:16 UTC

    http://perldoc.perl.org/perlop.html#Quote-and-Quote-like-Operators
    Customary Generic Meaning Interpolates '' q{} Literal no "" qq{} Literal yes `` qx{} Command yes* qw{} Word list no // m{} Pattern match yes* qr{} Pattern yes* s{}{} Substitution yes* tr{}{} Transliteration no (but see below) y{}{} Transliteration no (but see below) <<EOF here-doc yes* * unless the delimiter is ''.
      Perfect. Thank you.