NAME

Test::Script::Shebang - checking the perl script shebang

SYNOPSIS

use Test::More;
use Test::Script::Shebang;

check_shebang('scripts/foo.pl');
check_shebang_from_dir('bin');

done_testing;

DESCRIPTION

Test::Script::Shebang is checking the perl script shebang.

FUNCTIONS

check_shebang(@files)

checking for each file(s).

into script/foo.pl

#!perl
use strict;
use warnings;
print "foo";
...

into xt/check_script_shebang.t

use Test::More;
use Test::Script::Shebang;
check_shebang('script/foo.pl'); # success
done_testing;

check_shebang_from_dir(@dirs);

checking for each files in directory.

use Test::More;
use Test::Script::Shebang;
check_shebang_from_dir('script', 'bin');
done_testing;

AUTHOR

xaicron <xaicron {at} cpan.org>

COPYRIGHT

Copyright 2010 - xaicron

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO