--On Friday, October 17, 2003 13:46 -0500 "Charles K. Clarkson"
<[EMAIL PROTECTED]> wrote:
: (I've tried re-creating the
: HTML::Stream too, or just using the 'global' version.)
: This actually was my first try at it. Again, slide()
: works fine, but slide_() doesn't, even though it gets
: call
Daniel Staal <[EMAIL PROTECTED]> :
:
: I actually tried that, using the following code:
[code sample snipped]
:
: But that doesn't seem to work either.
What do you mean by "doesn't seem to work"?
: (I've tried re-creating the
: HTML::Stream too, or just using the 'global' version.)
: This
--On Friday, October 17, 2003 13:54 -0400 Steve Grazzini
<[EMAIL PROTECTED]> wrote:
You could use a lexically-scoped filehandle.
{
my $fh;
sub do_open { open $fh }
sub do_append { print $fh }
sub do_close { close $fh }
}
I actually tried that, using t
On Fri, Oct 17, 2003 at 12:38:33PM -0500, Daniel Staal wrote:
> I need to open a filehandle in one sub, use it in several
> others, and then close it in a different sub yet. I'd pass it as a
> parameter, but all the subs are actually called by XML::Parser, so I
> don't get to choose the paramet
Ok, I'm writing an apxl to html converter and I have one little
problem: I need to open a filehandle in one sub, use it in several
others, and then close it in a different sub yet. I'd pass it as a
parameter, but all the subs are actually called by XML::Parser, so I
don't get to choose the par