The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::BatParser - Parse DOS .bat and .cmd files

SYNOPSYS

    use App::BatParser;
    use Path::Tiny;
    use Data::Dumper;

    my $parser = App::BatParser->new;
    my $bat_string = Path::Tiny::path('t/cmd/simple.cmd')->slurp;

    say Dumper($parser->parse($bat_string));
    

METHODS

parse

Parses the text as a bat/cmd file

Returns

Hash representation of file on success, empty list on fail

TODO: Exception on fail