IndieRunner::Helpers(3p)

NAME
IndieRunner::Helpers - helper functions for IndieRunner modules

DESCRIPTION
Various helper functions used by one or more IndieRunner modules.

METHODS

  get_magic_descr( $file )
Returns the description of a file, as obtained by File::LibMagic.

  find_file_magic( $regex, @files )
Search the File::LibMagic description of @files for $regex and return an array of files that match.

  match_bin_file( $regex, $file, $case_insensitive )
Perform search for matching regular expression $regex on raw $file. Returns the matching string, or undef if there is no match. By default, the match is case-sensitive. Set $case_insensitive to false (0) to run a case-insensitive match.

  goggame_name()
Retrieve game name string from "goggame-*.info", a file typically bundled with games distributed by <https://www.gog.com/>.

SEE ALSO
File::LibMagic IndieRunner

AUTHOR
Thomas Frohwein <thfr@cpan.org>

COPYRIGHT
Copyright 2022-2024 by Thomas Frohwein <thfr@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the ISC license.