perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Schilling <rschill...@nationalinformatics.net>
Subject Fwd: Re: sub error
Date Mon, 05 May 2003 21:51:14 GMT
forwarded for the list . . . 

---- Original message ----
>Date: Mon, 5 May 2003 13:50:12 -0800
>From: Richard Schilling 
<rschilling@nationalinformatics.net>  
>Subject: Re: sub error  
>To: kar@kakidata.dk
>
>I'm not so sure there's an error there, unless I don't 
>understand something about the Embperl tags.
>
>The [- -] tags suppress output, so it makes sense you 
>wouldn't see anything.
>
>The [+ +] tags must override the suppressed output.  If 
using 
>[+ +] the way you have it here was intended that could 
>actually be a handy feature (no output from the block, but 
>output from the result?).
>
>--Richard Schilling
>
>---- Original message ----
>>Date: Mon, 5 May 2003 19:25:42 +0200
>>From: Kaare Rasmussen <kar@kakidata.dk>  
>>Subject: sub error  
>>To: embperl@perl.apache.org
>>
>>Did I ever report this error:
>>
>>This sub will display nothing:
>>
>>[$ sub showData $]
>>[-
>>  ($type, $data) = @_;
>>  $escmode = 1;
>>  print OUT "$data";
>>-]
>>[$ endsub $]
>>
>>This one will print out the desired data:
>>
>>[$ sub showData $]
>>[++]
>>[-
>>  ($type, $data) = @_;
>>  $escmode = 1;
>>  print OUT "$data";
>>-]
>>[$ endsub $]
>>
>>-- 
>>Kaare Rasmussen            --Linux, spil,--        
>Tlf:        3816 2582
>>Kaki Data                tshirts, merchandize      
>Fax:        3816 2501
>>Howitzvej 75               Åben 12.00-18.00        Email: 
>kar@kakidata.dk
>>2000 Frederiksberg        Lørdag 12.00-16.00       
Web:      
>www.suse.dk
>>
>>------------------------------------------------------------
-
>--------
>>To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
>>For additional commands, e-mail: embperl-
help@perl.apache.org
>>

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


Mime
View raw message