Neil Gunton wrote: > 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... >
The problem is that the print OUT is the first output after the sub. If you insert any text between the [$ sub $] and the [- it will work. It's already on my todo list Gerald -------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh IT-Securitylösungen * dynamische Webapplikationen * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 939-122 WWW: http://www.ecos.de/ Fax: +49 6133 939-333 -------------------------------------------------------------- | | ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info | +------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]