Hi there,
I'd like to use subroutines within my Embperl documents which
use parameters. The usage proposed in the manual
[$ sub foo $]
[- $p = shift -]
<p> parameter: [+ $p +]</p>
[$ endsub $]
works but defines $p globally, which is quite inconvenient.
However, adding "my" to get
[- my $p = shift -]
does not work because this way $p is only
visible within this assignment.
Is it possible to get local parameters here (without
accessing $_[0] etc. directly, of course)? Should I use
[* *] instead?
_____
Thomas Corte
<[EMAIL PROTECTED]>