| ctflags documentation | view source | Contained in the ctflags distribution. |
ctflags::check - extension private to ctflags package
use ctflags::check;
eval {
check_identifier $perlidentifier;
check_ns $namespace;
check_flag $flag;
check_value $value;
check_flagset $flagset;
check_alias $alias;
check_defopt $option_value, $option_name;
check_envname $environment_var_name;
check_cntprefix $constant prefix;
check_package $package;
};
if ($@) { chomp $@; croak $@ }
ctflags::check defines a set of funcions used by the ctflags package and friends to check for argument validity in its subrutines.
Only if you are changing the ctflags package or developing an extension for it should you use this module. It is private to ctflag and its public interface is not guaranteed to remain unchanged.
See the package source code to see the rules for every type of argument.
check_* functions die if its argument do not match the predefined rules.
Subrutines:
check_identifier,
check_ns,
check_flag,
check_value,
check_flagset,
check_alias,
check_defopt,
check_envname,
check_cntprefix
check_package;
Regular expresions:
$identifier_re,
$ns_re,
$flag_re,
$value_re,
$flagset_re,
$alias_re,
$envname_re,
$cntprefix_re,
$package_re.
Salvador Fandi&241;o Garcia, <sfandino@yahoo.com>.
Copyright 2002 by Salvador Fandi&241;o Garcia
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| ctflags documentation | view source | Contained in the ctflags distribution. |