summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2012-12-30 09:57:38 +0000
committerfukachan <fukachan>2012-12-30 09:57:38 +0000
commitcbcf50b05459ecbc64e3c5dba537bdf8dd240418 (patch)
tree4d13c1d976f4c17a271cd9d45024f12378219109
parent1a00375f0ff442f1ad3df855d1f0d6421dc35310 (diff)
downloadfml8-cbcf50b05459ecbc64e3c5dba537bdf8dd240418.tar.gz
fml8-cbcf50b05459ecbc64e3c5dba537bdf8dd240418.tar.bz2
fml8-cbcf50b05459ecbc64e3c5dba537bdf8dd240418.zip
catch up perl changes: not length(@array), use "scalar @array" to find
out how many elements these have.
-rw-r--r--fml/lib/FML/Process/ConfViewer.pm8
-rw-r--r--fml/lib/FML/Process/DocViewer.pm8
2 files changed, 8 insertions, 8 deletions
diff --git a/fml/lib/FML/Process/ConfViewer.pm b/fml/lib/FML/Process/ConfViewer.pm
index b394ef5a..527bf921 100644
--- a/fml/lib/FML/Process/ConfViewer.pm
+++ b/fml/lib/FML/Process/ConfViewer.pm
@@ -1,9 +1,9 @@
#-*- perl -*-
#
-# Copyright (C) 2000,2001,2002,2003,2004,2005 Ken'ichi Fukamachi
+# Copyright (C) 2000,2001,2002,2003,2004,2005,2012 Ken'ichi Fukamachi
# All rights reserved.
#
-# $FML: ConfViewer.pm,v 1.33 2005/06/04 08:49:09 fukachan Exp $
+# $FML: ConfViewer.pm,v 1.34 2005/08/10 15:03:24 fukachan Exp $
#
package FML::Process::ConfViewer;
@@ -105,7 +105,7 @@ sub verify_request
$curproc->logwarn($@) if $@;
}
- if (length(@$argv) == 0 || (not $argv->[0])) {
+ if (scalar(@$argv) == 0 || (not $argv->[0])) {
$curproc->help();
exit(0);
}
@@ -234,7 +234,7 @@ Ken'ichi Fukamachi
=head1 COPYRIGHT
-Copyright (C) 2000,2001,2002,2003,2004,2005 Ken'ichi Fukamachi
+Copyright (C) 2000,2001,2002,2003,2004,2005,2012 Ken'ichi Fukamachi
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.
diff --git a/fml/lib/FML/Process/DocViewer.pm b/fml/lib/FML/Process/DocViewer.pm
index 89199670..6232bb78 100644
--- a/fml/lib/FML/Process/DocViewer.pm
+++ b/fml/lib/FML/Process/DocViewer.pm
@@ -1,9 +1,9 @@
#-*- perl -*-
#
-# Copyright (C) 2000,2001,2002,2003,2004,2005 Ken'ichi Fukamachi
+# Copyright (C) 2000,2001,2002,2003,2004,2005,2012 Ken'ichi Fukamachi
# All rights reserved.
#
-# $FML: DocViewer.pm,v 1.35 2005/06/04 08:49:10 fukachan Exp $
+# $FML: DocViewer.pm,v 1.36 2005/08/10 15:03:25 fukachan Exp $
#
package FML::Process::DocViewer;
@@ -102,7 +102,7 @@ sub verify_request
my $eval = $config->get_hook( 'fmldoc_verify_request_start_hook' );
if ($eval) { eval qq{ $eval; }; $curproc->logwarn($@) if $@; }
- if (length(@$argv) == 0) {
+ if (scalar(@$argv) == 0) {
$curproc->help();
exit(0);
}
@@ -230,7 +230,7 @@ Ken'ichi Fukamachi
=head1 COPYRIGHT
-Copyright (C) 2000,2001,2002,2003,2004,2005 Ken'ichi Fukamachi
+Copyright (C) 2000,2001,2002,2003,2004,2005,2012 Ken'ichi Fukamachi
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.