2008/12/11 Dirk Koopman d...@tobit.co.uk:
Robin Berjon wrote:
We need a more ecumenical colour.
So purple rather than the more pagan orange?
/joel
I was feeling bored so decided to write a Perl Christmas quiz.
1) Name as many different reasons as you can that Larry Wall has given for how
Perl came to be named (including where he has given them). Make up a brand new
reason of your own.
2) Name all the built in file handles in Perl.
I can pick off a few of the easy ones.
[SPOILERS]
6) What company was Larry Wall working for when he wrote Perl 1?
JPL.
9) When will Perl 6 be released?
Christmas
10) Who was the most important pioneer of Perl Poetry?
Sharon Hopkins
13) Think of a witty and/or
Andy Wardley wrote:
I can pick off a few of the easy ones.
[SPOILERS]
[ snip ]
13) Think of a witty and/or interesting Perl Christmas quiz question
and answer it.
The Fairmont Hotel. What was the question?
Where did the first (and second, I think)
SPOILERS contd
On Fri, Dec 12, 2008 at 11:37 AM, Joel Bernstein j...@fysh.org wrote:
2008/12/12 Chris Jack chris_j...@msn.com:
3) Write a Perl function that takes two references to arrays and returns the
intersect of them. If an entry appears n times in array 1 and m times in
array 2, the
On Fri, Dec 12, 2008 at 12:43 PM, Fahad Khan fahad.a.k...@hotmail.com wrote:
Date: Fri, 12 Dec 2008 12:10:19 +
From: pa...@paulm.com
To: london.pm@london.pm.org
Subject: Re: Perl Christmas Quiz
SPOILERS contd
This isn't a set question though. Sets have unique membership,
stix:~$
On Fri, Dec 12, 2008 at 01:18:24PM +, Hakim Cassimally wrote:
[...]
The question isn't specific about how the output should look if it a key
doesn't appear in both arrays, or if n==m.
It does. It asks for the intersect, which is the set theory way of saying
those elements that appear in
On Fri, Dec 12, 2008 at 08:12:05AM +, Joel Bernstein wrote:
2008/12/11 Dirk Koopman d...@tobit.co.uk:
Robin Berjon wrote:
We need a more ecumenical colour.
So purple rather than the more pagan orange?
Yes! We should use the appropriate liturgical colour for the season!
This has the
Chris Jack wrote:
I was feeling bored so decided to write a Perl Christmas quiz.
[SPOILERS]
All answers are from the top of my head, without any research
1) Name as many different reasons as you can that Larry Wall has given
for how Perl came to be named (including
On 12/12/2008, Peter Corlett ab...@cabal.org.uk wrote:
On Fri, Dec 12, 2008 at 01:18:24PM +, Hakim Cassimally wrote:
[...]
The question isn't specific about how the output should look if it a key
doesn't appear in both arrays, or if n==m.
It does. It asks for the intersect, which
On Fri, Dec 12, 2008 at 02:15:49PM +, Hakim Cassimally wrote:
On 12/12/2008, Peter Corlett ab...@cabal.org.uk wrote:
[...]
sub intersect{my%x;$x{$_}++for(@{+shift});grep{$x{$_}$x{$_}...@{+shift};}
Gah of course: though you missed the min(n,m) requirement.
Are you sure? Really sure?
The
On 12/12/2008, Peter Corlett ab...@cabal.org.uk wrote:
On Fri, Dec 12, 2008 at 02:15:49PM +, Hakim Cassimally wrote:
On 12/12/2008, Peter Corlett ab...@cabal.org.uk wrote:
[...]
sub intersect{my%x;$x{$_}++for(@{+shift});grep{$x{$_}$x{$_}...@{+shift};}
Gah of course: though you
On Fri, Dec 12, 2008 at 11:37:23AM +, Joel Bernstein wrote:
4) How many different variable types are there in Perl? Be as sensibly
voluminous in your answer as you are able.
SCALAR ARRAY HASH CODE
FileHandle DirHandle Regexp
But clearly we distinguish between numeric and string
2008/12/12 Léon Brocard a...@astray.com:
2008/12/11 Andy Wardley a...@wardley.org:
How about this?
http://wardley.org/london.pm.org/
This is fantastic!
I would like to point out that my orange is #FF9900, but that's very
close indeed.
Andy, care to put your changes live?
And if you
On Fri, Dec 12, 2008 at 2:24 PM, Robin Berjon ro...@berjon.com wrote:
On Dec 12, 2008, at 13:56 , Paul Makepeace wrote:
On Fri, Dec 12, 2008 at 12:43 PM, Fahad Khan fahad.a.k...@hotmail.com
wrote:
In my baby perl.
sub intersect
{
my ($a, $b) = @_;
my ($c, $d) = ({}, []);
foreach
2008/12/12 Paul Makepeace pa...@paulm.com:
Fair enough, and not the place to make comments. I think I've just had
one too many interview candidates in recent memory who have named
their functions func and used variable names like foo, bar, etc.
I'm dealing with a piece of production code
I've got a *very* strange problem with Perl segfaulting seemingly at
random, but quite predictably based on things that it really shouldn't
care about (like comments).
It's so weird that my first thought was that it was faulty memory in my
machine. But I've tried it on two machines (both macs)
On Fri, Dec 12, 2008 at 04:38:07PM +, Andy Wardley wrote:
Before I go digging deeper (having already lost most of the afternoon to
this), can someone confirm the problem for me?
Not manifest on my 5.8.8.
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
What the hell, since we've spent the last few days arguing with each
other about our (and Perl's) image to newcomers:
On Fri, Dec 12, 2008 at 3:00 PM, Paul Makepeace pa...@paulm.com wrote:
On Fri, Dec 12, 2008 at 2:24 PM, Robin Berjon ro...@berjon.com wrote:
On Dec 12, 2008, at 13:56 , Paul
2008/12/12 Peter Corlett ab...@cabal.org.uk:
On Fri, Dec 12, 2008 at 01:18:24PM +, Hakim Cassimally wrote:
[...]
The question isn't specific about how the output should look if it a key
doesn't appear in both arrays, or if n==m.
It does. It asks for the intersect, which is the set theory
Andy Wardley a...@wardley.org [12-12-2008 17:38]:
[...]
Before I go digging deeper (having already lost most of the afternoon to
this), can someone confirm the problem for me?
I can't reproduce this on 5.8.8 @ 64bit Linux.
BTW, what's this?
$ tar tzf broken_glass.tgz | grep _
On 12 Dec 2008, at 16:38, Andy Wardley wrote:
I've got a *very* strange problem with Perl segfaulting seemingly at
random, but quite predictably based on things that it really shouldn't
care about (like comments).
[snip]
Before I go digging deeper (having already lost most of the
afternoon to
On Fri, Dec 12, 2008 at 06:00:04PM +0100, Radoslaw Zielinski wrote:
Andy Wardley a...@wardley.org [12-12-2008 17:38]:
[...]
Before I go digging deeper (having already lost most of the afternoon to
this), can someone confirm the problem for me?
I can't reproduce this on 5.8.8 @ 64bit
On Fri, Dec 12, 2008 at 06:00:04PM +0100, Radoslaw Zielinski wrote:
[...]
BTW, what's this?
$ tar tzf broken_glass.tgz | grep _
./._Broken.pm
./._Glass.pm
./._glass.t
They're how MacOS resource forks are mapped onto a Unix filesystem.
On Fri, Dec 12, 2008 at 01:18:24PM +, Hakim Cassimally wrote:
On 12/12/2008, Paul Makepeace pa...@paulm.com wrote:
SPOILERS contd
3) Write a Perl function that takes two references to arrays and returns
the intersect of them. If an entry appears n times in array 1 and m
times
UG == Uri Guttman u...@stemsystems.com writes:
CJ == Chris Jack chris_j...@msn.com writes:
CJ 3) Write a Perl function that takes two references to arrays and
CJ returns the intersect of them. If an entry appears n times in
CJ array 1 and m times in array 2, the output should list that
On 12 Dec 2008, at 17:05, Mark Blackman wrote:
On 12 Dec 2008, at 16:38, Andy Wardley wrote:
I've got a *very* strange problem with Perl segfaulting seemingly at
random, but quite predictably based on things that it really
shouldn't
care about (like comments).
[snip]
Before I go digging
DC == Dave Cross d...@dave.org.uk writes:
DC Andy Wardley wrote:
I can pick off a few of the easy ones.
[SPOILERS]
DC [ snip ]
13) Think of a witty and/or interesting Perl Christmas quiz question
and
On Fri, Dec 12, 2008 at 12:29:24PM -0500, Uri Guttman wrote:
[...]
return keys%{{map{$_,1}grep(${{map{$_=1...@{$_[0]}}}{$_},@{$_[1]})}} ;
it may not win in golf but it is a single expression/statement with no
declared variables so that should earn some points. i wouldn't call
multistatement
2008/12/12 Uri Guttman u...@stemsystems.com:
UG == Uri Guttman u...@stemsystems.com writes:
CJ == Chris Jack chris_j...@msn.com writes:
CJ 3) Write a Perl function that takes two references to arrays and
CJ returns the intersect of them. If an entry appears n times in
CJ array 1 and m
Nicholas Clark n...@ccl4.org [12-12-2008 18:11]:
On Fri, Dec 12, 2008 at 06:00:04PM +0100, Radoslaw Zielinski wrote:
Andy Wardley a...@wardley.org [12-12-2008 17:38]:
[...]
Before I go digging deeper (having already lost most of the afternoon to
this), can someone confirm the problem for me?
On Fri, Dec 12, 2008 at 11:32:55AM -0500, Uri Guttman wrote:
rumor is tpc may be back in san jose due to outgrowing the portland
convention center. san jose has a large center opposite the
fairmont. the downside is that san jose is a very dull town (especially
compared to portland). you have
NC == Nicholas Clark n...@ccl4.org writes:
NC On Fri, Dec 12, 2008 at 11:32:55AM -0500, Uri Guttman wrote:
rumor is tpc may be back in san jose due to outgrowing the portland
convention center. san jose has a large center opposite the
fairmont. the downside is that san jose is a very
Nicholas Clark wrote:
Have you tested your code with 5.8.9-RC2 yet?
Just tried it now and it works OK.
Do you think it's worth perlbugging for the record?
Thanks everyone. It's a long time since I found a bug in perl!
A
J == Jasper jaspermcc...@gmail.com writes:
UG sub intersect {
return keys%{{map{$_,1}grep(${{map{$_=1...@{$_[0]}}}{$_},@{$_[1]})}} ;
J Uri, I don't believe this does the right thing with regard to multiple
J occurrences of an entry in both arrays. I may be wrong.
sub intersect {
yes. in san jose. i still have canvas bags from tpc1!
rumor is tpc may be back in san jose due to outgrowing the portland
convention center. san jose has a large center opposite the
fairmont. the downside is that san jose is a very dull town (especially
compared to portland). you have to
On Fri, Dec 12, 2008 at 12:10 PM, Paul Makepeace pa...@paulm.com wrote:
SPOILERS contd
On Fri, Dec 12, 2008 at 11:37 AM, Joel Bernstein j...@fysh.org wrote:
2008/12/12 Chris Jack chris_j...@msn.com:
3) Write a Perl function that takes two references to arrays and returns
the intersect of
On Fri, Dec 12, 2008 at 15:41, Nicholas Clark n...@ccl4.org wrote:
What are the 7 classes of unquoted string that are not barewords. I think it's
7. It usually requires a Damian to remember them all. Most I can get.
What are they then?
I can only think of two off the top of my head - things
On Fri, Dec 12, 2008 at 11:01:08PM +0100, Philip Newton wrote:
On Fri, Dec 12, 2008 at 15:41, Nicholas Clark n...@ccl4.org wrote:
What are the 7 classes of unquoted string that are not barewords. I think
it's
7. It usually requires a Damian to remember them all. Most I can get.
What are
On Fri, Dec 12, 2008 at 10:13:51PM +, Nicholas Clark wrote:
On Fri, Dec 12, 2008 at 11:01:08PM +0100, Philip Newton wrote:
On Fri, Dec 12, 2008 at 15:41, Nicholas Clark n...@ccl4.org wrote:
What are the 7 classes of unquoted string that are not barewords. I think
it's
7. It
40 matches
Mail list logo