develooper Front page | perl.perl6.users | Postings from May 2006

Re: Simple Print/Say Question

Thread Previous | Thread Next
From:
Ovid
Date:
May 24, 2006 08:55
Subject:
Re: Simple Print/Say Question
Message ID:
20060524155441.79036.qmail@web60814.mail.yahoo.com
----- Original Message ----
From: Jonathan Scott Duff <duff@pobox.com>

> pushes an array reference onto @results (rather than things that are
> int). If you're going to type @results, maybe it needs to be:
>
> my @results is Array of Array of int;    
>
> or maybe
>
> my Array of int @results;


Yes, I believe you're right.  Nice catch!

Too bad that generates the following error:

  *** 
      unexpected "o"
      expecting comment, variable name or "("
      at bucket.p6 line 24, column 10


As I recall, Pugs only uses the "int" and "array" stuff as comments right now, though I could be mistaken.

Cheers,
Ovid





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