Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^9: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (*)

by tobyink (Canon)
on Dec 01, 2013 at 19:18 UTC ( [id://1065175]=note: print w/replies, xml ) Need Help??


in reply to Re^8: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (*)
in thread use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20

Perl 5.19.4 and above. With hashes it seems fairly useful...

sub new { my ($class, %args) = @_; my $self = { %args{"foo", "bar", "baz"} }; bless $self, $class; }

Used on arrays, a la %arr[1,2,3] it seems less so.

See also

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-23 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found