The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
NAME HTML::Template - Perl module to use HTML-like templating language SYNOPSIS First you make a template - this is just a normal HTML file with a few extra tags, the simplest being <TMPL_VAR> For example, test.tmpl: <html> <head><title>Test Template</title></head> <body> My Home Directory is <TMPL_VAR NAME=HOME> <p> My Path is set to <TMPL_VAR NAME=PATH> </body> </html> Now you can use it in a sm
For your own benchmarks to test the relative speeds of the various DBMs under MLDBM::Sync, which is used by CacheDB, you may run the ./bench/bench_sync.pl script from the MLDBM::Sync distribution on your system. CacheDir By default, the cache directory is at StateDir/cache, but CacheDir can be used to set the StateDir value for caching purposes. One may want the CacheDir separate from StateDir for
NAME Net::SNMP - Object oriented interface to SNMP SYNOPSIS The Net::SNMP module implements an object oriented interface to the Simple Network Management Protocol. Perl applications can use the module to retrieve or update information on a remote host using the SNMP protocol. The module supports SNMP version-1, SNMP version-2c (Community-Based SNMPv2), and SNMP version-3. The Net::SNMP module assu
CONTENTS NAME SYNOPSIS DESCRIPTION Command Line Options, an Introduction Getting Started with Getopt::Long Simple options A little bit less simple options Mixing command line option with other arguments Options with values Options with multiple values Options with hash values User-defined subroutines to handle options Options with multiple names Case and abbreviations Summary of Option Specificati
logging — Logging facility for Python¶ Source code: Lib/logging/__init__.py This module defines functions and classes which implement a flexible event logging system for applications and libraries. The key benefit of having the logging API provided by a standard library module is that all Python modules can participate in logging, so your application log can include your own messages integrated wi
ctypes — A foreign function library for Python¶ Source code: Lib/ctypes ctypes is a foreign function library for Python. It provides C compatible data types, and allows calling functions in DLLs or shared libraries. It can be used to wrap these libraries in pure Python. ctypes tutorial¶ Note: The code samples in this tutorial use doctest to make sure that they actually work. Since some code sample
CompletionStageが完了したときにアクションの実行または値の計算を行う、非同期の可能性がある計算のステージです。 ステージはその計算が終了したときに完了しますが、これに続いて他の依存ステージがトリガーされる場合があります。 このインタフェースで定義される機能は、少数の基本形式しか取りませんが、それらがより大規模なメソッドのセットに展開することで、一定範囲の使用スタイルに対応します。 ステージによって実行される計算は、引数を必要とするか、結果を生成するか、あるいはその両方かに応じて、Function、ConsumerまたはRunnableとして(それぞれapply、acceptまたはrunを含む名前を持つメソッドを使用して)表されます。 たとえば: stage.thenApply(x -> square(x)) .thenAccept(x -> System.out.print(
型パラメータ: T - この将来のjoinおよびgetメソッドによって返される結果の型 すべての実装されたインタフェース: CompletionStage<T>, Future<T> public class CompletableFuture<T> extends Object implements Future<T>, CompletionStage<T> 明示的に(その値とステータスを設定して)完了できるFutureです。その完了時に発生する依存関数およびアクションをサポートし、CompletionStageとして使用できます。 2つ以上のスレッドがCompletableFutureのcomplete、completeExceptionallyまたはcancelを試行すると、1つのスレッドのみが成功します。 ステータスと結果を直接操作するこれらのメソッドおよび関連メソッドに加えて、C
HTTPクライアント。 HttpClientを使用して「リクエスト」を送信し、「レスポンス」を取得できます。 builderを介して HttpClientが作成されます。 ビルダーを使用して、クライアントごとに次のような状態を構成できます: 優先プロトコル・バージョン(HTTP/1.1またはHTTP/2)、リダイレクトの有無、プロキシ、認証プロバイダなどがあります。一度ビルドされると、HttpClientは不変になり、複数のリクエストの送信に使用できます。 HttpClientは、すべてのリクエストの構成情報とリソース共有を提供します。 HttpRequestが送信されるたびにBodyHandlerを指定する必要があります。 BodyHandlerは、レスポンス本文(存在する場合)の処理方法を決定します。 HttpResponseを受信すると、ヘッダー、レスポンス・コードおよび本文(typ
今まで何となくで使ってた Jigsaw (モジュールシステム)をしっかり学ぶ。 環境 OS Windows 10 java 10.0.1 モジュールの解決 モジュールの解決 | java.lang.module (Java SE 10 & JDK 10 ) Java 9 で追加されたモジュールシステムでは、複数のパッケージやリソースをモジュールと呼ばれる単位でまとめることができるようになった。 モジュールでは、次のようなことを定義できる1。 どのパッケージを外部から見えるようにするか 他のどのモジュールに依存するか これらは module-info.java という専用のファイルを使い、次のように記述する。 この例では、 foo というモジュールを定義している。 そして、 exports foo.api で foo.api パッケージを外部に公開し、 requires bar で bar
Unicode support is an extensive requirement. While Perl does not implement the Unicode standard or the accompanying technical reports from cover to cover, Perl does support many Unicode features. Unicode サポートは大規模な要求です。 Perl は標準 Unicode や付随する技術的なレポートを一つ残らず 実装しているわけではありませんが、多くの Unicode 機能を サポートしています。 People who want to learn to use Unicode in Perl, should probably read the Perl Unicode tutorial, per
文字コードとutf8フラグ Perl において、「文字コード」と「utf8フラグ」は別物です。文字コードの話の中で utf8フラグが語られるので、同じもののように思っている人も多いかもしれませんが、別物です。いや、たとえば同じものだとしても、別物だと思った方が理解しやすいと思います。 文字コード は文字とコードのマッピングに名前をつけたもので、utf8フラグは、Perlにおける文字列の扱いに付随するフラグのことです。 たとえば、以下のようなソースコードをレガシーな感じに EUC-JP で書いていたとして、 my $euc_str = 'ソースが EUC-JP なのでここは EUC-JP'; $euc_str には EUC-JP の文字列が格納されています。 これを、utf8フラッグド(utf8 flag on)にしてみます。 use Encode; my $euc_str = 'ソースが
An ASP.NET HTTP handler is the process (frequently referred to as the "endpoint") that runs in response to a request made to an ASP.NET Web application. The most common handler is an ASP.NET page handler that processes .aspx files. When users request an .aspx file, the request is processed by the page through the page handler. You can create your own HTTP handlers that render custom output to the
CentOS 5.5へGuest Additionsをインストールしたときの内容です。 VirtualBoxのバージョンは4.3.10です。 エラーの内容 Guest AdditionsのCDイメージを挿入後、次のコマンドでマウントします。 # mount -t iso9660 /dev/cdrom /mnt mount: ブロックデバイス /dev/cdrom は書き込み禁止です、読込み専用でマウントします 次のコマンドでGuest Additionsのインストールを実行するとエラーになりました。 # sh /mnt/VBoxLinuxAdditions.run Verifying archive integrity... All good. Uncompressing VirtualBox 4.3.10 Guest Additions for Linux............ Vir
$ tree -F -L 1 . ├── bin -> usr/bin/ ├── dev/ ├── etc/ ├── init -> /usr/lib/systemd/systemd ├── lib -> usr/lib/ ├── lib64 -> usr/lib64/ ├── proc/ ├── root/ ├── run/ ├── sbin -> usr/sbin/ ├── shutdown* ├── sys/ ├── sysroot/ ├── tmp/ ├── usr/ └── var/ 14 directories, 2 files Red Hat系ではinitにsystemdを採用しているのでinitが/usr/lib/systemd/systemdへのシンボリックリンクになっています。 このうちDracutに関係するファイルはusr/lib/dracut/以下にまとまっています
名前¶ Text::CSV_XS - CSV形式の操作ルーチン 概要¶ use Text::CSV_XS; $csv = Text::CSV_XS->new(); # 新しいオブジェクトを作る $csv = Text::CSV_XS->new(\%attr); # 新しいオブジェクトを作る $status = $csv->combine(@columns); # 縦列を連結して一つの文字列にする $line = $csv->string(); # 連結したその文字列を得る $status = $csv->parse($line); # CSV文字列をパースしてフィールド群に切り分ける @columns = $csv->fields(); # パースされたそのフィールド群を得る $status = $csv->status(); # 直前のステータスを得る $bad_argument = $
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く