Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Mnemonic Devices for Perl Programming

by blakem (Monsignor)
on Nov 16, 2001 at 04:20 UTC ( [id://125732]=note: print w/replies, xml ) Need Help??


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:??;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://125732]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-25 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found