opnsense-ports/print/p5-PostScript/files/patch-TextBlock.pm
Franco Fichtner a737ce6b05 */*: sync previously available, but unused ports
Taken from: FreeBSD
2015-04-22 06:45:04 +02:00

11 lines
256 B
Perl

--- 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 {