ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Using Perl in PostgreSQL
Subject:   correction
Date:   2007-01-24 13:50:08
From:   oicu
The line in the palindrome function that reads:

my ($canonical = lc $arg) =~ s/\s+//g;

should read:

my $canonical = lc $arg;
$canonical =~ s/\\s+//g;

Thanks to Tom Laudeman for pointing out the error.