develooper Front page | perl.perl5.porters | Postings from December 2012

Re: [perl #116020] toggle operator missing reset: proposal

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
December 10, 2012 15:51
Subject:
Re: [perl #116020] toggle operator missing reset: proposal
Message ID:
20121210154138.GD1978@iabyn.com
On Sat, Dec 08, 2012 at 03:56:33AM -0800, via RT wrote:
>   Since we can label any statement (now), why not have the reset operator take a label argument?
>   Then reset can act on the toggle(s) in that statement.
> 
>   So the minimum implemention would permit:
> sub extract {
>    my $out = '';
>    reset TOGGLE;

but C<reset TOGGLE> currently means the same as C<reset "TOGGLE">
(which means the same as C<reset "EGLOT">).

-- 
The crew of the Enterprise encounter an alien life form which is
surprisingly neither humanoid nor made from pure energy.
    -- Things That Never Happen in "Star Trek" #22

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