It's obvious that you were emulating the author's
RunAlone.t. The response you got was exactly the response that the author was testing. She used
__END__
only in that specific instance; also, she deliberately misspelled the module name to test the error message. If you wanted your script to throw an exception, then it's correct. To get rid of the error, spell the module name correctly. Your test won't throw an exception then. This worked for me:
#!/usr/bin/perl -l
# test.pl
use strict;
use warnings;
use Sys::RunAlone;
print "Srini";
__END__