blob: 7fe9fa1d5dd45e426abf9d70e0026a60149068fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $File: //local/member/autrijus/Win32-Exe/lib/Win32/Exe/ResourceTable.pm $ $Author: autrijus $
# $Revision: #5 $ $Change: 1130 $ $Date: 2004-02-17T15:40:29.640821Z $
package Win32::Exe::ResourceTable;
use strict;
use base 'Win32::Exe::Base';
use constant FORMAT => (
DebugDirectory => 'V',
TimeStamp => 'V',
VersionMajor => 'v',
VersionMinor => 'v',
NumNameEntry => 'v',
NumIdEntry => 'v',
'ResourceEntry::Name' => [ 'a8', '{$NumNameEntry}', 1 ],
'ResourceEntry::Id' => [ 'a8', '{$NumIdEntry}', 1 ],
);
sub set_path {
my ($self, $path) = @_;
$self->{path} = $path;
}
sub path {
my ($self) = @_;
wantarray ? @{$self->{path}} : $self->{path};
}
sub depth {
my ($self) = @_;
scalar @{$self->{path}};
}
1;
|