PS: here again, I found a way of obtaining the output I expected without
using the code I first used: I'm not looking for a solution to the
problem, but I am greatly interested in knowing whether the result of
Embperl's processing is incorrect or not (I'm never certain to understand
correctly what Perl/Embperl is supposed to produce); if it is a bug, I
thought it would be useful to correct it before too many people waste time
on it.

PPS: the (first) code actually produces only the sentence:
'Here is the output of the routine 'definedSub':".

Best wishes to all,

EOL

---------- Forwarded message ----------
Date: Mon, 1 Apr 2002 19:27:20 +0200 (DFT)
From: Eric-Olivier Le Bigot <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Print OUT in sub [2.0b7]: bug?



  Hello,

I get a strange behavior when I use a sub that does not contain any [++]
block:

-------------------------------------------------------------------------
[$ sub definedSub $]
[#+ 'hello' +#]
[- print OUT " IN ROUTINE\n"; -]
[$ endsub $]
Here is the output of the routine 'definedSub':
[- definedSub; -]
-------------------------------------------------------------------------

produces nothing.

But if I uncomment the 'hello' line, then it works as I expected and
produces:

-------------------------------------------------------------------------
Here is the output of the routine 'definedSub': hello IN ROUTINE
-------------------------------------------------------------------------

  Is it a normal behavior?

  EOL

--
Eric-Olivier LE BIGOT (EOL)
------o-o----------------------------------------------------o-o------
        National Institute of Standards and Technology (NIST)
        100 Bureau Drive, Stop 8401
        Gaithersburg, MD  20899-8401
        United States of America
------o-o----------------------------------------------------o-o------
off.: (301)-975-4397                               fax: (301)-975-4578
home: (301)-633-3160                         e-mail: [EMAIL PROTECTED]





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

Reply via email to