Need to actually pick up the format. Doh
Simon Wistow [Fri, 22 Aug 2008 22:29:04 +0000 (22:29 +0000)]
lib/XML/Feed.pm

index ee6cdd5..ea0500a 100644 (file)
@@ -55,7 +55,7 @@ sub parse {
     if ($specified_format) {
         $format = $specified_format;
     } else {
-        $feed->identify_format(\$xml) or return $class->error($feed->errstr);
+        $format = $feed->identify_format(\$xml) or return $class->error($feed->errstr);
     }
 
     my $format_class = join '::', __PACKAGE__, $format;