Auction Replaced With Raffle At YAPC::NA 2012

Due to the feedback we’ve gotten from previous year’s surveys, as well as many blog posts and other rants in the Perl community, we’ve decided to replace the long-standing tradition of a charity auction with something new at YAPC::NA 2012. We thought about perhaps doing a silent auction, but we wanted to set it apart from that, and we wanted to make something that anybody could get in on, not just those with large amounts of cash to spare. So instead, we’ve decided to do a series of raffles.

Extract Mail Adresses from CSV

What do you think about the code below?
I have a file containing information about people, where the fifth element of the tab separated line contains the mail address.
Each mail address appears multiple times, I need to print them unique.

my %mails;
open my $csv, '<', 'my.csv' or die $!;
while (<$csv>){
    my  $mail = ( split(/\t/) )[4]; 
    $mails{$mail} = 1
}
say foreach sort keys %mails;

(and how do I indent code on blogs.perl.org?)
thx @Aristotle

No Starch Press will be providing some of their entertaining and...



No Starch Press will be providing some of their entertaining and insightful books as prizes at YAPC::NA 2012. We’re so glad to have them as a sponsor. And the books they sell would make great Christmas gifts this year.

No Starch Press publishes the finest in geek entertainment—distinctive books on computing, such as bestsellers /Steal This Computer Book/, /Hacking: The Art of Exploitation/, /Practical Packet Analysis/, and /The Manga Guides/. We focus on open source/Linux, security, hacking, programming, alternative operating systems, and science and math. Our titles have personality and attitude, our authors are passionate about their subjects, and we read and edit every book that bears our name. Our goal is to make computing accessible to technophile and novice alike, and our readers appreciate our straightforward presentation and fearless approach to the complex world of technology. No Starch Press titles have been included in the prestigious /Communication Arts/ Design Annual and STEP inside 100 competition, and have won the Ippy Award from /Independent Publisher/ magazine.

Dist::Zilla, Pod::Weaver and bin

I use Dist::Zilla for managing my distributions. It's awesome and useful, although it lacks some bits of documentation every now and then; this lack is compensated in other ways, e.g. IRC.

I also use the PodWeaver plugin to automatically generate boilerplate POD stuff in the modules. Some time ago I needed to add some programs to a distribution of mine (which I also managed to forget at the moment, but this is another story), and this is where I got hit by all the voodoo.

The first program was actually a Perl program, consisting of a minimal script to call the appropriate run() method in one of the modules of the distro:

$ cat bin/perl-program 
#!/usr/bin/env perl
use prova;
prova->run();

This led Dist::Zilla to complain like this:

$ dzil build
[DZ] beginning to build prova
[DZ] guessing dist's main_module is lib/prova.pm
couldn't determine document name for bin/perl-program at ...

Tel Aviv Perl Mongers Meeting on 30 November, 2011

(The Hebrew text will be followed by an English one).

I’d like to officially thank ThinkGeek for becoming a...



I’d like to officially thank ThinkGeek for becoming a Silver Level sponsor of YAPC::NA 2012. You are probably all aware of Think Geek and the amazing selection of geeky items they have for sale. Either way, it’s a great place to start your holiday shopping this year!

MacBook battery status and screen

While I'm writing my beginning Perl book, I've developed several tools to make my life easier. However, I've encountered a problem. I've often found that I am using iTerm2 in full-screen and this obscures my battery indicator. If I'm not plugged in, my battery can get dangerously low. I've fixed that.

On simple benchmarks

use Benchmark is not good enough. At all. - you can specify -2 as count which means 2 seconds. Good. - if you specify the test code as string not coderef means that you bench also the parsing time for all counts, and not plain run-time. coderefs should be used. The result is entirely unrealistic as you compile once and run often. - the iteration results are not used at all to check the statistical test quality. - without using :hireswallclock you get time(2) precision which is integer seconds.

benchmark-perlformance is too good and too slow. It"s good to have a single special and reliable machine for this, but I see no useful results. And I miss simple tests with good op coverage. I even do not see op coverage at all.

How fast is my perl, how good is my test and how good is my test result?

Dumpbench reports at least some statistical quality, but needs too many args. initial_runs and target_precision should not be mandatory.

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.