there are no script errors - just that apple script doesnt seem to be getting the return value of the perl script.
perl script looks into a text file which has a map for "keyword,keyword_folder:keyword_tag" & extracts out the keyword_folder and returns it. pretty simple & works fine on the terminal.
however , applescript doesnt seem to be getting the return value of the perl script. this is really my first applescript, so i might be missing something?
this is taking longer than i thought it would

hazel log - doesnt show any problems except that it's sorting the file into a wrong subfolder "Downloads//" while i want it to be under "Downloads/Organic/"
2012-10-21 02:45:31.617 hazelworker[14362] Processing folder Downloads
2012-10-21 02:45:33.622 hazelworker[14362] 0712-organic-raw-foods.pdf: Rule New Rule matched.
2012-10-21 02:45:36.713 hazelworker[14362] [File Event] File moved: 0712-organic-raw-foods.pdf moved from folder /Users/xyz/Downloads to folder /Users/xyz/Documents.
2012-10-21 02:45:37.052 hazelworker[14362] [File Event] File moved into subfolder: /Users/xyz/Documents/Downloads/0712-organic-raw-foods.pdf sorted from folder /Users/xyz/Documents to subfolder Downloads//.
2012-10-21 02:45:37.222 hazelworker[14362] Done processing folder Downloads
2012-10-21 02:45:37.457 hazelworker[14365] Processing folder Downloads
2012-10-21 02:45:39.466 hazelworker[14365] Done processing folder Downloads