Leser: 15
|< 1 2 >| | 18 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl -wl
package ap;
use Win32::OLE::Const "Adobe Photoshop";
package main;
$, = $/;
print sort grep defined *{"ap::$_"}{"CODE"}, keys %ap::;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl -wl
package ap;
use Win32::OLE::Const "Notes.NotesSession";
package main;
$, = $/;
print sort grep defined *{"ap::$_"}{"CODE"}, keys %ap::;
_ _ END _ _
No type library matching "Notes.NotesSession" found at test2.pl line 5
Win32::OLE(0.1601): GetOleTypeLibObject() Not a Win32::OLE::TypeLib object at C:/Perl/site/lib/Win32/OLE/Const.pm line 45.
1
2
3
4
5
6
7
8
sub dump_subs {
my $package = shift;
my @subs = sort grep defined *{$package."::$_"}{"CODE"}, keys %{$package."::};
for my $isa (@{$package."::ISA"}) {
push @subs, dump_subs($isa);
}
@subs;
}
1
2
3
4
5
6
7
8
9
10
sub dump_subs {
my $package = shift;
my @subs = sort grep defined *{$package."::$_"}{"CODE"}, keys %{$package."::"};
for my $isa (@{$package."::ISA"}) {
push @subs, dump_subs($isa);
}
@subs;
}
print join ", ",dump_subs(CGI);
_ _ END _ _
|< 1 2 >| | 18 Einträge, 2 Seiten |