
perl-diddler at tlinx
May 5, 2012, 12:27 AM
Views: 122
Permalink
|
|
Bug? (was Re: proposal: functional C<if>...)
|
|
Linda W wrote: > Why should this yield an error: > > @_ ? #if (@_) { > ($M, $tM)=(shift, 100*$H+$M) > : #}else{ > ($H, $M) = (int $H/100, $tM % 60); > #} > Assignment to both a list and a scalar at /tmp/pp.pl line 12, near ");" > > Where's the assignment to a scalar? --- Seems like this might also be a problem in 5.14... as it doesn't work there either. Is there some other interpretation that I'm missing?
|