Skip to content
Browse files

fix usage of Mojo::DOM

  • Loading branch information...
1 parent bb87199 commit a4ce2a35cfb0f5640c9706a50ebb04d20fb9a927 @moritz committed Mar 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/WebService/Libris/FileCache.pm
View
2 lib/WebService/Libris/FileCache.pm
@@ -33,7 +33,7 @@ sub get {
return undef unless open my $h, '<', $filename;
my $contents = do { local $/; <$h> };
return undef unless length $contents;
- Mojo::DOM->new(xml => 1, charset => 'UTF-8')->parse($contents);
+ Mojo::DOM->new->xml(1)->charset('UTF-8')->parse($contents);
}
sub set {

0 comments on commit a4ce2a3

Please sign in to comment.
Something went wrong with that request. Please try again.