Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Reverse grep?

by coolmichael (Deacon)
on Mar 02, 2002 at 05:23 UTC ( #148776=note: print w/ replies, xml ) Need Help??


in reply to Re: Reverse grep?
in thread Reverse grep?

I think +~ might be a typo. Don't you want this instead?

if ( $ENV{"REDIRECT_URL"} =~ /$_/ ) { print $_; last; } ^

Please correct me if I'm wrong.


Comment on Re: Re: Reverse grep?
Download Code
(jeffa) 3Re: Reverse grep?
by jeffa (Chancellor) on Mar 02, 2002 at 18:35 UTC
    Considering that one must hold down the shift key for the tilde character, coupled with the fact that the plus sign character shares the same key as the equal sign character ... yes ;)

    But, have you played with the results yet?

    [prompt]$ perl -le 'print /RED/' [prompt]$ perl -le 'print ~/RED/' 4294967295 [prompt]$ perl -le 'print hex("F"x8)' 4294967295 [prompt]$ perl -le '$_ = "REDIRECT"; print /RED/' 1 [prompt]$ perl -le '$_ = "REDIRECT"; print ~/RED/' 4294967294 [prompt]$ perl -le '$_ = "REDIRECT"; print 5+~/RED/' 4294967299
    Gotta love Perl's flexibility! :D

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-07-13 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (251 votes), past polls