NAME

Test::App::Generator::Sample::Module - Example module for schema extraction testing

SYNOPSIS

use Sample::Module;

my $obj = Sample::Module->new();
my $result = $obj->validate_email('user@example.com');

DESCRIPTION

This is a sample module with well-documented methods to test the schema extractor.

new

Constructor.

Returns a new Sample::Module object.

validate_email($email)

Validates an email address.

Parameters: $email - string (5-254 chars), email address to validate

Returns: 1 if valid, dies otherwise

calculate_age($birth_year)

Calculate age from birth year.

Parameters: $birth_year - integer (1900-2024), year of birth

Returns: Age in years (integer)

process_names($names)

Process a list of names.

Parameters: $names - arrayref, list of name strings

Returns: Count of names processed

set_config($config)

Set configuration options.

Parameters: $config - hashref, configuration options

Returns: 1 on success

greet($name, $greeting)

Generate a greeting message.

Parameters: $name - string (1-50 chars), person's name $greeting - string (optional), custom greeting (default: "Hello")

Returns: Greeting string

check_flag($enabled)

Check a boolean flag.

Parameters: $enabled - boolean, whether feature is enabled

Returns: 1 if enabled, 0 otherwise

validate_score($score)

Validate a test score.

Parameters: $score - number (0.0-100.0), test score percentage

Returns: Pass/Fail status string

mysterious_method($thing)

A method with poor documentation.

Does something with a thing.

AUTHOR

Example Author

LICENSE

This is free software.