<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ものぐさ備忘録 &#187; perl</title>
	<atom:link href="http://www.ginriki.net/wd/category/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ginriki.net/wd</link>
	<description>ソフトウェア関係の話を中心とした備忘録的日記</description>
	<lastBuildDate>Sun, 16 Jan 2011 20:07:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Perlの補完機能付きインタラクティブモード perlsh</title>
		<link>http://www.ginriki.net/wd/2008/09/28/42/</link>
		<comments>http://www.ginriki.net/wd/2008/09/28/42/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 16:11:15 +0000</pubDate>
		<dc:creator>ginriki</dc:creator>
				<category><![CDATA[interactive mode]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[インタラクティブモード]]></category>

		<guid isPermaLink="false">http://www.gikogeek.net/wd/?p=42</guid>
		<description><![CDATA[前回の記事の続き。
今回はperl。
探してみると、やっぱり対話型インターフェイスを作ってる方がいますね。
メソッド名などの補完も行ってくれるものとして、perlshがありました。
perlshは、Term::ReadL [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.gikogeek.net/wd/2008/09/25/41/'>前回の記事</a>の続き。</p>
<p>今回はperl。</p>
<p>探してみると、やっぱり対話型インターフェイスを作ってる方がいますね。<br />
メソッド名などの補完も行ってくれるものとして、perlshがありました。<br />
perlshは、Term::ReadLine::Gnuライブラリに付属してます。</p>
<p>Term::ReadLine::Gnuのインストールには、cpanを使うと便利です。<br />
普通にyum install perlとかしとけば、cpanコマンドも付いてくるっぽい。</p>
<p>ただ、私のCentOS 5.1だと、cpan経由のライブラリダウンロードURL (urllist)の<br />
設定がされてなかったので、下記リンク先を参考にしてurllistを設定しました。<br />
<a href='http://www.drk7.jp/MT/archives/000885.html'>http://www.drk7.jp/MT/archives/000885.html</a></p>
<p>そして、Term::ReadLine::Gnuライブラリをインストールするわけなんですが、<br />
事前にreadlineライブラリ等をyumなどを使ってインストールしとかないと、うまくインストールできないらしいです<sup>1</sup>。<br />
私の環境では、すでにインストール済みだったので、特に問題ありませんでした。</p>
<p>Term::ReadLine::Gnuライブラリのインストールからperlshを使うまでの流れは以下、</p>
<pre>
$ cpan install Term::ReadLine::Gnu
$ perl ~/.cpan/build/Term-ReadLine-Gnu-1.17/eg/perlsh
main[1]$ use utf8
main[2]$ utf8::　[TAB]
utf8::             downgrade          is_utf8            unimport
AUTOLOAD           encode             native_to_unicode  upgrade
decode             import             unicode_to_native  valid
main[2]$ exit   #終了
</pre>
<p>perlshファイルは、実行パスの通ってるディレクトリに入れておくと起動が楽です。</p>
<ol class="footnotes"><li id="footnote_0_42" class="footnote"><a href='http://www.hasta-pronto.org/archives/2006/08/20-0408.php'>http://www.hasta-pronto.org/archives/2006/08/20-0408.php</a>参照</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.ginriki.net/wd/2008/09/28/42/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

