Debian Codegraph @

README

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