diff options
| author | fukachan <fukachan> | 2012-12-30 09:57:38 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2012-12-30 09:57:38 +0000 |
| commit | cbcf50b05459ecbc64e3c5dba537bdf8dd240418 (patch) | |
| tree | 4d13c1d976f4c17a271cd9d45024f12378219109 /fml/lib/FML/Process/DocViewer.pm | |
| parent | 1a00375f0ff442f1ad3df855d1f0d6421dc35310 (diff) | |
| download | fml8-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.
Diffstat (limited to 'fml/lib/FML/Process/DocViewer.pm')
| -rw-r--r-- | fml/lib/FML/Process/DocViewer.pm | 8 |
1 files changed, 4 insertions, 4 deletions
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. |
