1 # NOTE: Derived from blib/lib/Storable.pm.
2 # Changes made here will be lost when autosplit is run again.
6 #line 292 "blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_store_fd.al)"
7 # Internal store routine on opened file descriptor
12 logcroak "not a reference" unless ref($self);
13 logcroak "too many arguments" unless @_ == 1; # No @foo in arglist
14 my $fd = fileno($file);
15 logcroak "not a valid file descriptor" unless defined $fd;
16 my $da = $@; # Don't mess if called from exception handler
18 # Call C routine nstore or pstore, depending on network order
19 eval { $ret = &$xsptr($file, $self) };
20 logcroak $@ if $@ =~ s/\.?\n$/,/;
21 local $\; print $file ''; # Autoflush the file if wanted
23 return $ret ? $ret : undef;
26 # end of Storable::_store_fd