README
1NAME
2
3File::Type - determine file type using magic
4
5INSTALLING
6
7Install using the standard Module::Build method:
8
9perl Build.PL
10
11./Build
12./Build test
13
14sudo ./Build install
15
16A Makefile.PL is also included if you do not have Module::Build:
17
18perl Makefile.PL
19
20make
21make test
22
23sudo make install
24
25USAGE
26
27my $ft = File::Type->new();
28
29# read in data from file to $data, then
30my $type_from_data = $ft->checktype_data($data);
31
32# alternatively, check file from disk
33my $type_from_file = $ft->checktype_filename($file);
34
35For further information, perldoc File::Type after installation.