Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found