There's no problem with that at all. Just leave off the & from the call, and the parenthesis off your sub definition, and you're golden. (Subroutine prototypes aren't the same as in C++, so don't use 'em.)
Update: Fixed grammar and mentioned prototype...
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: creating a perl entry-point
by roboticus
in thread creating a perl entry-point
by morelenmir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |