@@ -46,7 +46,7 @@ our %EXPORT_TAGS = (
4646 magic_file
4747 magic_load
4848 magic_open
49- )
49+ )
5050 ]
5151);
5252
@@ -322,14 +322,12 @@ On Mac you can use homebrew (https://brew.sh/):
322322
323323=head2 Specifying lib and/or include directories
324324
325- On some systems, you may need to pass additional lib and include directories
326- to the Makefile.PL. You can do this with the `--lib` and `--include`
327- parameters:
325+ On some systems, you may need to pass additional lib and include directories to
326+ the Makefile.PL. You can do this with the `--lib` and `--include` parameters:
328327
329328 perl Makefile.PL --lib /usr/local/lib --include /usr/local/include
330329
331- You can pass these parameters multiple times to specify more than one
332- location.
330+ You can pass these parameters multiple times to specify more than one location.
333331
334332=head1 API
335333
@@ -343,8 +341,8 @@ Using the object oriented interface only opens the magic database once, which
343341is probably most efficient for repeated uses.
344342
345343Each C<File::LibMagic > object loads the magic database independently of other
346- C<File::LibMagic > objects, so you may want to share a single object across
347- many modules.
344+ C<File::LibMagic > objects, so you may want to share a single object across many
345+ modules.
348346
349347This method takes the following named parameters:
350348
@@ -371,14 +369,13 @@ symlinks to the real file.
371369=item * C<uncompress >
372370
373371If this is true, then compressed files (such as gzip files) will be
374- uncompressed, and the various C<< info_from_* >> methods will return info
375- about the uncompressed file.
372+ uncompressed, and the various C<< info_from_* >> methods will return info about
373+ the uncompressed file.
376374
377375=item * Processing limits
378376
379- Newer versions of the libmagic library have a number of limits order to
380- prevent malformed or malicious files from causing resource exhaustion or other
381- errors.
377+ Newer versions of the libmagic library have a number of limits order to prevent
378+ malformed or malicious files from causing resource exhaustion or other errors.
382379
383380If your libmagic support it, you can set the following limits through
384381constructor parameters. If your version does not support setting these limits,
@@ -391,8 +388,8 @@ not supported by your libmagic will also cause the constructor to cloak.
391388
392389=item * C<max_indir >
393390
394- This limits recursion for indirection when processing entries in the
395- magic file.
391+ This limits recursion for indirection when processing entries in the magic
392+ file.
396393
397394=item * C<max_name >
398395
@@ -432,8 +429,8 @@ The values of these parameters should be integer limits.
432429
433430For compatibility with future additions to the libmagic processing limit
434431parameters, you can pass a C<max_future_compat > parameter. This is a hash
435- reference where the keys are constant values (integers defined by libmagic,
436- not names) and the values are the limit you want to set.
432+ reference where the keys are constant values (integers defined by libmagic, not
433+ names) and the values are the limit you want to set.
437434
438435=back
439436
@@ -458,16 +455,16 @@ Just the character encoding, like "us-ascii".
458455
459456=item * C<mime_with_encoding >
460457
461- The MIME type with a character encoding, like "text/x-c;
462- charset=us-ascii". Note that if no encoding was found, this will be the same
463- as the C< mime_type > key.
458+ The MIME type with a character encoding, like "text/x-c; charset=us-ascii".
459+ Note that if no encoding was found, this will be the same as the C< mime_type >
460+ key.
464461
465462=back
466463
467464=head2 $magic->info_from_string($string)
468465
469- This method returns info about the contents of the given string. The string
470- can be passed as a reference to save memory.
466+ This method returns info about the contents of the given string. The string can
467+ be passed as a reference to save memory.
471468
472469The return value is the same as that of C<< $mime->info_from_filename >>.
473470
@@ -498,14 +495,14 @@ that processing limit.
498495
499496=head1 DISCOURAGED APIS
500497
501- This module offers two different procedural APIs based on optional exports,
502- the "easy" and "complete" interfaces. There is also an older OO API still
498+ This module offers two different procedural APIs based on optional exports, the
499+ "easy" and "complete" interfaces. There is also an older OO API still
503500available. All of these APIs are discouraged, but will not be removed in the
504501near future, nor will using them cause any warnings.
505502
506503I strongly recommend you use the new OO API. It's simpler than the complete
507- interface, more efficient than the easy interface, and more featureful than
508- the old OO API.
504+ interface, more efficient than the easy interface, and more featureful than the
505+ old OO API.
509506
510507=head2 The Old OO API
511508
@@ -620,9 +617,9 @@ bug-file-libmagic@rt.cpan.org.
620617=head1 BUGS
621618
622619This module is totally dependent on the version of file on your system. It's
623- possible that the tests will fail because of this. Please report these
624- failures so I can make the tests smarter. Please make sure to report the
625- version of file on your system as well!
620+ possible that the tests will fail because of this. Please report these failures
621+ so I can make the tests smarter. Please make sure to report the version of file
622+ on your system as well!
626623
627624=head1 DEPENDENCIES/PREREQUISITES
628625
@@ -631,16 +628,16 @@ and headers (https://darwinsys.com/file/).
631628
632629=head1 RELATED MODULES
633630
634- Andreas created File::LibMagic because he wanted to use libmagic (from
635- file 4.x) L<File::MMagic> only worked with file 3.x.
631+ Andreas created File::LibMagic because he wanted to use libmagic (from file
632+ 4.x) L<File::MMagic> only worked with file 3.x.
636633
637634L<File::MimeInfo::Magic> uses the magic file from freedesktop.org which is
638635encoded in XML, and is thus not the fastest approach. See
639636L<https://mail.gnome.org/archives/nautilus-list/2003-December/msg00260.html>
640637for a discussion of this issue.
641638
642- L<File::Type> uses a relatively small magic file, which is directly hacked
643- into the module code. It is quite fast but the database is quite small
644- relative to the file package.
639+ L<File::Type> uses a relatively small magic file, which is directly hacked into
640+ the module code. It is quite fast but the database is quite small relative to
641+ the file package.
645642
646643=cut
0 commit comments