#!/usr/bin/env perl use strict; use warnings; our $VERSION = '0.01'; #ADD THIS before loading anything else #adjust catdir so that it finds 'lib' from where THIS script resides #mine is scripts/hero that's why I have the '..' use FindBin; use File::Spec; use lib File::Spec->catdir($FindBin::Bin, '..', 'lib'); # or just use lib a constant path to avoid loading extra packages ##### use Mojo::File qw(curfile); use Mojolicious::Commands; # Start command line interface for application Mojolicious::Commands->start_app('Hero');