Re: How do I... tie hashes/arrays?

2005-04-19 Thread Leopold Toetsch
Larry Wall <[EMAIL PROTECTED]> wrote: > On Tue, Apr 19, 2005 at 02:02:41PM +, Ingo Blechschmidt wrote: >: # Possibility #2 >: multi sub *postcircumfix:<'[', ']'>(TiedArray $self, $index) { >: # Body as above >: } > None of those are quite right, because you have to be prepar

Re: alarm() and later()

2005-04-19 Thread Leopold Toetsch
Gaal Yahas <[EMAIL PROTECTED]> wrote: > Two things popped up while implementing a demo version of alarm() today. > 1. In perl5 and in most underlying libraries, alarm() has 1 second > granularity > 2. ..., in which you can > pass an optional closure to alarm() I can't say anything about the actu

Re: Perl 6 Summary for 2005-04-12 through 2005-04-19

2005-04-19 Thread Michele Dondi
On Tue, 19 Apr 2005, Matt Fowles wrote: Python on Parrot ^^ Kevin Tew wondered what the state of pyrate was. Sam Ruby provided a general explanation. (I'm not on all of the lists, so this may have come out before and I j

Perl 6 Summary for 2005-04-12 through 2005-04-19

2005-04-19 Thread Matt Fowles
Perl 6 Summary for 2005-04-12 through 2005-04-19 All~ Sadly, a slip of the mouse cause me to delete a partially completed summary, so I am going to push ahead on the rewrite without a witty intro. Feel free to make one up for yourself involving stuffed animals, musicians, and d

Re: How do I... tie hashes/arrays?

2005-04-19 Thread Larry Wall
On Tue, Apr 19, 2005 at 02:02:41PM +, Ingo Blechschmidt wrote: : Hi, : : quoting an old post from Luke (http://xrl.us/ftet): : > Cing is going to work quite differently, from what I hear. : > So it might be possible to overload any function to call a : > special version when your type

Re: statement modifiers for setting variables

2005-04-19 Thread Larry Wall
On Mon, Apr 18, 2005 at 06:01:48PM -0700, Dave Whipp wrote: : The following is legal perl: : : print "$a $b $c" if ($a,$b,$c)=(1,2,3); : : This prints "1 2 3", but the definitions obviously aren't scoped to the : modified statement. And a C in the modifier is a bit too late. : : Any reason to

Re: Context of hash slices; quotation adverbs

2005-04-19 Thread Larry Wall
On Tue, Apr 19, 2005 at 02:14:04AM +0300, wolverian wrote: : On Mon, Apr 18, 2005 at 04:00:53PM -0700, Larry Wall wrote: : > %num_of_lines = [EMAIL PROTECTED]; : > : > : because the Perl 5 way would put a reference to @file in the hash. : > : Scalar context always makes references now, from wh

How do I... tie hashes/arrays?

2005-04-19 Thread Ingo Blechschmidt
Hi, quoting an old post from Luke (http://xrl.us/ftet): > Cing is going to work quite differently, from what I hear. > So it might be possible to overload any function to call a > special version when your type of array is used. You just have > to write all the special versions. S

Re: Context of hash slices; quotation adverbs

2005-04-19 Thread wolverian
On Mon, Apr 18, 2005 at 04:00:53PM -0700, Larry Wall wrote: > %num_of_lines = [EMAIL PROTECTED]; > > : because the Perl 5 way would put a reference to @file in the hash. > : Scalar context always makes references now, from what I understand. > > Interestingly, a stored reference would track t