Ack 2.0 has been released
Perlbuzz - Andy Lester
by Andy Lester
2y ago
ack 2.0 has been released. ack is a grep-like search tool that has been optimized for searching large heterogeneous trees of source code. ack has been around since 2005. Since then it has become very popular and is packaged by all the major Linux distributions. It is cross-platform and pure Perl, so will run on Windows easily. See the "Why ack?" page for the top ten reasons, and dozens of testimonials. ack 2.0 has many changes from 1.x, but here are four big differences and features that long-time ack 1.x users should be aware of. By default all text files are searched, not just files with ty ..read more
Visit website
Debunking the “five weekends every 823 years” myth with Perl
Perlbuzz - Andy Lester
by Andy Lester
2y ago
Have you seen this bit of bunk posted recently? It goes like this: This year, July has five Fridays, five Saturdays and five Sundays. This happens once every 823 years. So: copy to your status and money will arrive within 4 days… based on Chinese Feng Shui. Of course it’s crap, and of course Snopes.com does a fine job of debunking it But what if you want more evidence? Perl to the rescue! Here’s a little program that finds and counts all the months with five full Fri-Sun weekends in the next 823 years. #!/usr/bin/perl # Debunking the five weekends myth # http://www.snopes.com/inboxer/trivi ..read more
Visit website
Where can someone find Perl modules to contribute to?
Perlbuzz - Andy Lester
by Andy Lester
2y ago
Bradley Andersen (his gmail username is bradley.d.andersen) wrote asking i am looking to try and contribute to perl and foss in general. do you know of a list of perl modules that are currently marked as 'maintainer died' that i might hijack, or, some list of module maintainers who may be looking for help? i am interested also in learning python and doing roughly the same kind of thing in that domain. Here are my suggestions, and I trust others will add suggestions in the comments: First, pick a module that you actually use. The best module to work on is one that you already use. Check its bu ..read more
Visit website
For, map, grep and function calls autovivify arrayrefs
Perlbuzz - Andy Lester
by Andy Lester
4y ago
I was surprised by one aspect of Perl’s autovivification a few weeks ago, and I’m surprised it’s taken over 20 years for me to run into it. I’m used to autovivification being a handy thing when working with, for example, hashes of arrayrefs. Here I’m using autovivification to create hash entries in %users_by_category whenever a new one is added. my %users_by_category; for my $user ( @users ) { my $category = categorize($user); push @{$users_by_category{$category}}, $user; } This saves from having to do the tedious equivalent: if ( not exists $users_by_category{$category ..read more
Visit website

Follow Perlbuzz - Andy Lester on FeedSpot

Continue with Google
Continue with Apple
OR