enlightened perl organisation

enlightened |en'litnd|: adjective:
having or showing a rational, modern, and well-informed outlook

  

Planet Perl Iron Man

Daily archive for Tuesday, 15 May 2012

< Younger posts | Older posts >
perlcodesample: Perlは構文がC言語、Java、PHP、JavaScriptに似ていて親しみやすいスクリプト言語

 Perlの文法構造は独特なものではなくて、多く利用されている言語であるC言語、Java、PHP、JavaScriptに似ていて親しみやすいものになっています。何かを美しい、美しい、素晴らしいというのが好きな人もいますけれど、似ているほうが使いやすいという人もいますね。

if文

 おなじみのif文。ブロックで区切られているので、周囲の行と区別しやすい感覚がありますね。

# Perl, C, Java, PHP, JavaScript
if (条件) {

}

while文

while文はどうでしょうか。こ [...]

Sebastian Willing: Setting up Gearman
I recently announced an article about Gearman, today I’ld like to start with setting up a Gearman dispatcher server. Being a great tool, Gearman still lacks a complete documentation and the server software is no exception. It’s very easy to set up bu [...]
David E. Wheeler (Theory): Use of DBI in Sqitch

Sqitch uses the native database client applications (psql, sqlite3, mysql, etc.). So for tracking metadata about the state of deployments, I have been trying to stick to using them. I’m first targeting PostgreSQL, and as a result need to open a [...]

JT Smith: Posted Data::Printer - A New Look on Dumping Variables to JT Smith
Brenno de Oliveira will give a talk at YAPC::NA 2012 described as: Data::Printer is a simple and powerful solution to viewing your complex Perl data structures. Contrary to Data::Dumper and similars which stringify your data in a restrictive way so [...]
Dominic Humphries (djh): Open URLs from the CLI

Despite the rise of bulletin boards, social media, wikis, and god knows what other means of communication the Web has given rise to, programmers still rely heavily on Old Faithful: IRC.

Personally, I tend to be logged on to over a dozen channels at an [...]

Emmanuel Di Pretoro: Faire une copie des fichiers produits par DBIx::Class::Schema::Loader
DBIx::Class::Schema::Loader est un module qui permet de générer automatiquement un schéma DBIx::Class::Schema à partir d'une base de données. C'est donc l'outil indispensable si vous avez une base de données sous la main que vous voulez manipuler à p [...]
Nick Kostirya: PostgreSQL, MySql and MariaDB as Key-Value storage
После сравнения BerkeleyDB и TokyoCabinet настало время посмотреть на PostgreSQL, MySql и MariaDB как на хранилища ключ-значения.

Использовался тот же  маленких сервачек.

PostgreSQL


postgresql-server v9.1.2

SET synchronous_commit TO OFF
commit_delay = 1

Во [...]
YAPC::NA: Data::Printer - A New Look on Dumping Variables

Brenno de Oliveira will give a talk at YAPC::NA 2012 described as:

Data::Printer is a simple and powerful solution to viewing your complex Perl data structures.

Contrary to Data::Dumper and similars which stringify your data in a restrictive way so it [...]

Dave Rolsky (autarch): New Type Constraint Module for Perl
I recently uploaded a new distro to CPAN recently called Type. The concepts are largely on Moose's built-in type system, but it's a standalone distribution. Right now this is all very alpha, and the current release is not intended for...
perlcodesample: Mojo::UserAgentでWeb上のコンテンツをファイルとして保存する / Mojoliciousリファレンス

 Mojo::UserAgentでWeb上からファイルを取得して、保存してみましょう。次のように記述します。

use Mojo::UserAgent;

my $ua = Mojo::UserAgent->new;
my $file = 'google.html';
my $url = 'http://www.google.co.jp/';
$ua->get($url)->res->content->asset->move_to($file);

Mo [...]

perlcodesample: Mojoliciousのテンプレートで関数のインポートには危険が潜む / Mojoliciousリファレンス

 Mojoliciousのテンプレートでは、関数のインポートは避けたほうがよいかもしれません。たとえば以下のような記述。

% use File::Basename 'dirname';

 Mojoliciousのテンプレートは、すべてのテンプレートがMojo::Template::Samdboxというクラスに、コンパイルされます。ですので、あるテンプレートでの関数のインポートの記述を、他のテンプレートでの関数のインポートの記述が上書いてしまうことがあります。


< Younger posts | Older posts >