Hot new feature in Perl 6 (Score:5, Funny)
Joel Meulenberg
joelmeulenberg at yahoo.com
Fri Jul 21 22:50:48 CDT 2000
You may have seen the headline on the upcoming Perl 6 at Slashdot.
Paul Tjapkes pointed out a particularly funny posting on that topic.
In case you missed it, here it is:
Hot new feature in Perl 6 (Score:5, Funny)
by sparks (andrewc%ethink.co.uk) on Wednesday July 19, @04:42PM EDT
Building on the success of previous versions of Perl, with its famous
"line noise as syntax" philosophy, Perl 6 is to borrow heavily from a
certain other scripting language and introduce syntactically
significant whitespace.
In keeping with the spirit of Perl, heavy use will be made of default
variables in this new system. So for example, the commonly used "print"
command will be replaced by:
And the almost-as-common "if" will become:
Instead of "foreach" it will be possible to use:
And lastly, any reference to "$_" or "($_)" can be replaced by:
So a typical Perl 6 program segment might look like this.
#!/usr/bin/perl
(@_) {
{
;
}
}
Larry has expressed his gratitude to the Python developers for their
initial work in this area.
=====
only the fool would take trouble to verify that his sentence was composed of ten a's, three b's, four c's, four d's, forty-six e's, sixteen f's, four g's, thirteen h's, fifteen i's, two k's, nine l's, four m's, twenty-five n's, twenty-four o's, five p's, sixteen r's, forty-one s's, thirty-seven t's, ten u's, eight v's, eight w's, four x's, eleven y's, twenty-seven commas, twenty-three apostrophes, seven hyphens and, last but not least, a single !
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail Free email you can access from anywhere!
http://mail.yahoo.com/
More information about the grand-rapids-pm-list
mailing list