Re: String interpolation

2004-07-20 Thread chromatic
On Tue, 2004-07-20 at 19:35, Luke Palmer wrote: > The New Way (tm) to do that would probably be sticking a role onto the > array object with which you're dealing: > > my @foo does separator('//') = (1,2,3,4,5); > say "[EMAIL PROTECTED]"; # 1//2//3//4//5 Shh, no one's let slip the idea

Re: String interpolation

2004-07-20 Thread Luke Palmer
Alexey Trofimenko writes: > On Tue, 20 Jul 2004 16:06:40 -0700, Larry Wall <[EMAIL PROTECTED]> wrote: > >So all of these would require curlies: > > > >{foo()} > >[EMAIL PROTECTED] > >... > > ah.. how poorly.. and how sufficient!.. But it's.. it's just not quite > like in perl5.. But

Re: String interpolation

2004-07-20 Thread Alexey Trofimenko
On Tue, 20 Jul 2004 16:06:40 -0700, Larry Wall <[EMAIL PROTECTED]> wrote: Actually, I've been rethinking this whole mess since last week, and am seriously considering cranking up the Ruby-o-meter here just a tad. At the moment I'm inclined to say that the *only* interpolators in double quotes are:

Re: String interpolation

2004-07-20 Thread Damian Conway
Larry wrote: Actually, I've been rethinking this whole mess since last week, and am seriously considering cranking up the Ruby-o-meter here just a tad. At the moment I'm inclined to say that the *only* interpolators in double quotes are: \n, \t etc. $foo @foo[$i] %foo{$k} {EXPR}

Re: This week's summary

2004-07-20 Thread Alexey Trofimenko
On Tue, 20 Jul 2004 19:15:49 +0200, Juerd <[EMAIL PROTECTED]> wrote: The Perl 6 Summarizer skribis 2004-07-20 14:46 (+0100): Another subthread discussed interpolation in strings. Larry'schanged his mind so that "$file.ext" is now interpreted as "$object.method". You need to do "${file

Re: String interpolation

2004-07-20 Thread Uri Guttman
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> Actually, I've been rethinking this whole mess since last week, and LW> am seriously considering cranking up the Ruby-o-meter here just a tad. LW> At the moment I'm inclined to say that the *only* interpolators in LW> double quotes

Re: String interpolation

2004-07-20 Thread Larry Wall
On Tue, Jul 20, 2004 at 06:28:11PM -0400, Aaron Sherman wrote: : > My preference is "$file\.ext". Clear, light and ascii. : : That's fine as far as it goes, but how do you say what, in Perl 5, I : would use this for: : : "${foo}n" : : I like the ${} syntax, but I'm a shell guy from my earl

String interpolation

2004-07-20 Thread Aaron Sherman
On Tue, 2004-07-20 at 13:15, Juerd wrote: > The Perl 6 Summarizer skribis 2004-07-20 14:46 (+0100): Wasn't there an actual thread to respond to for this? I always feel odd turning the summary into a thread on what it's summarizing. > My preference is "$file\.ext". Clear, light and ascii. That's

Re: This week's summary

2004-07-20 Thread Juerd
The Perl 6 Summarizer skribis 2004-07-20 14:46 (+0100): > Another subthread discussed interpolation in strings. Larry's changed > his mind so that "$file.ext" is now interpreted as "$object.method". You > need to do "${file}.ext" or ""$( $file ).ext"". Or maybe "$«file».ext" > by an

Re: This week's summary

2004-07-20 Thread Austin Hastings
--- The Perl 6 Summarizer <[EMAIL PROTECTED]> wrote: > Okay, so the interview was on Tuesday 13th of July. > It went well; I'm going to be a maths teacher. "As usual, we begin with maths-geometry: In Mathematics last week, one Pythagoras suggested there might be a relationship between the sides

This week's summary

2004-07-20 Thread The Perl 6 Summarizer
The Perl 6 Summary for the week ending 2004-07-18 Following last week's bizarrely dated summary (I misplaced a day) we're back with the correct week ending date, but I'm ashamed to admit that I've slipped to writing on a Tuesday again. My head hangs in shame and I am filled with the

Re: Why do users need FileHandles?

2004-07-20 Thread Michele Dondi
On Sun, 18 Jul 2004, Andrew Shitov wrote: > DW> my $text is TextFile("/tmp/bar"); > DW> $text = "hello"; # writes, truncates > DW> $text ~= ", world\n"; # appends > > DW> $text.print "again\n"; # for old-times sake > > Anyhow we still need $text.flush() or $text.close() methods.

Re: push with lazy lists

2004-07-20 Thread Michele Dondi
On Mon, 19 Jul 2004, Jonadab the Unsightly One wrote: > > If I extend the natural numbers N with Inf to a new set NI (N with > > Inf) > > The problem is, NI is not a group with respect to addition for any > definition of addition of which I am aware. Translated from mathese In other words, or m