Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Perl Idioms Explained - ${\$obj->method} and @{[sort @list]}

by broquaint (Abbot)
on Aug 21, 2003 at 15:39 UTC ( #285498=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use constant MATCHES => join '|' => qw/ a list of words /;
    method result   - something complex here
    a regexp object - (?x-ism:\b (?: a|list|of|words ) \b)
  2. or download this
    print "it's a hash     - @{[ %hash ]}\n";
  3. or download this
    print "method result   - ${ \$obj->method }\n";
  4. or download this
    print "a regexp object - ", qr[\b (?: ${\MATCHES} ) \b]x, $/;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://285498]
Approved by ybiC
Front-paged by naChoZ
[shmem]: have a good time inside your information bubble.
[erix]: perhaps we can have common hindsight at these thing in a few years time
[Your Mother]: Please don't fight, mom and dad!

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2018-03-19 21:21 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.