in reply to Mnemonic Devices for Perl Programming

my mnemonic for /s and /m is:
/s -- Allows .* to Slurp up numerous lines
/m -- Allows ^ and $ to match in the Middle of the string

-Blake

  • Comment on Re: Mnemonic Devices for Perl Programming

Replies are listed 'Best First'.
Re: Re: Mnemonic Devices for Perl Programming
by japhy (Canon) on Nov 16, 2001 at 04:43 UTC
    This is in my book, by the way. Thanks for your information.

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

      And now everyone knows why I got to be mentioned in the same breath as merlyn and Erudil. dotSlurp1 mode indeed... ;-)

      But seriously, go check out japhy's book... Its a really good read and goes into some new regex stuff that I didn't know much about.

      1dotSlurp was coined by dws as a summary of my mnemonic. kind of catchy really...

      -Blake

        I'll be posting the new URL of the book on Sunday. It's been a while since the web site was updated, and there've been a lot of changes to the book.

        _____________________________________________________
        Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
        s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;