develooper Front page | perl.perl5.porters | Postings from January 2011

Re: Proposal: "$->" for implicit invocant

Thread Previous | Thread Next
From:
Zefram
Date:
January 16, 2011 15:52
Subject:
Re: Proposal: "$->" for implicit invocant
Message ID:
20110116235225.GB5868@lake.fysh.org
Chia-liang Kao wrote:
>"use feature 'invocant'" enables the $-> operator.

Already effectively available.  It's spelled "$_->", as in

	given(shift) {
		$_->foo;
		$_->bar;
	}

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About