Skip to content

Instantly share code, notes, and snippets.

View brennen's full-sized avatar

Brennen Bearnes brennen

View GitHub Profile
@brennen
brennen / anagrams.PL
Created March 9, 2010 06:22
anagrams.pl
#!/usr/bin/perl
use strict;
use warnings;
use 5.10.0;
# attempt to determine if two strings are anagrams
my (@first) = split //, 'brennen';
my (@second) = split //, 'bernnen';
#!/usr/bin/php
<?php
/* This might be a good general approach to getting some real
value out of PHP's built-in error reporting, where it's
painful to turn it on for an entire application. Presently
living in a t/ directory, and called like so:
php t/error_test.php name_of_file_to_check.php
I've just written a couple of shell script wrappers to
package Rhythmbox::Playlist;
use strict;
use warnings;
use XML::Simple;
use URI::Escape qw(uri_unescape);
sub new {
my $class = shift;