Re: Fisher-Yates shuffle

2002-04-15 Thread abigail
On Fri, Apr 12, 2002 at 02:14:36PM -0700, Erik Steven Harrison wrote: > > -- > > On Fri, 12 Apr 2002 18:27:11 > abigail wrote: > >On Fri, Apr 12, 2002 at 04:42:07PM +0100, Piers Cawley wrote: > >> [EMAIL PROTECTED] writes: > >> > > >> > Why isn't > >> > > >> > if %foo {"key"} {print "Hel

Re: Fisher-Yates shuffle

2002-04-13 Thread Andrew Pimlott
On Sat, Apr 13, 2002 at 12:51:06AM -0700, Ashley Winters wrote: > Perl today: A semicolon is required after every statement, except before a > closing curly or end of file. > Perl 6: A semicolon is also required after every block, except when the > closing curly is on a line of its own, or it prec

Re: Fisher-Yates shuffle

2002-04-13 Thread Ashley Winters
- Original Message - From: <[EMAIL PROTECTED]> > On Fri, Apr 12, 2002 at 04:42:07PM +0100, Piers Cawley wrote: > > [EMAIL PROTECTED] writes: > > > > > > Why isn't > > > > > > if %foo {"key"} {print "Hello 1"} > > > > > > equivalent with the perl5 syntax: > > > > > > if (%foo) {"key

Re: Fisher-Yates shuffle

2002-04-12 Thread Piers Cawley
[EMAIL PROTECTED] writes: > On Fri, Apr 12, 2002 at 04:42:07PM +0100, Piers Cawley wrote: >> [EMAIL PROTECTED] writes: >> > >> > Why isn't >> > >> > if %foo {"key"} {print "Hello 1"} >> > >> > equivalent with the perl5 syntax: >> > >> > if (%foo) {"key"} {print "Hello 1"} >> > >> > Which

Re: Fisher-Yates shuffle

2002-04-12 Thread Erik Steven Harrison
-- On Fri, 12 Apr 2002 18:27:11 abigail wrote: >On Fri, Apr 12, 2002 at 04:42:07PM +0100, Piers Cawley wrote: >> [EMAIL PROTECTED] writes: >> > >> > Why isn't >> > >> > if %foo {"key"} {print "Hello 1"} >> > >> > equivalent with the perl5 syntax: >> > >> > if (%foo) {"key"} {print "H

Re: Fisher-Yates shuffle

2002-04-12 Thread Luke Palmer
On Fri, Apr 12, 2002 at 04:42:07PM +0100, Piers Cawley wrote: > [EMAIL PROTECTED] writes: > > > > Why isn't > > > > if %foo {"key"} {print "Hello 1"} > > > > equivalent with the perl5 syntax: > > > > if (%foo) {"key"} {print "Hello 1"} > > > > Which keyword is it expecting? > > Keyword /el

Re: Fisher-Yates shuffle

2002-04-12 Thread abigail
On Fri, Apr 12, 2002 at 04:42:07PM +0100, Piers Cawley wrote: > [EMAIL PROTECTED] writes: > > > > Why isn't > > > > if %foo {"key"} {print "Hello 1"} > > > > equivalent with the perl5 syntax: > > > > if (%foo) {"key"} {print "Hello 1"} > > > > Which keyword is it expecting? > > Keyword /e

Re: Fisher-Yates shuffle

2002-04-12 Thread abigail
On Fri, Apr 12, 2002 at 04:00:37PM +0100, Piers Cawley wrote: > > [EMAIL PROTECTED] writes: > > As for "cleanness", this is my interpretation of how perl6 is going > > to work: > > > > %foo = (); > > if %foo {"key"} {print "Hello 1"} > > > > %foo = (); > > if %foo{"key"}

Re: Fisher-Yates shuffle

2002-04-12 Thread Piers Cawley
[EMAIL PROTECTED] writes: > On Fri, Apr 12, 2002 at 04:00:37PM +0100, Piers Cawley wrote: >> >> [EMAIL PROTECTED] writes: >> > As for "cleanness", this is my interpretation of how perl6 is going >> > to work: >> > >> > %foo = (); >> > if %foo {"key"} {print "Hello 1"} >> > >> >

Re: Fisher-Yates shuffle

2002-04-12 Thread Piers Cawley
[EMAIL PROTECTED] writes: > As for "cleanness", this is my interpretation of how perl6 is going > to work: > > %foo = (); > if %foo {"key"} {print "Hello 1"} > > %foo = (); > if %foo{"key"} {print "Hello 2"} > > %foo = (); > if %foo{"key"}{print "Hello 3"