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

advertisement

AddThis Social Bookmark Button
Hack:   Find Recipes
Subject:   Small Errors
Date:   2005-10-16 11:42:19
From:   erHarrison
This code is excellent. It's the first thing I've ever done on a computer that my fiance actually approves of. Kudo's on the inventive idea.


There are two small bugs in the code that needed to be corrected. They were slight, so I suspect they were mere omissions.


The fixes are below:


Original

b($_->Find Recipes||'no title'), br( ),
a({href=>$_->{URL}), br( ),


Fixes

b($_->{title}||'no title'), br( ),
a({href}=>$_->{URL}), br( ),


In the first line, Find Recipes is caught as an error due to it being a bareword. Since your "OR" message is "No Title", I just assumed you wanted the title to go there, and replaced it as such.


In the second line, you forgot to } your href tag. Simple and fun.


Thanks again for the code.


-E


1 to 1 of 1
  1. Small Errors
    2005-10-16 11:50:23  erHarrison [View]

1 to 1 of 1