<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7145382997026605358</id><updated>2012-02-16T09:45:24.850-08:00</updated><category term='introduction'/><category term='programming'/><category term='tutorial'/><category term='perl'/><title type='text'>Aesthetic Code</title><subtitle type='html'>"Programming, scripting and randomosities."</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aestheticoding.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7145382997026605358/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://aestheticoding.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Minatsuki</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7145382997026605358.post-6857344591599754679</id><published>2009-01-02T17:50:00.000-08:00</published><updated>2009-01-05T16:35:06.613-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>Dynamic listboxes in perl</title><content type='html'>Ever wanted to know how to automatically generate a listbox full of values from an array, database or some sort? No? Me neither.. but nevertheless.. Here's how!&lt;br /&gt;&lt;br /&gt;Firstly this is pretty much common sense so just ignore this if you are not a beginner (or scroll down to see the complete code for an overview). The HTML code for a listbox, you should probably already know.. but if not here it is for you.&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="padding-top: 0px; padding-left: 8px; padding-bottom: 0px;font-family: courier new;width:434px; overflow: scroll;margin-left:1px;border: dotted 1px #939A3C;background-color:#FAFAFA;"&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;select&amp;gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;lt;option&lt;/b&gt;&lt;font color="#b03060"&gt;&amp;nbsp;value=&lt;/font&gt;&lt;font color="#ff0000"&gt;"1"&lt;/font&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;One&lt;b&gt;&amp;lt;/option&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;/select&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Note: select is the actual listbox, option are the items in the listbox.. value being what will be posted as a form (useful mostly for the server, unless it's a javascript or client application). The text in the middle is what will actually be shown in the listbox.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First you need your content (the items to display in the actual listbox), this will be read into an array.. For the sake of the tutorial I will be reading the content from a text file.&lt;br /&gt;&lt;br /&gt;We open the file using &amp;quot;&amp;lt;&amp;quot; which ensures we are opening to read the file only, if the file fails to open we instantly kill the perl script from processing further with an error message.&lt;br /&gt;&lt;br /&gt;&lt;div style="padding-top: 0px; padding-left: 8px; padding-bottom: 0px;font-family: courier new;width:434px; overflow: scroll;margin-left:1px;border: dotted 1px #939A3C;background-color:#FAFAFA;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;font color="#007f00"&gt;open&lt;/font&gt;(FILE,&amp;nbsp;&lt;font color="#ffa500"&gt;"&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;items.txt&lt;/font&gt;&lt;font color="#ffa500"&gt;"&lt;/font&gt;)&amp;nbsp;&lt;font color="#ffa500"&gt;or&lt;/font&gt;&amp;nbsp;&lt;font color="#007f00"&gt;die&lt;/font&gt;(&lt;font color="#ffa500"&gt;"&lt;/font&gt;&lt;font color="#ff0000"&gt;I/O&amp;nbsp;Error.&lt;/font&gt;&lt;font color="#ff00ff"&gt;\n&lt;/font&gt;&lt;font color="#ffa500"&gt;"&lt;/font&gt;);&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;Open&amp;nbsp;item.txt&amp;nbsp;with&amp;nbsp;our&amp;nbsp;list&amp;nbsp;of&amp;nbsp;items&amp;nbsp;for&amp;nbsp;the&amp;nbsp;listbox&lt;/i&gt;&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;We then read the file into an array, the array will add each line to a seperate element in the array, though that can be changed using the split and join functions. We set a variable for the value (alternately you can simply use the items from the file.). This value will increase for each line of the array creating a numerical value for each item which can be used to identify the selection.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;font-size:100%;" &gt;&lt;div style="padding-top: 0px; padding-left: 8px; padding-bottom: 0px;font-family: courier new;width:434px; overflow: scroll;margin-left:1px;border: dotted 1px #939A3C;background-color:#FAFAFA;"&gt;&lt;br /&gt;&lt;b&gt;my&lt;/b&gt;&amp;nbsp;&lt;font color="#0000ff"&gt;@farray&lt;/font&gt;&amp;nbsp;=&amp;nbsp;&lt;b&gt;&amp;lt;FILE&amp;gt;&lt;/b&gt;;&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;Read&amp;nbsp;the&amp;nbsp;file&amp;nbsp;into&amp;nbsp;the&amp;nbsp;array&amp;nbsp;"farray"&amp;nbsp;(based&amp;nbsp;on&amp;nbsp;new&amp;nbsp;line&amp;nbsp;character)&lt;/i&gt;&lt;/font&gt;&lt;font color="#7f7f7f"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/font&gt;&lt;b&gt;my&lt;/b&gt;&amp;nbsp;&lt;font color="#0000ff"&gt;$value&lt;/font&gt;&amp;nbsp;=&amp;nbsp;&lt;font color="#00007f"&gt;1&lt;/font&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To print out the options we use a foreach loop to loop each item in the array, $item will be the text value for each line whilst @farray is the array from which the elements will be looped. We use the chomp function to remove the new line characters from the item ensuring there won't be any unnecessary new lines within the code we are looking to generate. We increase the value variable by 1 when we are done and ready for the next item.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="padding-top: 0px; padding-left: 8px; padding-bottom: 0px;font-family: courier new;width:434px; overflow: scroll;margin-left:1px;border: dotted 1px #939A3C;background-color:#FAFAFA;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;&lt;b&gt;foreach&lt;/b&gt;&amp;nbsp;&lt;font color="#0000ff"&gt;$item&lt;/font&gt;&amp;nbsp;(&lt;font color="#0000ff"&gt;@farray&lt;/font&gt;)&amp;nbsp;{&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;loop&amp;nbsp;each&amp;nbsp;item&amp;nbsp;in&amp;nbsp;the&amp;nbsp;array&lt;/i&gt;&lt;/font&gt;&lt;font color="#7f7f7f"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#007f00"&gt;chomp&lt;/font&gt;(&lt;font color="#0000ff"&gt;$item&lt;/font&gt;);&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;Remove&amp;nbsp;new&amp;nbsp;line&amp;nbsp;character&amp;nbsp;from&amp;nbsp;item&lt;/i&gt;&lt;/font&gt;&lt;font color="#7f7f7f"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#007f00"&gt;print&lt;/font&gt;&amp;nbsp;&lt;font color="#ffa500"&gt;"&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;option&amp;nbsp;value=\"&lt;/font&gt;&lt;font color="#0000ff"&gt;$value&lt;/font&gt;&lt;font color="#ff0000"&gt;\"&amp;gt;&lt;/font&gt;&lt;font color="#ffa500"&gt;"&lt;/font&gt;&amp;nbsp;.&amp;nbsp;&lt;font color="#0000ff"&gt;$item&lt;/font&gt;&amp;nbsp;.&amp;nbsp;&lt;font color="#ffa500"&gt;"&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;/option&amp;gt;&lt;/font&gt;&lt;font color="#ff00ff"&gt;\n&lt;/font&gt;&lt;font color="#ffa500"&gt;"&lt;/font&gt;;&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;Print&amp;nbsp;the&amp;nbsp;option&amp;nbsp;with&amp;nbsp;value&amp;nbsp;and&amp;nbsp;item&lt;/i&gt;&lt;/font&gt;&lt;font color="#7f7f7f"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#0000ff"&gt;$value&lt;/font&gt;++;&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;Increase&amp;nbsp;the&amp;nbsp;value&amp;nbsp;by&amp;nbsp;1,&amp;nbsp;for&amp;nbsp;each&amp;nbsp;item&lt;/i&gt;&lt;/font&gt;&lt;font color="#7f7f7f"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/font&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;That's pretty much it for the basics, though here is a nifty way to print our HTML or other code within the perl script.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="padding-top: 0px; padding-left: 8px; padding-bottom: 0px;font-family: courier new;width:434px; overflow: scroll;margin-left:1px;border: dotted 1px #939A3C;background-color:#FAFAFA;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;font color="#007f00"&gt;&lt;br /&gt;print&lt;/font&gt;&lt;font color="#ffa500"&gt;&amp;nbsp;&amp;lt;&amp;lt;&lt;/font&gt;&lt;b&gt;EOF;&lt;/b&gt;&lt;font color="#ff0000"&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;select&amp;gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;br /&gt;&lt;/font&gt;&lt;b&gt;EOF&lt;/b&gt;&lt;br /&gt;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;this will print anything below untill it reaches "EOF" which stands for end of file and is used commonly in programming, though here it is not nessecary.. you can use any word you like.&lt;br /&gt;&lt;br /&gt;Here's the full code:&lt;br /&gt;&lt;br /&gt;&lt;div style="padding-top: 0px; padding-left: 8px; padding-bottom: 16px;font-family: courier new;width:434px; overflow: scroll;margin-left:1px;border: dotted 1px #939A3C;background-color:#FAFAFA;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;b&gt;#!/usr/bin/perl&lt;/b&gt;&lt;BR&gt;&lt;b&gt;use&lt;/b&gt;&amp;nbsp;&lt;b&gt;Strict&lt;/b&gt;;&lt;BR&gt;&lt;font color="#007f00"&gt;print&lt;/font&gt;&amp;nbsp;&lt;font color="#ffa500"&gt;"&lt;/font&gt;&lt;font color="#ff0000"&gt;Content-type:&amp;nbsp;text/html&lt;/font&gt;&lt;font color="#ff00ff"&gt;\n\n&lt;/font&gt;&lt;font color="#ffa500"&gt;"&lt;/font&gt;;&lt;BR&gt;&lt;font color="#007f00"&gt;print&lt;/font&gt;&lt;font color="#ffa500"&gt;&amp;nbsp;&amp;lt;&amp;lt;&lt;/font&gt;&lt;b&gt;EOF;&lt;/b&gt;&lt;font color="#ff0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;Print&amp;nbsp;till&amp;nbsp;"EOF"&amp;nbsp;is&amp;nbsp;found&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;BR&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;BR&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;select&amp;gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;BR&gt;&lt;/font&gt;&lt;b&gt;EOF&lt;/b&gt;&lt;BR&gt;&lt;br /&gt;&lt;BR&gt;&lt;font color="#007f00"&gt;open&lt;/font&gt;(FILE,&amp;nbsp;&lt;font color="#ffa500"&gt;"&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;items.txt&lt;/font&gt;&lt;font color="#ffa500"&gt;"&lt;/font&gt;)&amp;nbsp;&lt;font color="#ffa500"&gt;or&lt;/font&gt;&amp;nbsp;&lt;font color="#007f00"&gt;die&lt;/font&gt;(&lt;font color="#ffa500"&gt;"&lt;/font&gt;&lt;font color="#ff0000"&gt;I/O&amp;nbsp;Error.&lt;/font&gt;&lt;font color="#ff00ff"&gt;\n&lt;/font&gt;&lt;font color="#ffa500"&gt;"&lt;/font&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;Open&amp;nbsp;text&amp;nbsp;file&amp;nbsp;for&amp;nbsp;reading&lt;/i&gt;&lt;/font&gt;&lt;font color="#7f7f7f"&gt;&lt;i&gt;&lt;BR&gt;&lt;/i&gt;&lt;/font&gt;&lt;b&gt;my&lt;/b&gt;&amp;nbsp;&lt;font color="#0000ff"&gt;@farray&lt;/font&gt;&amp;nbsp;=&amp;nbsp;&lt;b&gt;&amp;lt;FILE&amp;gt;&lt;/b&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;Read&amp;nbsp;text&amp;nbsp;file&amp;nbsp;into&amp;nbsp;array&lt;/i&gt;&lt;/font&gt;&lt;font color="#7f7f7f"&gt;&lt;i&gt;&lt;BR&gt;&lt;/i&gt;&lt;/font&gt;&lt;b&gt;my&lt;/b&gt;&amp;nbsp;&lt;font color="#0000ff"&gt;$value&lt;/font&gt;&amp;nbsp;=&amp;nbsp;&lt;font color="#00007f"&gt;1&lt;/font&gt;;&lt;BR&gt;&lt;b&gt;foreach&lt;/b&gt;&amp;nbsp;&lt;font color="#0000ff"&gt;$item&lt;/font&gt;&amp;nbsp;(&lt;font color="#0000ff"&gt;@farray&lt;/font&gt;)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;Loop&amp;nbsp;the&amp;nbsp;array&amp;nbsp;and&amp;nbsp;print&amp;nbsp;each&amp;nbsp;item&amp;nbsp;with&amp;nbsp;HTML&amp;nbsp;data&lt;/i&gt;&lt;/font&gt;&lt;font color="#7f7f7f"&gt;&lt;i&gt;&lt;BR&gt;&lt;/i&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#007f00"&gt;chomp&lt;/font&gt;(&lt;font color="#0000ff"&gt;$item&lt;/font&gt;);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#007f00"&gt;print&lt;/font&gt;&amp;nbsp;&lt;font color="#ffa500"&gt;"&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;option&amp;nbsp;value=\"&lt;/font&gt;&lt;font color="#0000ff"&gt;$value&lt;/font&gt;&lt;font color="#ff0000"&gt;\"&amp;gt;&lt;/font&gt;&lt;font color="#ffa500"&gt;"&lt;/font&gt;&amp;nbsp;.&amp;nbsp;&lt;font color="#0000ff"&gt;$item&lt;/font&gt;&amp;nbsp;.&amp;nbsp;&lt;font color="#ffa500"&gt;"&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;/option&amp;gt;&lt;/font&gt;&lt;font color="#ff00ff"&gt;\n&lt;/font&gt;&lt;font color="#ffa500"&gt;"&lt;/font&gt;;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#0000ff"&gt;$value&lt;/font&gt;++;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#7f7f7f"&gt;&lt;i&gt;#&amp;nbsp;Increase&amp;nbsp;value&amp;nbsp;for&amp;nbsp;next&amp;nbsp;use&lt;/i&gt;&lt;/font&gt;&lt;font color="#7f7f7f"&gt;&lt;i&gt;&lt;BR&gt;&lt;/i&gt;&lt;/font&gt;}&lt;BR&gt;&lt;BR&gt;&lt;font color="#007f00"&gt;print&lt;/font&gt;&lt;font color="#ffa500"&gt;&amp;nbsp;&amp;lt;&amp;lt;&lt;/font&gt;&lt;b&gt;EOF;&lt;/b&gt;&lt;font color="#ff0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;Print&amp;nbsp;till&amp;nbsp;"EOF"&amp;nbsp;is&amp;nbsp;found&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;BR&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;/select&amp;gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;BR&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;BR&gt;&lt;/font&gt;&lt;b&gt;EOF&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;And there you have it! A simple way to dynamically create listboxes in perl. It can be quite useful for creating lists for locations, languages etc. etc. Goodnight!~&lt;br /&gt;&lt;br /&gt;On a final note.. The next post might be a tutorial or information on HTML encoders, since writing code in blogspot is ULTIMATE FAIL!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7145382997026605358-6857344591599754679?l=aestheticoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aestheticoding.blogspot.com/feeds/6857344591599754679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aestheticoding.blogspot.com/2009/01/dynamic-listboxes-in-perl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7145382997026605358/posts/default/6857344591599754679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7145382997026605358/posts/default/6857344591599754679'/><link rel='alternate' type='text/html' href='http://aestheticoding.blogspot.com/2009/01/dynamic-listboxes-in-perl.html' title='Dynamic listboxes in perl'/><author><name>Minatsuki</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7145382997026605358.post-3816583244930832589</id><published>2009-01-01T17:45:00.000-08:00</published><updated>2009-01-01T18:36:16.063-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>Learning Perl</title><content type='html'>Just thought I'd post a quick blog while I &lt;strike&gt;&lt;i&gt;wait for some porn to finish downloading.&lt;/i&gt;&lt;/strike&gt; have nothing better to do. Okay, here are some tips for learning the web/scripting language Perl.&lt;br /&gt;&lt;br /&gt;Perl is a relatively easy language to pick up, especially if you have some prior programming knowledge. The great thing about perl is how you can do so much with so little code. It is very unique and has lots of cool features and an extensive library of modules which can be found and installed very easily thanks to &lt;a href="http://www.cpan.org/"&gt;CPAN&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If you are a total beginner you will want to start with a Perl book. There are some free online books, here's a few from the official perl website.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.perl.org/books/beginning-perl/"&gt;perl.org/beginning-perl&lt;/a&gt; (good for the total beginner)&lt;br /&gt;&lt;a href="http://www.perl.org/books/impatient-perl/"&gt;perl.org/impatient-perl&lt;/a&gt; (I personally prefer this book based on the fact that it is short and to the point, It's also good for people with prior experience).&lt;br /&gt;&lt;br /&gt;You can find a few more at &lt;a href="http://www.perl.org/books/library.html"&gt;http://www.perl.org/books/library.html&lt;/a&gt;&lt;br /&gt;The Perl &amp; LWP book is especially useful if you plan to use perl for downloading/parsing and manipulating website information, though only a sample is available for free.&lt;br /&gt;&lt;br /&gt;If video tutorials are your thing, I recommend checking out &lt;a href="http://www.youtube.com/user/bermnz"&gt;youtube.com/bermnz&lt;/a&gt; who has a wide variety of perl tutorial videos (the biggest collection I have seen for any programming language tutorials). Though some of the code is ill-explained and his style and use of code is sometimes not what is considered "good" or "standard" you can learn much from the videos, remember to take some notes and look up what you don't understand.&lt;br /&gt;&lt;br /&gt;The official perl website (kind of) &lt;a href="http://www.perl.org"&gt;perl.org&lt;/a&gt; is also a great resource, check out the documentation &lt;a href="http://www.perl.org/docs.html"&gt;here&lt;/a&gt; there are a few tutorials and references for most things in the perl language (I use it mostly as a reference when I'm looking for the functionality or an example of a certain standard function/feature of the perl language).&lt;br /&gt;&lt;br /&gt;That pretty much sums up what I have to say, this might have been lacking in quality.. I'm no expert but good luck to those that wish to attempt learning perl, you won't regret it! :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7145382997026605358-3816583244930832589?l=aestheticoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aestheticoding.blogspot.com/feeds/3816583244930832589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aestheticoding.blogspot.com/2009/01/learning-perl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7145382997026605358/posts/default/3816583244930832589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7145382997026605358/posts/default/3816583244930832589'/><link rel='alternate' type='text/html' href='http://aestheticoding.blogspot.com/2009/01/learning-perl.html' title='Learning Perl'/><author><name>Minatsuki</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7145382997026605358.post-5235910613980807511</id><published>2009-01-01T12:17:00.000-08:00</published><updated>2009-01-01T12:42:22.465-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='introduction'/><title type='text'>print "Hello Thur~\n";</title><content type='html'>Hey, welcome to my blog. I never did one before so it will probably suck, don't say I didn't warn you! If you are wondering what the hell kind of subjects I will blog about since my title is very non descriptive.. I'm a programmer (self proclaimed) haha, I work with a variety of languages but mainly C++, C#, D and Perl so I might post some articles related to them. I'm also a big anime/manga fan so I might well post some news/information whenever I feel it is worth it. Aside from that my next big passion is gaming.. I wouldn't call myself a hardcore gamer but I do enjoy playing Counter-strike: Source and some MMOs.. namely Lineage II when I get the chance (I always get the chance). Well that's about all I have to say right now. I hope I can remember to come back here with another post! Wish me luck.. BAI!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7145382997026605358-5235910613980807511?l=aestheticoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aestheticoding.blogspot.com/feeds/5235910613980807511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aestheticoding.blogspot.com/2009/01/print-hello-thurn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7145382997026605358/posts/default/5235910613980807511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7145382997026605358/posts/default/5235910613980807511'/><link rel='alternate' type='text/html' href='http://aestheticoding.blogspot.com/2009/01/print-hello-thurn.html' title='print &quot;Hello Thur~\n&quot;;'/><author><name>Minatsuki</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
