NAME

CIAO/lib/Param/Match.pm

VERSION

version 0.09

SYNOPSIS

use CIAO::Lib::Param;

$pf = CIAO::Lib::Param->new( $filename );
$pmatch = $pf->match( $template );

printf "number of matched parameters: %d\n", $pmatch->length;
while( my $pname = $pmatch->next ) { print "$pname\n" };

# do it all over again
$pmatch->rewind;

DESCRIPTION

These routines manipulate the CIAO::Lib::Param::Match object returned by the CIAO::Lib::Param match() method.

Methods

length
$len = $pmatch->length;

returns the number of matched parameters.

next
$pname = $pmatch->next;

returns the name of the next parameter in the list. It returns undef if at the end of the list.

rewind
$pmatch->rewind;

Reset the list so that the next call to next() will return the first element of the list.

INTERNALS

NAME

CIAO::Lib::Param::Match - handle a list of matched parameters

SUPPORT

Bugs

Please report any bugs or feature requests to bug-ciao-lib-param@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=CIAO-Lib-Param

Source

Source is available at

https://gitlab.com/djerius/ciao-lib-param

and may be cloned from

https://gitlab.com/djerius/ciao-lib-param.git

SEE ALSO

Please see those modules/websites for more information related to this module.

AUTHOR

Diab Jerius <djerius@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2005 by Smithsonian Astrophysical Observatory.

This is free software, licensed under:

The GNU General Public License, Version 3, June 2007