Subject: | no on_eof_call with __END__ or __DATA__ statement in file |
the eof sub isn't called if the file contains a
__DATA__ or __END__ statement
Example:
package MyUsingPackage;
use warnings;
use strict;
our $COMPILE_TIME;
use MyPackage;
# prints 'yes'
BEGIN { print +( $COMPILE_TIME ? 'yes' : 'no' ), "\n" }
# prints 'no'
print +( $COMPILE_TIME ? 'yes' : 'no' ), "\n";
1;
__END__