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
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く