I have to access all the DCRs of one datatype in another. so i have included an inline command execute this script. But i am not getting the list of DCRs. Does anyone have any suggestions? please
#!D:/Progra~1/Interwoven/TeamSite/iw-perl/bin/iwperl
use TeamSite:

CRnode;
my
@head_list;
print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
print("<substitution>");
chdir("y:/default/main/examples/workarea/templating/templatedata/intranet/news/data");
# Put files into an array
foreach(<*>) {
push
@dcr_list, $_;
}
for (my $i = 0; $i <
@dcr_list; $i++) {
# Load dcr and extract information
open (DCR, $dcr_list[$i]);
my $xml_string = join ('', (<DCR>));
close DCR;
my $rootnode = TeamSite:

CRnode->new($xml_string);
if (defined $rootnode) {
push
@head_list, $rootnode->value("Headline");
}
}
for ($i = 0; $i <
@head_list; $i++) {
print("<option value=\"$head_list[$i]\" label=\"$head_list[$i]\" />");
}
print("</substitution>");