Gabor Szabo Perl trainer and developer http://szabgab.com Gabor Szabo about programming in Perl, automated testing, dynamic languages and everyting else en-us Copyright 2002-2012, Gabor Szabo szabgab@gmail.com 1901-01-01T00:00+00:00 1 hourly Perl on the command line http://szabgab.com/perl-on-the-command-line.html While most of the tutorial deals with scripts saved in a file we'll also see a couple of examples for one-liners. Even if you are using Padre or some other IDE that would let you run your script from the editor itself it is very important to familiarize yourself with the command line (or shell) and be able to use perl from there. <p>For the full article visit <a href="http://szabgab.com/perl-on-the-command-line.html">Perl on the command line</a></p> Gabor Szabo 2012-02-03T16:33:43+00:00 Perl, cmd, shell, prompt TODO February 2012 http://szabgab.com/todo-2012-02.html In January I started to write <a href="http://szabgab.com/todo-2012.html">annual and monthly reports and TODO</a> lists. On one hand, I hope that this will help me track my progress and on the other hand it lets you, my reader, take a look at my plans and participate in the journey. <p>For the full article visit <a href="http://szabgab.com/todo-2012-02.html">TODO February 2012</a></p> Gabor Szabo 2012-02-01T11:33:07+00:00 Perl, TODO The right way to install CPAN modules http://szabgab.com/the-right-way-to-install-cpan-modules.html There are several ways to install CPAN modules and about everyone advocates something else. You can install the modules supplied by your vendor (e.g. using aptitude on Debian). If the module is not available from the vendor you can prepare a package (in the case of Debian using dh-make-perl) or you can install the modules using a CPAN client. In that case you can do it to the standard system directories or using <a href="http://metacpan.org/release/local-lib">local::lib</a>. You could also build your own perl with or without <a href="http://www.perlbrew.pl/">perlbrew</a> and then you can install everything with a CPAN client. <p>For the full article visit <a href="http://szabgab.com/the-right-way-to-install-cpan-modules.html">The right way to install CPAN modules</a></p> Gabor Szabo 2012-01-31T11:16:02+00:00 Perl, CPAN, CM Global symbol requires explicit package name http://szabgab.com/global-symbol-requires-explicit-package-name.html <b>Global symbol requires explicit package name</b> is a common, and IMHO very misleading error message of Perl. At least for beginners. The quick translation is "You need to declare the variable using <b>my</b>." <p>For the full article visit <a href="http://szabgab.com/global-symbol-requires-explicit-package-name.html">Global symbol requires explicit package name</a></p> Gabor Szabo 2012-01-17T17:03:50+00:00 Perl, warning, my, package Use of uninitialized value http://szabgab.com/use-of-uninitialized-value.html A lot of people consider the errors and warnings of Perl to be great. Usually that's true but in my experience, they can be very confusing to people who are not yet familiar with Perl. I'll describe some of them. <p>For the full article visit <a href="http://szabgab.com/use-of-uninitialized-value.html">Use of uninitialized value</a></p> Gabor Szabo 2012-01-15T18:23:26+00:00 Perl, undef, warning, buffering, $| How to get the Perl Weekly every day? http://szabgab.com/how-to-get-the-perl-weekly-every-day.html No, no! I am not wrapping time yet. I am just trying to smooth the production of the <a href="http://perlweekly.com/">Weekly Perl newsletter</a>. So I have started to post news items as I read them. If you would like to get updates more frequently than the weekly newsletter then this might be for you. <p>For the full article visit <a href="http://szabgab.com/how-to-get-the-perl-weekly-every-day.html">How to get the Perl Weekly every day?</a></p> Gabor Szabo 2012-01-14T23:24:50+00:00 Perl Weekly, Perl, news, Facebook, Google+, Twitter Understanding Regular Expressions - part 1 http://szabgab.com/understanding-regular-expressions-part-1.html Using regular expressions provides us with enormous power, but reading and understanding complex regular expressions is not an easy task. I noticed, it feels much easier to write a regular expression than to read it. This is probably true regardless of the host language but in Perl we tend to use regexes much more than in other languages. <p>For the full article visit <a href="http://szabgab.com/understanding-regular-expressions-part-1.html">Understanding Regular Expressions - part 1</a></p> Gabor Szabo 2012-01-11T23:12:22+00:00 Perl, regex, regular expression How to read a CSV file using Perl? http://szabgab.com/how-to-read-a-csv-file-using-perl.html Reading and processing text files is one of the common tasks done by Perl. For example often you encounter a <a href="http://en.wikipedia.org/wiki/Comma-separated_values">CSV file</a> (where CSV stand for Comma-separated values) and you need to extract some information from there. Here is an example: <p>For the full article visit <a href="http://szabgab.com/how-to-read-a-csv-file-using-perl.html">How to read a CSV file using Perl?</a></p> Gabor Szabo 2012-01-10T10:54:59+00:00 Perl, CSV, read, process, split Minimal requirement to build a sane CPAN package http://szabgab.com/minimal-requirement-to-build-a-sane-cpan-package.html I started to write an article explaining how to package a Perl module but it got too long and detailed. Let's start with a simple case and build the smallest possible but still sane package. Later we can go in more details and see alternative ways. <p>For the full article visit <a href="http://szabgab.com/minimal-requirement-to-build-a-sane-cpan-package.html">Minimal requirement to build a sane CPAN package</a></p> Gabor Szabo 2012-01-05T10:31:23+00:00 Perl, CPAN TODO 2012 http://szabgab.com/todo-2012.html I have been writing on this site since 2006 but for a long time I have not give a lot of thought to the strategy. In addition I had a few "New Year's resolutions" but have not analyzed the results after the time has passed. I need to change all that. I need to set up measurable and attainable goals for myself and then check how I did. I need to do this on an annual base and on monthly base as well. Writing this in public will probably help me push myself achieve the goals. <p>For the full article visit <a href="http://szabgab.com/todo-2012.html">TODO 2012</a></p> Gabor Szabo 2012-01-04T09:08:00+00:00 Perl, TODO