Ryan P. Kelly > Getopt-Flex > Getopt::Flex::Spec

Download:
Getopt-Flex-1.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 1.07   Source  

NAME ^

Getopt::Flex::Spec - Getopt::Flex's way of handling an option spec

VERSION ^

version 1.07

DESCRIPTION ^

This class is only meant to be used by Getopt::Flex and should not be used directly.

NAME ^

Getopt::Flex::Spec - Specification class for Getopt::Flex

METHODS ^

check_switch

Check whether or a not a switch belongs to this specification

set_switch

Set a switch to the supplied value

switch_requires_val

Check whether or not a switch requires a value

get_switch_error

Given a switch return any associated error message.

get_switch

Passing this function the name of a switch (or the switch spec) will cause it to return the value of a ScalarRef, a HashRef, or an ArrayRef (based on the type given), or undef if the given switch does not correspond to any defined switch.

AUTHOR ^

Ryan P. Kelly <rpkelly@cpan.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2011 by Ryan P. Kelly.

This is free software, licensed under:

  The MIT (X11) License
syntax highlighting: