perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Gunton <n...@nilspace.com>
Subject Print OUT in [$ sub $]
Date Tue, 27 Jan 2004 20:14:29 GMT
Hi Gerald,

I found another case that doesn't work as expected in 2.0b10:


[$ sub xxxx $]

   [-
	my ($self) = @_;

	print OUT "Hello world";
   -]

[$ endsub $]

This is a simplified example, but it doesn't print anything. When the
routine is redone as a standard Perl routine, then it works. So it seems
to be something to do with the print OUT inside a [$ sub $]. Once again,
I am using this from Embperl::Object, calling in a subs epl file from an
index.html. Let me know if this works for you, if it does print out on
your system then I'll try and find out what other special factors are
making it happen...

Thanks,

-Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message