Revision history for Perl distribution Excel::Template
+0.25 Thu May 26 11:00:00 2005
+ - Changed how the template file is opened to use 3-arg open() if available
+
0.24 Thu Mar 10 11:00:00 2005
- Implemented the KEEP_LEADING_ZEROS node
- This wraps the keep_leading_zeros() worksheet method
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: Excel-Template
-version: 0.24
+version: 0.25
version_from: lib/Excel/Template.pm
installdirs: site
requires:
use Excel::Template::Base;
use vars qw ($VERSION @ISA);
- $VERSION = '0.24';
+ $VERSION = '0.25';
@ISA = qw( Excel::Template::Base );
}
push @parms, Base => $dirname;
- open( INFILE, "<$file" )
- || die "Cannot open '$file' for reading: $!\n";
-
+ eval q{
+ open( INFILE, '<', $file )
+ || die "Cannot open '$file' for reading: $!\n";
+ }; if ( $@ ) {
+ if ( $@ =~ /Too many arguments for open/ ) {
+ open( INFILE, "< $file" )
+ || die "Cannot open '$file' for reading: $!\n";
+ } else {
+ die $@;
+ }
+ }
}
my $parser = XML::Parser->new( @parms );