| 1 | |||
| 2 | package Apache2::ASP::Test::UploadObject; | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings 'all'; | ||
| 6 | |||
| 7 | sub new | ||
| 8 | { | ||
| 9 | my $class = shift; | ||
| 10 | return bless { @_ }, $class; | ||
| 11 | }# end new() | ||
| 12 | |||
| 13 | |||
| 14 | sub AUTOLOAD | ||
| 15 | { | ||
| 16 | my $s = shift; | ||
| 17 | our $AUTOLOAD; | ||
| 18 | |||
| 19 | my ($key) = $AUTOLOAD =~ m/::([^:]+)$/; | ||
| 20 | if( @_ ) | ||
| 21 | { | ||
| 22 | return $s->{$key} = shift(@_); | ||
| 23 | } | ||
| 24 | else | ||
| 25 | { | ||
| 26 | return $s->{$key}; | ||
| 27 | }# end if() | ||
| 28 | }# end AUTOLOAD() | ||
| 29 | |||
| 30 | 1;# return true: | ||
| 31 | |||
| 32 |