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

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).
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^6: Grab 3 lines before and 2 after each regex hit
by HarryPutnam (Novice) on Apr 25, 2014 at 21:23 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).

    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