Fix with perl 5.20+.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2015-02-17 16:05:02 +00:00
parent 1aee8666e8
commit 4a3f1a86d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379172
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= PostScript
PORTVERSION= 0.06
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= print perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-

View File

@ -0,0 +1,11 @@
--- TextBlock.pm.orig 1999-08-11 14:04:36 UTC
+++ TextBlock.pm
@@ -54,7 +54,7 @@ sub numElements {
# Returns the number of elements in the TextBlock
#
my $self = shift;
- return $#{@$self}+1;
+ return scalar(@$self);
}
sub Write {