Re: Assigning anonymous hash to a list

2013-07-30 Thread Fahad Khan
ITYM, my ($str, $ref) = ('text', {a => 1, b => 2, c => 3}); say $ref->{b}; # Result: 2 extra () are needed. On Tue, Jul 30, 2013 at 7:54 PM, gvim wrote: > Can anyone explain why this works: > > my $ref = {a => 1, b => 2, c => 3}; > say $ref->{b}; # Result: 2 > > ... but this doesn't

Re: How to retrieve a row, biased by populatity?

2012-08-22 Thread Fahad Khan
On Wed, Aug 22, 2012 at 10:15 AM, David Hodgkinson wrote: > > On 21 Aug 2012, at 21:54, Fahad Khan wrote: > > > SELECT * FROM band ORDER BY ranking - RAND() * $BIAS DESC LIMIT 1; > > > > Fahad. > > > I like this one best. I know I have 850k rows, just pick

Re: How to retrieve a row, biased by populatity?

2012-08-21 Thread Fahad Khan
On Tue, Aug 21, 2012 at 9:22 PM, Dave Hodgkinson wrote: > > Possibly a perl question. SQL would do... > > Given a set of data, say bands, with each having a ranking, either a > review metric or a sales ranking, how would you retrieve a random > row, but biased towards the higher ranking? > > SELE

Re: search.cpan.org MIA?

2012-05-10 Thread Fahad Khan
Down for me too (in London) https://metacpan.org/ still works. Fahad. On Thu, May 10, 2012 at 5:38 PM, Gabriel Vieira wrote: > Here (Brazil) works fine. > > On Thu, May 10, 2012 at 1:29 PM, Dirk Koopman wrote: > > > Er... search.cpan.org seems not to be responding? > > > > traceroute to search

Re: Parsing MySQL dump files

2011-12-13 Thread Fahad Khan
On Tue, Dec 13, 2011 at 12:33 PM, Roger Burton West wrote: > Help me, lazyweb. > > Has anyone done this in Perl? Either a full parse, or a hack to get it > into a form acceptable to SQLite... > > This will do the DDL for you. https://metacpan.org/module/SQL::Translator::Manual The data itself sh

Re: Ruby?

2011-11-16 Thread Fahad Khan
On Wed, Nov 16, 2011 at 11:04 AM, Will Crawford wrote: > > It's OK, there was no "on topic" tag ;) > > I think we should be more diligent about keeping people "on topic" on this list. There isn't enough talk of beer and almost none about Buffy. Fahad.

RE: Functional Grammar is fun (apparently)

2010-10-19 Thread Fahad Khan
http://shootout.alioth.debian.org/ > Date: Tue, 19 Oct 2010 16:54:17 +0100 > From: li...@2799.org > To: london.pm@london.pm.org > Subject: Re: Functional Grammar is fun (apparently) > > Kristian Flint wrote: > > > We?re trying to find some code in different languages which essentially > > perf

RE: London.pm technical meeting about "Less code" on 16th April 2009

2009-07-07 Thread Fahad Khan
Hi Leon, It was nice to meet you Thursday. I would really like to help out if you or other have a list of things to get done. I can code in C and Perl. Though I'll warn you I'm not particularly good just yet but I guess there is only one way to get there. Best wishes, Fahad > From: a...@ast

RE: London.pm Moose Tech Talk slides On-line

2009-02-25 Thread Fahad Khan
Thanks Peter! > Date: Wed, 25 Feb 2009 11:57:14 + > From: pe...@dragonstaff.com > To: pe...@dragonstaff.com > Subject: London.pm Moose Tech Talk slides On-line > CC: london.pm@london.pm.org > > The slides from last week's London.pm tech talk event on Moose are now > available on-line (than

RE: Distributed LONDON Lunch - City Pie

2009-02-09 Thread Fahad Khan
Hi James, Sounds good to me and for the first time since I have been following london.pm its near work, relatively speaking. So would you mind if a first timer comes along? Cheers, Fahad. > Date: Mon, 9 Feb 2009 13:56:14 + > Subject: Distributed LONDON Lunch - City Pie > From: james.la..

RE: Perl Christmas Quiz

2008-12-12 Thread Fahad Khan
> 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:~$ perl -MSet::Scalar -le '$s = Set::Scalar->new(1,1); print > $s->el

RE: Workshop Registration

2008-11-25 Thread Fahad Khan
> Date: Tue, 25 Nov 2008 16:55:06 + > Hello fellow Mongers Perl, > Hi Mark, I doubt I can make it there till 10am, I am hoping this is acceptable? Best wishes, Fahad. _ See the most popular videos on the web http://clk.atdmt