Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters
Bug? (was Re: proposal: functional C<if>...)
 

Index | Next | Previous | View Flat


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?

Subject User Time
Bug? (was Re: proposal: functional C<if>...) perl-diddler at tlinx May 5, 2012, 12:27 AM
    Re: Bug? (was Re: proposal: functional C<if>...) uri at stemsystems May 5, 2012, 12:50 AM
        Re: Bug? (was Re: proposal: functional C<if>...) perl-diddler at tlinx May 5, 2012, 1:46 AM
            Re: Bug? (was Re: proposal: functional C<if>...) zefram at fysh May 5, 2012, 2:36 AM
                Re: enhancement request ;-) -- use 'default_to_working'; perl-diddler at tlinx May 5, 2012, 4:53 PM
                    Re: enhancement request ;-) -- use 'default_to_working'; ikegami at adaelis May 6, 2012, 5:13 PM
        Re: Bug? (was Re: proposal: functional C<if>...) zefram at fysh May 5, 2012, 2:33 AM
            Re: Bug? (was Re: proposal: functional C<if>...) uri at stemsystems May 5, 2012, 7:42 AM
    Re: Bug? (was Re: proposal: functional C<if>...) davidnicol at gmail May 7, 2012, 10:20 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.