![まつもとゆきひろ氏が“幻のPerl6”から学んだ教訓 「OSSの最大の敵」と「セカンドシステムの危険性」](https://cdn-ak-scissors.b.st-hatena.com/image/square/4439c4a1992a08fd655a7acbe87b07b8c7affbca/height=288;version=1;width=512/https%3A%2F%2Fimg.logmi.jp%2Farticle_images%2FBD9yqJxjVeFJ1kDcGX8T3n.jpg)
ack is a grep-like source code search tool. The latest version of ack is v3.7.0, released 2023-02-25. Designed for programmers with large heterogeneous trees of source code, ack is written in portable Perl 5 and takes advantage of the power of Perl's regular expressions. What's new in ack? New --not option The new repeatable --not option lets you get more precise matches. If you want to search for
はじめに perl環境はperlbrewで作っていましたが、plenv良さそうってことでplenvってみるメモ。 このメモのゴールは特定のディレクトリに特定のperlバージョンを入れて ついでにcpanモジュールも入れてみるまでです。 アジェンダ homebrewインストール plenvとperl-buildのインストール plenv使ってみる perlインストール前に確認 perlインストール perlインストール後に確認 plenvのバージョン切り替え挙動について cpanmインストールしてみる carton使ってみる 1. homebrewインストール 当然ですがhomebrewでインストールするので、homebrewが入っている前提です。 homebrewについては別途単体で書いてますのでそちらを参考に、、、ということで割愛します。 →Mac OS XにHomebrewインストール
TL;DR $cd ~/.plenv/plugins/perl-build; git pull PerlのBigSur問題 plenvはPerlのソースコードをローカルに持ってきて、ビルドを行う仕組みになっています。 BigSur以前のmacOSでは正常にビルドができましたが、BigSurでは次のようなエラーが出てしまいビルド出来ないケースがあります。 Which of these apply, if any? [darwin] *** Unexpected product version 11.0. *** *** Try running sw_vers and see what its ProductVersion says. Installation failure: sh Configure -Dprefix=/Users/anatofuz/.plenv/versions/debu
ここでは、取得したHTTPメッセージのbody部分に含まれるHTMLを解析してタグ名とテキスト情報を抽出する方法を説明します。 HTTPクライアントサンプル 以下にHTTP::LiteとHTTP::TreeBuilderを利用したクライアントを示します。 まず、<BODY>タグをfindによって取得しています。 次に、取得したBODYタグに含まれるタグとテキスト情報を再帰的に抽出しています。 #!/usr/bin/perl use HTTP::Lite; use HTML::TreeBuilder; $http = new HTTP::Lite; # URL部分を変更して下さい $req = $http->request("http://www.hogehogeURL.com/") || die $!; $body = $http->body(); $tree = HTML::TreeBu
ここでは、取得したHTTPメッセージのbody部分に含まれるHTMLを解析してAタグ内に含まれるリンクURLを取り出す方法を説明したいと思います。 HTTPクライアントサンプル 以下にHTTP::LiteとHTTP::TreeBuilderを利用したクライアントを示します。 まず、Aタグを順次取得しています。 次に、取得したAタグに含まれるhref attributeをprintしています。 #!/usr/bin/perl use HTTP::Lite; use HTML::TreeBuilder; $http = new HTTP::Lite; # URL部分を変更して下さい $req = $http->request("http://www.hogehogeURL.com/") || die $!; $body = $http->body(); $tree = HTML::TreeBu
Anarchy Golf This is a golf server. You can enjoy short coding here in several languages (115 languages). The purpose of this server is not serious competition. Joke problems are welcomed and you can speak freely about problems and can release spoilers. For serious competition with ranking, enter Code Golf. IRC channel for this golf server: #anagol in freenode. Please feel free to join the channel
NAME HTML::Element - Class for objects that represent HTML elements VERSION This document describes version 5.07 of HTML::Element, released August 31, 2017 as part of HTML-Tree. SYNOPSIS use HTML::Element; $a = HTML::Element->new('a', href => 'http://www.perl.com/'); $a->push_content("The Perl Homepage"); $tag = $a->tag; print "$tag starts out as:", $a->starttag, "\n"; print "$tag ends as:", $a->e
Perl is a programming language suitable for writing simple scripts as well as complex applications — see https://www.perl.org. Strawberry Perl is a perl environment for MS Windows containing all you need to run and develop perl applications. It is designed to be as close as possible to perl environment on UNIX systems. It includes perl binaries, compiler (gcc) + related tools, all the external lib
Notice! PPM is being replaced with the ActiveState Platform, which enhances PPM’s build and deploy capabilities. Create your free Platform account to download ActivePerl or customize Perl with the packages you require and get automatic updates. This PPM has limited support for ActivePerl 5.26 and previous versions Download ActivePerl
このページは、私が配布しているPerlスクリプトをWindowsで使うための環境整備方法について説明しているドキュメントです Active Perlのインストール WindowsではActive Perl(無償版)を使います。配布先よりActive Perl - Free Community Editionをダウンロードしてインストールします。 ActiveState Software社 公式ページ インストールするPerlのバージョンにより、PPMでCPANライブラリの一部が未対応になっている場合がある(たとえば、2011年12月現在HTML::TagParserライブラリはActive Perl 5.14では提供されていないため、このライブラリを使いたい場合は5.12をインストールする必要がある)。 対応しているPPMライブラリの一覧はActiveState Code - PPM In
cpanm - get, unpack build and install modules from CPAN cpanm Test::More # install Test::More cpanm MIYAGAWA/Plack-0.99_05.tar.gz # full distribution path cpanm http://example.org/LDS/CGI.pm-3.20.tar.gz # install from URL cpanm ~/dists/MyCompany-Enterprise-1.00.tar.gz # install from a local file cpanm --interactive Task::Kensho # Configure interactively cpanm . # install from local directory cpanm
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く