Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
my %buckets = ( w = { count = 4, scale = 10.5, }, x = { count = 6, scale = 7, }, y = { count = 12, scale = 3, }, z = { count = 18,

Re: Simple Print/Say Question

2006-05-24 Thread Martin Kjeldsen
Just curious does this actually run? I'm trying on pugs 6.2.11 and it complains quite a bit. First of all shouldn't for %buckets.values - $arg_for be for %buckets.values - $arg_for is rw since $arg_for is modified? And then I get an error telling me 'No such method in class Scalar: kv' in

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
Hi Martin, * Martin Kjeldsen [EMAIL PROTECTED] [2006-05-24 11:50]: Just curious does this actually run? I'm trying on pugs 6.2.11 and it complains quite a bit. First of all shouldn't for %buckets.values - $arg_for be for %buckets.values - $arg_for is rw since $arg_for is modified?

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
* Daniel Hulme [EMAIL PROTECTED] [2006-05-24 12:45]: $arg_forarray = [ ( 0 .. $arg_forcount ) »*« $arg_forscale ]; btw, shouldn't the * be * as the right-hand operand is a scalar? I don’t know. S03 says: | If either argument is insufficiently dimensioned, Perl | upgrades it: | |

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
* Ovid [EMAIL PROTECTED] [2006-05-24 18:00]: First off, thanks to Aristotle for clearing some of my thinking. NP, it’s a good way for me to pick up the disparate Perl 6 clues I picked up haphazardly over time, too. In my version of Pugs (6.2.11 (r10390)), that fails for two reasons, both of

Re: Simple Print/Say Question

2006-05-23 Thread Gabor Szabo
On 5/23/06, Chris Yocum [EMAIL PROTECTED] wrote: 1|2|3 I would say something like: print $array[0] . | . $array[1] . | . $array[2] . \n; not the best way but it works. In Perl6 if say something like this: print @array[0] ~ | ~ @array[1] ~ | ~ @array[2] . \n; I get 1 2 3 | | | My

Re: Simple Print/Say Question

2006-05-23 Thread Fagyal Csongor
Chris, Strange. I have just tried this using an old version (6.2.3) of Pugs: my (@array) = 1,2,3; print @array[0] ~ | ~ @array[1] ~ | ~ @array[2] ~ \n; It prints 1|2|3 on my terminal. Gabor's join-ed version also works. - Fagzal Oops. That last . is a typo on my part. Sorry about that!

Re: Simple Print/Say Question

2006-05-23 Thread Chris Yocum
Dear Fagyal, Huh. Strange. I tried the code on its own without the rest of the script and it did just fine as well. There must be something wrong in my script somewhere. Chris On 5/23/06, Fagyal Csongor [EMAIL PROTECTED] wrote: Chris, Strange. I have just tried this using an old

Re: Simple Print/Say Question

2006-05-23 Thread Ovid
://users.easystreet.com/ovid/cgi_course/ - Original Message From: Fagyal Csongor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: perl6-users@perl.org Sent: Tuesday, May 23, 2006 12:11:07 PM Subject: Re: Simple Print/Say Question Chris, Strange. I have just tried this using an old version (6.2.3) of Pugs

Re: Simple Print/Say Question

2006-05-23 Thread Dr.Ruud
Chris Yocum schreef: print @array[0] ~ | ~ @array[1] ~ | ~ @array[2] . \n; First the Perl6-equivalent of $ = '|' ; and then say @array ; -- Affijn, Ruud Gewoon is een tijger.