Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Re: grepp -- Perl version of grep

by jdporter (Canon)
on Apr 15, 2004 at 17:51 UTC ( #345479=note: print w/replies, xml ) Need Help??

in reply to Re: grepp -- Perl version of grep
in thread grepp -- Perl version of grep

Such a benchmark is only valid for tests which can be run by both implementations. Depending on what you're trying to do, slow is better than impossible.

The 6th Rule of Perl Club is -- There is no Rule #6.

Replies are listed 'Best First'.
Re: grepp -- Perl version of grep
by Abigail-II (Bishop) on Apr 15, 2004 at 23:27 UTC
    Do you have common regular expressions you'd use 'grepp' for, and for which there's no 'grep' equivalent?


      Well, that bit in the pod about matching GB characters was based on personal experience. Access to Perl 5.8's character-set transliteration and unicode-based character semantics for matches (not to mention the very handy "\p" unicode-based character classes) was the main reason I had to write this tool in the first place. The other bells and whistles (handling compressed data, controlling the input record separator) were after-thoughts -- once I started using this thing on real (multi-language, multi-coded) text data, those other things were just handy and easy to add. But the Encode module was crucial.

      Maybe some people have tricks to search for a specific GB (or Big5, or Shif-JIS) character using plain-old "grep", but I couldn't figure a way to make it trustworhty for such things, and doing it with Perl just made sense.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://345479]
[erix]: it an invite to pull, as I understand it
[Discipulus]: Concave or convex?
[Discipulus]: who make the invitation? the program?!?
[choroba]: it's historical
[erix]: pull requests
[choroba]: originally, you sent a pull request to someone by email, i.e. you asked them to pull from your repo
[Discipulus]: if is the author of a patch, is more like a 'request to push' into rather than a pull request..
[choroba]: as it's considered unpolite to push to someone else's repo
[choroba]: and in fact, you don't push into the target repo, you push into your branch of your fork
[choroba]: the maintainer of the upstream repo than "merges" the pull request, i.e. they pull from your fork into the upstream

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2017-05-27 20:10 GMT
Find Nodes?
    Voting Booth?