in reply to Re^3: Grab 3 lines before and 2 after each regex hit
in thread Grab 3 lines before and 2 after each regex hit

http://perldoc.perl.org/perlop.html#Quote-Like-Operators

Egad... I understood about 1/10 of a percent of that.

I see the authors have made a fairly extensive effort to make the explanations readable... but still seems aimed at an audience several good steps above me. Or possibly just a few layers less of `thickskulledness'.

Finally resorted to skipping thru and reading every place qq appears. However, I came away mostly with my poor pea brain swimming.

I never really recognized your usage in those pages.

One small thing that did stay with me:
qq means what follows is interpolated... beyond that and even that itself, sails right over my head.

  • Comment on Re^4: Grab 3 lines before and 2 after each regex hit

Replies are listed 'Best First'.
Re^5: Grab 3 lines before and 2 after each regex hit
by choroba (Cardinal) on Apr 25, 2014 at 20:42 UTC
    Do you understand how '...' and "..." work in Perl? q() and qq() work pretty the same way, respectively. "Interpolation" just means some characters have special meaning (\, $, @ to name a few).
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Do you understand how '...' and "..." work in Perl? q() and qq() work pretty the same way, respectively. "Interpolation" just means some characters have special meaning (\, $, @ to name a few).

      In most cases I understand the different quote styles... but I do still get confused at times regarding which is needed. Of course, that part about '...' not letting variable expand... I do get.

      I understand that qq~ ... ~ works for my purpose. As to understanding exactly what happens there... no. I mean beyond restricting the output to only between those tilde symbols. Any deeper ... er .. no.

      You forcing me to see it a little better... has cleared it up at last