<xsp:logic>
opendir S, 'sitelist' or die "couldn't open sitelist directory";
while (my $file = readdir(S)) {
   next unless $file =~ /\.xml$/;
   open F, $file or die "couldn't open $file in sitelist";
   my $contents = join '', <F>; # gotcha
   <xsp:expr>$contents</xsp:expr>
</xsp:logic>



1 - you can't do a read on a filehandle unless you change < to &lt;
2 - you can't just do a <util:include-file> because that expects 
a literal filename



<hacker language="Perl" type="AxKit" uniqueness="just another">
Terrence Brannon
</hacker>

Reply via email to