<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Blog gw &#187; PERL</title>
	<atom:link href="http://dillah2008.wordpress.com/category/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://dillah2008.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sat, 05 Dec 2009 18:24:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dillah2008.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1ba4cd4f83b344bf0b5a86917a711713?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Blog gw &#187; PERL</title>
		<link>http://dillah2008.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dillah2008.wordpress.com/osd.xml" title="Blog gw" />
		<item>
		<title>Menghubungkan PERL dengan Postgre di Fedora</title>
		<link>http://dillah2008.wordpress.com/2009/05/15/menghubungkan-perl-dengan-postgre-di-fedora/</link>
		<comments>http://dillah2008.wordpress.com/2009/05/15/menghubungkan-perl-dengan-postgre-di-fedora/#comments</comments>
		<pubDate>Fri, 15 May 2009 16:57:06 +0000</pubDate>
		<dc:creator>dillah2008</dc:creator>
				<category><![CDATA[PERL]]></category>
		<category><![CDATA[postgre]]></category>

		<guid isPermaLink="false">http://dillah2008.wordpress.com/?p=292</guid>
		<description><![CDATA[Penasaran ingin mencoba-coba bahasa PERL, langsung saja mencoba untuk mengkoneksikan PERL dengan DB Postgres&#8230;Dapat contoh program seperti ini
#!/usr/bin/perl
#load perl postgresql module
use DBI;
$postgresql_database=&#8221;xxxx&#8221;;
$postgresql_user=&#8221;xxxx&#8221;;
$postgresql_password=&#8221;xxxx&#8221;;
$postgresql_host=&#8221;xxxx&#8221;;
# connect to perl to postgresql database
my $perl_postgresql = DBI-&#62;connect(&#8220;DBI:Pg:dbname=$postgresql_database;host=$postgresql_host&#8221;,&#8221;$postgresql_user&#8221;, &#8220;$postgresql_password&#8221;);
if($perl_postgresql) {
print &#8220;Perl established connection to PostgreSQL database\n&#8221;;
}else{
print &#8220;kagak..&#8221;;
}
Ketika dijalankan selalu ada error, sepertinya sih modul DBI nya belum terinstal di fedora nya..setelah beberapa [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dillah2008.wordpress.com&blog=2757059&post=292&subd=dillah2008&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Penasaran ingin mencoba-coba bahasa PERL, langsung saja mencoba untuk mengkoneksikan PERL dengan DB Postgres&#8230;Dapat contoh program seperti ini</p>
<blockquote><p>#!/usr/bin/perl</p>
<p>#load perl postgresql module<br />
use DBI;</p>
<p>$postgresql_database=&#8221;xxxx&#8221;;<br />
$postgresql_user=&#8221;xxxx&#8221;;<br />
$postgresql_password=&#8221;xxxx&#8221;;<br />
$postgresql_host=&#8221;xxxx&#8221;;</p>
<p># connect to perl to postgresql database<br />
my $perl_postgresql = DBI-&gt;connect(&#8220;DBI:Pg:dbname=$postgresql_database;host=$postgresql_host&#8221;,&#8221;$postgresql_user&#8221;, &#8220;$postgresql_password&#8221;);</p>
<p>if($perl_postgresql) {<br />
print &#8220;Perl established connection to PostgreSQL database\n&#8221;;<br />
}else{<br />
print &#8220;kagak..&#8221;;<br />
}</p></blockquote>
<p>Ketika dijalankan selalu ada error, sepertinya sih modul DBI nya belum terinstal di fedora nya..setelah beberapa hari cek sana sini, akhirnya dapat command untuk menginstall di fedora, yaitu :</p>
<blockquote><p>yum install perl-DBD-Pg</p></blockquote>
<p>Hmmm..sebenernya sih kepengen belajar compile sendiri&#8230;tapi yah ketemunya cara yang gampang jadi dipending dulu deh belajar ng-compile nya <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dillah2008.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dillah2008.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dillah2008.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dillah2008.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dillah2008.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dillah2008.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dillah2008.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dillah2008.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dillah2008.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dillah2008.wordpress.com/292/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dillah2008.wordpress.com&blog=2757059&post=292&subd=dillah2008&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dillah2008.wordpress.com/2009/05/15/menghubungkan-perl-dengan-postgre-di-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3befb128508b744ad73d33b777b7c904?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dillah2008</media:title>
		</media:content>
	</item>
	</channel>
</rss>