| 1 | package Froody::Argument::CSV; | ||||||||||
| 2 | |||||||||||
| 3 | 18 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 18 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 18 | ▶ | use base 'Froody::Argument'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 17 | ▶ | sub type { 'csv' } | ||||||||
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 9 | |||||||||||
| 10 | 3 | ▶ | sub process { | ||||||||
|
Subroutine
process: called CC=3 SCAR=11.1
Pod
documented
| |||||||||||
| 11 | 3 | my ($class, $param, $check) = @_; | |||||||||
| 12 | 3 | ▶ | Carp::cluck unless defined $param; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 3 | ▶ | return ref($param) eq 'ARRAY' ? $param : [ split(/\s*,\s*/, $param) ]; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | 18 | 1; | |||||||||
| 17 | |||||||||||
| 18 | =head1 NAME | ||||||||||
| 19 | |||||||||||
| 20 | Froody::Argument::CSV - Froody argument type handler for comma seperated value records | ||||||||||
| 21 | |||||||||||
| 22 | =head1 AUTHORS | ||||||||||
| 23 | |||||||||||
| 24 | Copyright Fotango 2006. All rights reserved. | ||||||||||
| 25 | |||||||||||
| 26 | Please see the main L<Froody> documentation for details of who has worked | ||||||||||
| 27 | on this project. | ||||||||||
| 28 | |||||||||||
| 29 | This module is free software; you can redistribute it and/or modify it under | ||||||||||
| 30 | the same terms as Perl itself. | ||||||||||
| 31 | |||||||||||
| 32 | =cut | ||||||||||