Kalle Hallivuori > Test-CallFlow > Test::CallFlow::ArgCheck::Regexp

Download:
Test-CallFlow-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  0
View/Report Bugs
Source  

Test::CallFlow::ArgCheck::Regexp ^

  die "Unfit" unless defined
    my $fit =
      Test::CallFlow::ArgCheck::Regexp->new( qr/^..$/ )->check( 0, [ 'foo' ] );

Checks arguments against a regular expression. See base class Test::CallFlow::ArgCheck.

FUNCTIONS ^

check

  $checker->check( 1, [ 'foo', 'bar' ] ) ? 'ok' : die;

Checks the argument at given position in referred array against a regular expression.

syntax highlighting: