Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

Re^4: $obj->method v.s. $obj->method()

by JavaFan (Canon)
on May 09, 2009 at 18:38 UTC ( [id://763062]=note: print w/replies, xml ) Need Help??

in reply to Re^3: $obj->method v.s. $obj->method()
in thread $obj->method v.s. $obj->method()

it looks like qw() has some magic in it in recent versions
If you mean with "recent" any formal releases in years starting with '2', then yes.

This has worked ever since 5.6.0 - which was the version that started doing qw at compile time, turning qw[foo bar] into ('foo', 'bar'). With parens. Probably most often seen in:

foreach my $qw qw (qw qw) {print $qw}

Replies are listed 'Best First'.
Re^5: $obj->method v.s. $obj->method()
by Burak (Chaplain) on May 09, 2009 at 18:45 UTC
    I meant 5.8+ actually. Haven't used 5.6 much. I usually test 5.5.4 compatibility from time to time for some of my code. But having this in 5.6 is interesting as it kind of enables some perl6 features very early like the foreach loop you wrote :)

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-05-25 20:35 GMT
Find Nodes?
    Voting Booth?

    No recent polls found