Javascript style pseudo-classes in Perl

I am as much a Javascript developer as a Perl developer, and that is primarily because of the striking similarities the languages share, one of the most useful of which is the concept of closures.

A very basic LISP style expression parser

I had always been interested in writing a simple LISP interpreter. Well, had some free time today, and thought, why not create a parser that can return the results of mathematical expressions that are entered as LISP expressions. Nothing fancy, but here is a class that can take in a file containing math expressions and return the results of each line as an array.

package Processor;

use strict;
use warnings;

#Creates the object, nothing else
sub new {
	my $class=shift;
	my $self={};
	bless $self, $class…

A simple API to access Reddit

I had always wanted to perform some analysis on all the posts that Reddit gets. I searched CPAN for a module that does something similar, and found nothing. So, I decided to write my own. This is still a work in progress, and currently only allows you to fetch and parse the data in XML.

About Hathibelagal

user-pic I am a web applications, and enterprise systems developer who is always on the lookout for better programming paradigms and coding styles.