Games::Lacuna::Task::Utils - Helper functions for Games::Lacuna::Task
use Games::Lacuna::Task::Utils qw(class_to_name);
No functions are exported by default.
Class name to moniker (lowercase, uderscore separated)
Moniker to class name (camel case, prefixed with Games::Lacuna::Task::Action::)
my $dist = distance($x1,$y1,$x2,$y2);
Calculates map distance
say pretty_dump($value);
Stringifies any value
Removes diacritic marks and uppercases a string for better compareability
my $ship_type = parse_ship_type($human_type);
Converts a human ship name into the ship type
Returns a epoch timestamp for the given timestamp from the api response
Formats an epoch timestamp
To install Games::Lacuna::Task, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Lacuna::Task
CPAN shell
perl -MCPAN -e shell install Games::Lacuna::Task
For more information on module installation, please visit the detailed CPAN module installation guide.