Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^2: What would you put on a Perl mug?

by jarich (Curate)
on Oct 27, 2005 at 09:03 UTC ( #503281=note: print w/replies, xml ) Need Help??

in reply to Re: What would you put on a Perl mug?
in thread What would you put on a Perl mug?

Regarding \Z and \z. Now added. Thankyou for your suggestion.

I didn't think about pack/unpack but that's because it's something I so rarely use. It's also less likely to have appeal to the Java, Python and PHP members of the conference audience, whereas (so far as I know) Perl's regular expression syntax ought to be useful to all of those members.

A "No Java" message might get me into trouble, all things considered. ;)

Thanks again for your suggestion.


  • Comment on Re^2: What would you put on a Perl mug?

Replies are listed 'Best First'.
Re^3: What would you put on a Perl mug?
by Perl Mouse (Chaplain) on Oct 27, 2005 at 10:25 UTC
    I didn't think about pack/unpack but that's because it's something I so rarely use.
    That's exactly why I'd put it on a mug. Regular expressions is what people use all the time, and so they'll know most, if not all, of the syntax already. And since Perl regular expressions are firmly based on Henry Spencer's library, a lot of non-Perl users will not have problems with Perl regular expressions.

    OTOH, I don't use pack and unpack that often. That's why I need to look up its syntax when I do use it.

    Perl --((8:>*
Re^3: What would you put on a Perl mug?
by graff (Chancellor) on Oct 28, 2005 at 02:15 UTC
    In that same vein (or in the vein where I have my coffee injected)...

    The things for which I'm always going back to "perldoc perlre" are:

    (?=) positive look-ahead (?!) negative look-ahead (?<=) positive look-behind (?<!) negative look-behind
    In fact, I had to look them up again just now, to make sure I posted them right. (Having done this, maybe I'll be able to use them from memory next time.) These really are tremendously useful, and it would be swell to have them visible on my desk at all times (except when I'm drinking my coffee, of course).

    I'm reluctant to suggest removing anything you have already, and I suppose you'd need to shrink the font if possible (and abbreviate "positive" and "negative") to make more stuff fit. If that were doable, and you ended up with enough room for just a couple more things besides "[pn].* look-.*d", you could add:

    \p{...} unicode class ... [:...:] posix class ...
    (not much detail there, admittedly, but just getting the terms "unicode" and "posix" onto the mug seems worthwhile).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://503281]
[marto]: Wolfsbane , now I'm having flashbacks
[choroba]: Isn't Using PerlPod Creatively rather a meditation?
[choroba]: I don't see a question
[1nickt]: ugh, I stuck my head in the bass bin for 30 seconds on a dare at Ted Nugent at Hammersmith Odeon. Yes, I am 40% deaf now.
[johngg]: My daughter is incredibly jealous of my wife who got to see The Clash at Brixton many years ago. They went to see The Vaccines there recently.
[1nickt]: But the bands are even louder! I saw Spearhead (Michael Franti) at an outdoor show and had to walk a mile away to not feel pain in my chest! Babies were crying ... I asked the sound engineer why it was necessary to have the bass so loud and he laughed...
[Discipulus]: but the best i attended live was Mano Negra Patchanka at Forte Prenestino .. in 1990

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-03-24 12:13 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.