>
> This works nicely but [$ sub foo($p) $] (ie without the space
> between foo and ($p)) gives an error.
>
> Might be worth allowing this in some future version if it's
> not too hard?
>
The regex that splits out the arguments is in
Embperl/Syntax/EmbperlBlocks.pm line 420. Should be easily
From the documentation:
--
In Embperl 2.0.2 and up you can use a shortcut syntax for passing parameters:
[$ sub foo ($p) $]
Here we show the first parameter [+ $p +]
[$ endsub $]
--
This works nicely but [$ sub foo($p) $] (ie without the space between
foo and ($p)) gives an error.