in reply to Re^3: Prototype mismatch
in thread Prototype mismatch
#--------------------------------------------------------------------- +---------- # _scan # # Set up / load given module # # IN: 1 module to scan (AAA::BBB) # 2 optional: flag to load everything now sub _scan { my $module= shift; my $loadnow= defined( $_[0] ) ? shift : $now; # make sure we won't clobber sensitive system vars local $_= \my $foo; # make sure $_ is localized properly local( $!, $@ ); # open the file to read 214-> my $file= _filename( $module ) or die "Could not find file for '$module'"; open( VERSION, "<$file" ) # use VERSION as glob to save memory or die "Could not open file '$file' for '$module': $!"; binmode VERSION # needed for Windows systems, apparently or die "Could not set binmode on '$file': $!";
|
|---|