On Sunday 03 February 2002 13:06, Terrence Brannon wrote:
> <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

Have you looked at <util:include-expr> in the AxKit::XSP::Util docs ?

-- 
_______________________________________________________________________
Robin Berjon <[EMAIL PROTECTED]> -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
-----------------------------------------------------------------------
Is life worth living?
It all depends upon the liver.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to