Hi,


----

[- Execute ($somefile) -]
----

(Blank line at top of file) now goes into an endless loop whereas:



----
[- Execute ($somefile) -]
----


Now works fine!

Thanks

Jonny


J>-----Original Message-----
J>From: Gerald Richter [mailto:[EMAIL PROTECTED]]
J>Sent: Thursday, April 26, 2001 2:59 PM
J>To: [EMAIL PROTECTED]
J>Cc: Jonny Cavell; Gareth Davies; Michael Smith
J>Subject: Re: 2.0b3 problems
J>
J>
J>Hi,
J>
J>I have resolved most of the problems (and a few more). I send 
J>a new version
J>to Mike. Anybodyelse can get the corrected version from the 
J>CVS (use branch
J>Embperl2c). Here is what I have done:
J>
J>> Putting
J>>
J>> [- # foo -]
J>>
J>> in a file works under embperl 1.3, but under this version
J>> gives an error. Replacing "# foo" with some code that
J>> does something works fine.
J>
J>works now
J>
J>> On a related note, I'm also having problems
J>> with some of my old code that does:
J>>
J>> <[+ $element +]> to generate html tags from within
J>> code.
J>
J>fixed
J>
J>> One contains:
J>>
J>>   [- chdir "/export/home/michaels/public_html/"; -]
J>>   [- Execute('header.epl'); -]
J>>   foo
J>>
J>
J>I am not quite sure if this is fixed now. I don't get the 
J>error here. If you
J>get the same error with new version, please try
J>
J>>   [- Execute('/export/home/michaels/public_html/header.epl'); -]
J>>   foo
J>
J>instead. Does this change anything ? If yes, do you have more 
J>files called
J>header.epl ?
J>
J>> We've found out that a [- on the first line of an epl file 
J>seems to be
J>> ignored.
J>
J>Only Execute didn't worked on the first line. Works now correctly.
J>
J>> * POD Seems to need to be put within embperl comments
J>
J>pod works in [- -] too. It didn't worked when you wrote 
J>[-=pod without an
J>newline, this works now too, but it is necessary to have a 
J>=cut at the end
J>of your pod block. Putting pod's it [# #] is a little bit faster.
J>
J>> * Calling Execute inside HTML tags does not work properly
J>
J>This is still true. Workaround is
J>
J>[- Execute ({inputfile => 'whatever.epl', output => \$out}) -]
J><tag [+ $out +]>
J>
J>
J>> * Line counting sometimes seems to go awry - errors often 
J>reported on
J>lines
J>> beyond the end of a file
J>
J>I don't have seen this, unless the Perl interpreter can 
J>detect the error
J>only after the end of the file. This is a problem of Perl. 
J>Anyway if you can
J>provide an example, I take a look at it.
J>
J>> * Unsure what this error means: ERR: 49: Line 0: Endtag 
J>'DocumentFraq'
J>> doesn't match starttag ''if', starttag should be 'DocumentFraq''
J>>
J>
J>This mean that a [$endif$] is missing at the end of your document.
J>
J>> [$ foreach $item (qw(a b c
J>> )) $]
J>> <li>[- print OUT $item -]</li>
J>> [$ endforeach $]
J>> </ul>
J>
J>print to OUT inside a loop doesn't work correctly yet. Use [+ 
J>+] instead:
J>
J><li>[+ $item +]</li>
J>
J>that's also faster. I put this on the todo list, but I don't 
J>expect it to
J>fix it very soon.
J>
J>Gerald
J>
J>
J>-------------------------------------------------------------
J>Gerald Richter    ecos electronic communication services gmbh
J>Internetconnect * Webserver/-design/-datenbanken * Consulting
J>
J>Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
J>E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
J>WWW:        http://www.ecos.de      Fax:      +49 6133 925152
J>-------------------------------------------------------------
J>
J>

http://www.iii.co.uk 
Interactive Investor International is a leading UK Internet personal 
finance service that provides individuals with the capability to identify, 
compare, monitor and buy online a number of financial products and services.

Interactive Investor Trading Limited, a subsidiary of Interactive Investor 
International plc, is regulated by the SFA.

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

Reply via email to