---
name: "CGI::ValidOp::Check::length"
section: "3pm"
platform: "linux"
package: "libcgi-validop-perl"
version: "0.56-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/CGI::ValidOp::Check::length"
---

# CGI::ValidOp::Check::length(3pm)

CGI::ValidOp::Check module to check length of value

## NAME

CGI::ValidOp::Check::length - CGI::ValidOp::Check module to check length of value

## DESCRIPTION

Fails if length of value in characters is not within specified parameters.  Usage:

- length

  - *length*(0)

  - length(0,0)

  Any value will pass.

- [*length*(3)](/length/3.md)

  - length(3,3)

  Length must exactly equal 3.

- length(3,0)

  Length must be at least 3.

- length(0,3)

  Length must be at most 3.

- length(3,6)

  Length must be between 3 and 6.

- length(6,3)

  Error; death.

## AUTHOR

Randall Hansen \<legless@cpan.org\>

## COPYRIGHT

Copyright (c) 2003-2005 Randall Hansen. All rights reserved.

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html
