ctflags::check - extension private to ctflags package


ctflags documentation  | view source Contained in the ctflags distribution.

Index


NAME

Top

ctflags::check - extension private to ctflags package

SYNOPSIS

Top

  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 $@ }

ABSTRACT

Top

  ctflags::check defines a set of funcions used by the ctflags package
  and friends to check for argument validity in its subrutines.

DESCRIPTION

Top

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.

EXPORT

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.

SEE ALSO

Top

ctflags

AUTHOR

Top

Salvador Fandi&241;o Garcia, <sfandino@yahoo.com>.

COPYRIGHT AND LICENSE

Top


ctflags documentation  | view source Contained in the ctflags distribution.