if (ref $_[0]) { @files = @{$_[0]} }
else { @files = @_ }
- (bless \@files, $class)->init
+ (bless {files => \@files}, $class)->init
}
sub init { shift }
# scaffolding for now...
- sub files { @{(shift)} }
+ sub files { @{(shift)->{files}} }
sub has_uploaded_file { return 0 }
}
package Local::Packet::Directive;
{our @ISA = qw(Local::Packet)}
- sub file_name_stem { substr((shift)->[0],0,-(length '.directive.asc')) }
+ sub file_name_stem { substr(((shift)->files)[0],0,-(length '.directive.asc')) }
- sub directive_file_name { (shift)->[0] }
+ sub directive_file_name { ((shift)->files)[0] }
}