NAME Toolkit - Keep your handy modules organized VERSION This document describes Toolkit version 0.0.2 SYNOPSIS use Toolkit; # All your favorites are now available DESCRIPTION The Toolkit module provides a standard location to store modules that you use all the time, and then loads them for you automatically. For example, instead of always writing: use strict; use warnings; use Carp; use Smart::Co
NAME perl5db.pl - the perl debugger SYNOPSIS perl -d your_Perl_script DESCRIPTION perl5db.pl is the perl debugger. It is loaded automatically by Perl when you invoke a script with perl -d. This documentation tries to outline the structure and services provided by perl5db.pl, and to describe how you can use them. See perldebug for an overview of how to use the debugger. GENERAL NOTES The debugger c
NAME signatures - Subroutine signatures with no source filter VERSION version 0.14 SYNOPSIS use signatures; sub foo ($bar, $baz) { return $bar + $baz; } DESCRIPTION With this module, we can specify subroutine signatures and have variables automatically defined within the subroutine. For example, you can write sub square ($num) { return $num * $num; } and it will be automatically turned into the fo
NAME SUPER - control superclass method dispatch SYNOPSIS Find the parent method that would run if this weren't here: sub my_method { my $self = shift; my $super = $self->super('my_method'); # Who's your daddy? if ($want_to_deal_with_this) { # ... } else { $super->($self, @_) } } Or Ruby-style: sub my_method { my $self = shift; if ($want_to_deal_with_this) { # ... } else { super; } } Or call the su
NAME autodie - Replace functions with ones that succeed or die with lexical scope SYNOPSIS use autodie; # Recommended: implies 'use autodie qw(:default)' use autodie qw(:all); # Recommended more: defaults and system/exec. use autodie qw(open close); # open/close succeed or die open(my $fh, "<", $filename); # No need to check! { no autodie qw(open); # open failures won't die open(my $fh, "<", $file
NAME Error - Error/exception handling in an OO-ish way VERSION version 0.17029 SYNOPSIS use Error qw(:try); throw Error::Simple( "A simple error"); sub xyz { ... record Error::Simple("A simple error") and return; } unlink($file) or throw Error::Simple("$file: $!",$!); try { do_some_stuff(); die "error!" if $condition; throw Error::Simple "Oops!" if $other_condition; } catch Error::IO with { my $E
NAME Want - A generalisation of wantarray SYNOPSIS use Want; sub foo :lvalue { if (want(qw'LVALUE ASSIGN')) { print "We have been assigned ", want('ASSIGN'); lnoreturn; } elsif (want('LIST')) { rreturn (1, 2, 3); } elsif (want('BOOL')) { rreturn 0; } elsif (want(qw'SCALAR !REF')) { rreturn 23; } elsif (want('HASH')) { rreturn { foo => 17, bar => 23 }; } return; # You have to put this at the end to
NAME Exception::Class - A module that allows you to declare real exception classes in Perl VERSION version 1.45 SYNOPSIS use Exception::Class ( 'MyException', 'AnotherException' => { isa => 'MyException' }, 'YetAnotherException' => { isa => 'AnotherException', description => 'These exceptions are related to IPC' }, 'ExceptionWithFields' => { isa => 'YetAnotherException', fields => [ 'grandiosity',
NAME Switch - A switch statement for Perl, do not use if you can use given/when SYNOPSIS use Switch; switch ($val) { case 1 { print "number 1" } case "a" { print "string a" } case [1..10,42] { print "number in list" } case (\@array) { print "number in list" } case /\w+/ { print "pattern" } case qr/\w+/ { print "pattern" } case (\%hash) { print "entry in hash" } case (\&sub) { print "arg to subrout
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く