Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the _fd <=> _fh mixup

I have this bad habit of using both interchangeably.
  • Loading branch information...
commit 3678c1de62c72e45848eefd406ee0ec62efba1e3 1 parent 496928d
Caio Romão caio authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/Data/FlexSerializer.pm
  2. +2 −2 t/20file.t
4 lib/Data/FlexSerializer.pm
View
@@ -227,7 +227,7 @@ sub serialize_to_file {
return 1;
}
-sub deserialize_from_fd {
+sub deserialize_from_fh {
my $self = shift;
my $fd = shift;
@@ -242,7 +242,7 @@ sub deserialize_from_fd {
return $rv;
}
-sub serialize_to_fd {
+sub serialize_to_fh {
my $self = shift;
my $data = shift;
my $fd = shift;
4 t/20file.t
View
@@ -37,12 +37,12 @@ foreach my $class ('Data::FlexSerializer', 'Data::FlexSerializer::EmptySubclass'
open my $fh, '+>', $filename;
# Test (de)serialization to/from file handle
- $serializer->serialize_to_fd(\%data, $fh);
+ $serializer->serialize_to_fh(\%data, $fh);
# reset file handle
seek($fh, 0, 0);
- %deserialized_data = %{ $serializer->deserialize_from_fd($fh) };
+ %deserialized_data = %{ $serializer->deserialize_from_fh($fh) };
close $fh;
Please sign in to comment.
Something went wrong with that request. Please try again.