in reply to make a required script exit script
Have you tried exiting in the required script?
test.pl
test2.pl
Test it
test.pl
#!/usr/bin/perl -w use strict; require "test2.pl"; print "Shouldn't ever print me!\n";
test2.pl
#!/usr/bin/perl -w use strict; print "In required\n"; exit;
Test it
> ./test.pl In required >
|
---|
In Section
Seekers of Perl Wisdom