| 1 | package CDP::Dump; | ||
| 2 | |||
| 3 | use Frontier::Client; | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, ); | ||
| 9 | require Exporter; | ||
| 10 | require DynaLoader; | ||
| 11 | require AutoLoader; | ||
| 12 | |||
| 13 | @ISA = qw(Exporter DynaLoader AutoLoader); | ||
| 14 | # Items to export into callers namespace by default. Note: do not export | ||
| 15 | # names by default without a very good reason. Use EXPORT_OK instead. | ||
| 16 | # Do not simply export all your public functions/methods/constants. | ||
| 17 | @EXPORT = qw//; | ||
| 18 | |||
| 19 | @EXPORT_OK = | ||
| 20 | qw/ | ||
| 21 | dumpARef | ||
| 22 | dumpHRef | ||
| 23 | /; | ||
| 24 | |||
| 25 | %EXPORT_TAGS = ( | ||
| 26 | 'ALL' => \@EXPORT_OK, | ||
| 27 | 'CONST' => [qw//], | ||
| 28 | ); | ||
| 29 | |||
| 30 | Exporter::export_ok_tags(keys %EXPORT_TAGS); | ||
| 31 | |||
| 32 | sub dumpARef { | ||
| 33 | my $aref = shift; | ||
| 34 | return @{$aref}; | ||
| 35 | } | ||
| 36 | |||
| 37 | sub dumpHRef { | ||
| 38 | my $href = shift; | ||
| 39 | while (my ($key, $value) = %{$href}) { | ||
| 40 | print "$key: $value"; | ||
| 41 | } | ||
| 42 | } | ||
| 43 | |||
| 44 | 1; | ||
| 45 | __END__ |