1 # NOTE: Derived from blib/lib/Storable.pm.
2 # Changes made here will be lost when autosplit is run again.
6 #line 118 "blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/file_magic.al)"
9 my $fh = new FileHandle;
10 open($fh, "<". $file) || die "Can't open '$file': $!";
12 defined(sysread($fh, my $buf, 32)) || die "Can't read from '$file': $!";
15 $file = "./$file" unless $file; # ensure TRUE value
17 return read_magic($buf, $file);
20 # end of Storable::file_magic