From philarete at mindspring.com Sat May 12 18:16:35 2001 From: philarete at mindspring.com (Brock Sides) Date: Thu Aug 5 00:07:17 2004 Subject: [Memphis.pm] perl 6 apocalypse Message-ID: <20010512181635.C2746@harmless.yellowsnow.org> If you're interested in getting a glimpse of the future of Perl, www.perl.com has parts one and two of Larry's "Perl 6 Apocalypse", a revelation of things to come. Larry has organized the Perl 6 RFCs according to the chapters of the Camel Book. Apocalypse 1 corresponds to chapter 1, Apocalypse Two to chapter 2, etc. He provides comments on each RFC, rating the problem the RFC addresses, the solution it proposes, and saying to what degree that solution will be incorporated into Perl 6. One of the more shocking changes to come: the funny characters $, @, and %, will become part of the variable name. This means that no longer will you access the 4th member of the array @foo with $foo[3] -- instead, you'll use @foo[3]. And to get at the value associated with the key 'bar' in the hash %foo, you'll use %foo{'bar'}, not $foo{bar}. This, of course, necessitates a change to the notation for slices, which has yet to be revealed. Another surprising change: angle brackets will no longer be the operator for "get the next line from a filehandle". Instead, they will take the place of qw(). In fact, filehandles as a separate type will go away altogether. Filehandles will be yet another object. Instead of saying while () { # do stuff } you'll say while ($STDIN) { # do stuff } Objects that are iterators (like filehandles) will know to set the value of $_ when in boolean context. Oh, did I say "boolean context"? This strikes me as the most exciting change in Perl 6. You're familiar with the three contexts found in Perl<=5: scalar, list, and void. Perl 6 will add a whole slew of sub-contexts: Scalar context Boolean context Integer context Numeric context String context Object context List context Flattening list context Non-flattening list context Lazy list context Hash list context -- Brock Sides philarete@mindspring.com The original plan [for GNOME] was to aim to make a desktop as good as the Macintosh, and we should not lower our ambition by making one merely as good as Windows. -- RMS ---------------------------------------------------------------------------- To unsubscribe, please send email to majordomo@pm.org with 'unsubscribe memphis-pm-list' in the body of the message. ---------------------------------------------------------------------------- From philarete at mindspring.com Tue May 22 22:11:59 2001 From: philarete at mindspring.com (Brock Sides) Date: Thu Aug 5 00:07:17 2004 Subject: [Memphis.pm] interesting "quine" Message-ID: <20010522221159.B6395@harmless.yellowsnow.org> A perl program that prints its own source code: to standard error! http://perl.plover.com/quine.html -- Brock Sides philarete@mindspring.com The original plan [for GNOME] was to aim to make a desktop as good as the Macintosh, and we should not lower our ambition by making one merely as good as Windows. -- RMS ---------------------------------------------------------------------------- To unsubscribe, please send email to majordomo@pm.org with 'unsubscribe memphis-pm-list' in the body of the message. ---------------------------------------------------------------------------- From sheff at pobox.com Tue May 22 22:21:42 2001 From: sheff at pobox.com (Keith W. Sheffield) Date: Thu Aug 5 00:07:17 2004 Subject: [Memphis.pm] interesting "quine" In-Reply-To: Brock Sides's message of "Tue, 22 May 2001 22:11:59 -0500" References: <20010522221159.B6395@harmless.yellowsnow.org> Message-ID: >>>>> "Brock" == Brock Sides writes: > A perl program that prints its own source code: to standard error! > http://perl.plover.com/quine.html > -- > Brock Sides I wonder how many other cases exist where the error message can be the same as the source code? ---------------------------------------------------------------------------- To unsubscribe, please send email to majordomo@pm.org with 'unsubscribe memphis-pm-list' in the body of the message. ---------------------------------------------------------------------------- From dysan_2000 at hotmail.com Wed May 23 15:24:27 2001 From: dysan_2000 at hotmail.com (Big Ed) Date: Thu Aug 5 00:07:17 2004 Subject: [Memphis.pm] interesting "quine" Message-ID: >From: sheff@pobox.com (Keith W. Sheffield) Reply-To: memphis-pm-list@pm.org >To: memphis-pm-list@pm.org Subject: Re: [Memphis.pm] interesting "quine" >Date: 22 May 2001 22:21:42 -0500 > > >>>>> "Brock" == Brock Sides writes: > > > A perl program that prints its own source code: to standard error! > >http://perl.plover.com/quine.html > > > -- > Brock Sides > >I wonder how many other cases exist where the error message can be the same >as the source code? So I'm curious.. why does it work? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com ---------------------------------------------------------------------------- To unsubscribe, please send email to majordomo@pm.org with 'unsubscribe memphis-pm-list' in the body of the message. ---------------------------------------------------------------------------- From perl at erd3.com Wed May 23 18:25:22 2001 From: perl at erd3.com (perl@erd3.com) Date: Thu Aug 5 00:07:17 2004 Subject: [Memphis.pm] interesting "quine" In-Reply-To: Message-ID: On Wed, 23 May 2001, Big Ed wrote: > > > > >From: sheff@pobox.com (Keith W. Sheffield) Reply-To: memphis-pm-list@pm.org > >To: memphis-pm-list@pm.org Subject: Re: [Memphis.pm] interesting "quine" > >Date: 22 May 2001 22:21:42 -0500 > > > > >>>>> "Brock" == Brock Sides writes: > > > > > A perl program that prints its own source code: to standard error! > > >http://perl.plover.com/quine.html > > > > > -- > Brock Sides > > > >I wonder how many other cases exist where the error message can be the same > >as the source code? > > So I'm curious.. why does it work? The file name /tmp/p is taken as an attemp to divided something by the variable 'tmp' the words in front of tmp ('Illegal division by zero at') keep the /tmp/ from being interpreted as pattern matching. So a file with 'test /tmp' in it will produce the same error message. Reece Dike reece@erd3.com ---------------------------------------------------------------------------- To unsubscribe, please send email to majordomo@pm.org with 'unsubscribe memphis-pm-list' in the body of the message. ----------------------------------------------------------------------------