<?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>EragonJ - A humble navigator &#187; Perl</title>
	<atom:link href="http://eragonj.hax4.in/blog/category/perl/feed" rel="self" type="application/rss+xml" />
	<link>http://eragonj.hax4.in/blog</link>
	<description></description>
	<lastBuildDate>Thu, 05 Jan 2012 12:33:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>[Perl] light Perl = cpanm + perlbrew</title>
		<link>http://eragonj.hax4.in/blog/perl-light-perl-cpanm-perlbrew.html</link>
		<comments>http://eragonj.hax4.in/blog/perl-light-perl-cpanm-perlbrew.html#comments</comments>
		<pubDate>Tue, 01 Feb 2011 17:50:38 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[cpanm]]></category>
		<category><![CDATA[magnus]]></category>
		<category><![CDATA[perlbrew]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=843</guid>
		<description><![CDATA[Tweet [Image Credit] 最近因為一直在使用 Javascript + JSON 在開發一些工具及專案，所以愈來愈覺得「便利性」是一個趨勢，不要一大堆繁雜設定，不要有一大堆模組相依，因為對新手來說這些東西都太進階了，完全不能讓他們把時間投注在該專注的地方（我就搞了很久…快瘋了） 因為我的 Perl version 一直停留在當初 Mac OS X bundle 好的 5.8.9 &#8230; 所以是直到今天一直沒辦法執行朋友（Magnus）的 code 才發現這個問題，因為他用了很多新的語法所導致的…（他聽到我還在用十年前的 Perl 就傻眼了），不過還好他介紹了 Gugod 寫的 perlbrew 給我用（有那種台灣人寫的好東西是從瑞典朋友那邊得知消息的道理嗎= =），也是我今天要記錄的重點。 請參考官方教學 利用 Perlbrew 就可以在家目錄輕鬆的建立 standalone 的 Perls，各種版本都可以依上述流程安裝並切換（Switch）使用，所以 Perlbrew 已經幫我們把 Perl version 的問題搞定了，接下就是處理 module 的問題。 在安裝 module 的時候（無論你是用 cpan or cpanplus），通常都會自動偵測現有的 Perl 版本來決定 module 的存放位置，以我自己為例就是（/opt/local/lib/perl5/site_perl/5.8.9 ），所以這在版本更新上面也會有很多的問題，最糟的做法就是 symbolic [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fperl-light-perl-cpanm-perlbrew.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/perl-light-perl-cpanm-perlbrew.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/perl-light-perl-cpanm-perlbrew.html"  data-text="[Perl] light Perl = cpanm + perlbrew" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p align="right"><a href="http://www.thebrewworks.com/news/brewmaster-beau-baden-interviewed-on-craft-beer-radio/"> [Image Credit]</a></p>
<p><a href="http://eragonj.hax4.in/blog/wp-content/uploads/2011/02/brew.jpeg"><img src="http://eragonj.hax4.in/blog/wp-content/uploads/2011/02/brew.jpeg" alt="" title="Five Questions: Brewmaster Brew.jpg" width="453" height="299" class="aligncenter size-full wp-image-846" /></a></p>
<p>最近因為一直在使用 Javascript + JSON 在開發一些工具及專案，所以愈來愈覺得「便利性」是一個趨勢，不要一大堆繁雜設定，不要有一大堆模組相依，因為對新手來說這些東西都太進階了，完全不能讓他們把時間投注在該專注的地方（我就搞了很久…快瘋了）</p>
<p>因為我的 Perl version 一直停留在當初 Mac OS X bundle 好的 5.8.9 &#8230; 所以是直到今天一直沒辦法執行朋友（Magnus）的 code 才發現這個問題，因為他用了很多新的語法所導致的…（他聽到我還在用十年前的 Perl 就傻眼了），不過還好他介紹了 Gugod 寫的 perlbrew 給我用（有那種台灣人寫的好東西是從瑞典朋友那邊得知消息的道理嗎= =），也是我今天要記錄的重點。</p>
<p>請參考<a href="http://search.cpan.org/dist/App-perlbrew/lib/App/perlbrew.pm">官方教學</a><br />
<script src="https://gist.github.com/806229.js?file=gistfile1.ebuild"></script></p>
<p>利用 Perlbrew 就可以在家目錄輕鬆的建立 standalone 的 Perls，各種版本都可以依上述流程安裝並切換（Switch）使用，所以 Perlbrew 已經幫我們把 Perl version 的問題搞定了，接下就是處理 module 的問題。</p>
<p>在安裝 module 的時候（無論你是用 cpan or cpanplus），通常都會自動偵測現有的 Perl 版本來決定 module 的存放位置，以我自己為例就是（/opt/local/lib/perl5/site_perl/5.8.9 ），所以這在版本更新上面也會有很多的問題，最糟的做法就是 symbolic link 指來指去，指到最後都混亂了，因此這邊最好再搭配 cpanm 來簡化及統一安裝位置，詳細的流程就麻煩去看 <a href="http://c9s.blogspot.com/2010/02/cpanminus.html">c9s 的文章</a>啦。只要記得最後把 module 的位置寫在 .profile / .bashrc 裡的 PERL5LIB 內就大功告成了。</p>
<p>所以對我這種初新者來說，perlbrew + cpanm 可以處理掉很多細節的問題，讓我省下更多時間能去體會 Perl 的美好呀。</p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/perl-light-perl-cpanm-perlbrew.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Perl] Goal of this winter vacation &#8211; to be a perl hacker</title>
		<link>http://eragonj.hax4.in/blog/perl-goal-of-this-winter-vacation-to-be-a-perl-hacker.html</link>
		<comments>http://eragonj.hax4.in/blog/perl-goal-of-this-winter-vacation-to-be-a-perl-hacker.html#comments</comments>
		<pubDate>Tue, 11 Jan 2011 16:50:21 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[newbie]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=793</guid>
		<description><![CDATA[Tweet Image Credit 真是太令人開心了，這個學期的最後一門考試已經結束了，所以終於可以好好利用這個寒假來充實自己的實力，目前是希望這個寒假過後能夠先熟悉整個 Perl syntax 的部分（幹掉整本 Programming Perl 3/e 是理想，不一定要很懂，但是至少要翻完一次），因為說實在的那些符號的意義及Reference真的是搞的我很頭大，我覺得這兩者及其 data structure 應該是新手心中最深的痛吧… 搞懂了基本的細節後，之後再參考和 c9s 偷來的 Perl module reference （Attached below）， 了解一些比較常用、實用的 module 的用途與使用方式，應該就能夠比較了解這個語言的特性了… 說實在的，也許還是一個 Newbie 的原因，而且自己又比較熟悉 PHP （至少想到什麼還比較知道要怎麼去實作），所以這一來一往之下就消磨了使用與學習 Perl 的動機，所以想藉由這個機會讓我了解一個新的領域，了解一下這個語言能夠幫助我在什麼樣的地方，以及能夠做到什麼之前不容易做到、不方便做到的部分。 接下來就是 Perl 筆記連發了，希望能夠以發文來持續抵勵自己，加油。]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fperl-goal-of-this-winter-vacation-to-be-a-perl-hacker.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/perl-goal-of-this-winter-vacation-to-be-a-perl-hacker.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/perl-goal-of-this-winter-vacation-to-be-a-perl-hacker.html"  data-text="[Perl] Goal of this winter vacation &#8211; to be a perl hacker" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p align="right"><a href="http://www.thenewnewinternet.com/2010/05/12/joe-the-plumber-can-become-a-hacker-in-15-minutes/">Image Credit</a></p>
<p><a href="http://eragonj.hax4.in/blog/wp-content/uploads/2011/01/hacker.jpeg"><img src="http://eragonj.hax4.in/blog/wp-content/uploads/2011/01/hacker.jpeg" alt="" title="hacker" width="400" height="300" class="aligncenter size-full wp-image-794" /></a></p>
<p>真是太令人開心了，這個學期的最後一門考試已經結束了，所以終於可以好好利用這個寒假來充實自己的實力，目前是希望這個寒假過後能夠先熟悉整個 Perl syntax 的部分（幹掉整本 Programming Perl 3/e 是理想，不一定要很懂，但是至少要翻完一次），因為說實在的那些符號的意義及Reference真的是搞的我很頭大，我覺得這兩者及其 data structure 應該是新手心中最深的痛吧… </p>
<p>搞懂了基本的細節後，之後再參考和 c9s 偷來的 Perl module reference （Attached below）， 了解一些比較常用、實用的 module 的用途與使用方式，應該就能夠比較了解這個語言的特性了…</p>
<p><script src="https://gist.github.com/771765.js?file=c9%E7%9A%84%E5%B8%B8%E7%94%A8%20perl%20module"></script></p>
<p>說實在的，也許還是一個 Newbie 的原因，而且自己又比較熟悉 PHP （至少想到什麼還比較知道要怎麼去實作），所以這一來一往之下就消磨了使用與學習 Perl 的動機，所以想藉由這個機會讓我了解一個新的領域，了解一下這個語言能夠幫助我在什麼樣的地方，以及能夠做到什麼之前不容易做到、不方便做到的部分。</p>
<p>接下來就是 Perl 筆記連發了，希望能夠以發文來持續抵勵自己，加油。</p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/perl-goal-of-this-winter-vacation-to-be-a-perl-hacker.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Perl] LsColorPicker</title>
		<link>http://eragonj.hax4.in/blog/perl-lscolorpicker.html</link>
		<comments>http://eragonj.hax4.in/blog/perl-lscolorpicker.html#comments</comments>
		<pubDate>Wed, 10 Mar 2010 13:50:13 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[ls color]]></category>
		<category><![CDATA[LsColorPicker]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=359</guid>
		<description><![CDATA[Tweet 如果練習一個語言從if else來的話就太慢了，所以我就試著實作一下之前想做的LsColorPicker。 因為我很喜歡CPAN和Perl的Coding Style，這兩個是我覺得Perl吸引我的地方(很幹的地方不說了XD)。所以想要試著用一些好玩的Module來寫東西，就因此寫了這個LsColorPicker，可以讓使用者在自己的Terminal下設定自己的ls color。 就說了是新手試做啦，小玩具就是了，至少我覺得它可以幫我很多XD… 大概就是這樣囉，總圖要關了，我好像晚餐還沒吃，電腦也用了超過12個小時了…最後放上在Github的Link，我們下次見。]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fperl-lscolorpicker.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/perl-lscolorpicker.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/perl-lscolorpicker.html"  data-text="[Perl] LsColorPicker" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>如果練習一個語言從if else來的話就太慢了，所以我就試著實作一下之前想做的LsColorPicker。<br />
<br/><br />
因為我很喜歡CPAN和Perl的Coding Style，這兩個是我覺得Perl吸引我的地方<del datetime="2010-03-10T13:44:12+00:00">(很幹的地方不說了XD)</del>。所以想要試著用一些好玩的Module來寫東西，就因此寫了這個LsColorPicker，可以讓使用者在自己的Terminal下設定自己的ls color。<br />
<br/><br />
就說了是新手試做啦，小玩具就是了，至少我覺得它可以幫我很多XD…<br />
<br/><br />
大概就是這樣囉，總圖要關了，我好像晚餐還沒吃，電腦也用了超過12個小時了…最後放上在<a href="http://github.com/EragonJ/LsColorPicker">Github的Link</a>，我們下次見。<br />
<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/perl-lscolorpicker.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Perl] @INC problem</title>
		<link>http://eragonj.hax4.in/blog/perl-inc-problem.html</link>
		<comments>http://eragonj.hax4.in/blog/perl-inc-problem.html#comments</comments>
		<pubDate>Sat, 17 Oct 2009 20:14:00 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[@INC]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=32</guid>
		<description><![CDATA[Tweet Can&#8217;t locate DBI.pm in @INC @INC 指的是 $PERL5LIB 的PATH EragonJ@hax4.in:Perl$ PERL5LIB=/Library/Perl/5.8.8EragonJ@hax4.in:Perl$ export PERL5LIB 解決了。]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fperl-inc-problem.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/perl-inc-problem.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/perl-inc-problem.html"  data-text="[Perl] @INC problem" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><blockquote><p>Can&#8217;t locate DBI.pm in @INC</p></blockquote>
<p>@INC 指的是 $PERL5LIB 的PATH</p>
<blockquote><p>EragonJ@hax4.in:Perl$ PERL5LIB=/Library/Perl/5.8.8<br />EragonJ@hax4.in:Perl$ export PERL5LIB</p></blockquote>
<p>解決了。</p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/perl-inc-problem.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

