Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: How to compare elements within an array

by doubleqq (Acolyte)
on Feb 20, 2014 at 20:11 UTC ( [id://1075636]=note: print w/replies, xml ) Need Help??


in reply to Re: How to compare elements within an array
in thread How to compare elements within an array

Thank you! This is such an elegant solution. You make hashes awesome. I did not realize you could use regex bare. I always believe you needed a {$variable =~} syntax.
  • Comment on Re^2: How to compare elements within an array

Replies are listed 'Best First'.
Re^3: How to compare elements within an array
by Kenosis (Priest) on Feb 20, 2014 at 20:25 UTC

    You're most welcome, doubleqq!

    I did not realize you could use regex bare.

    As I'm sure you've surmised, the regex implicitly operates on Perl's default scalar $_. As you examine more Perl code, you'll note regexes often being used in this context.

Log In?
Username:
Password:

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

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

    No recent polls found