I'm curious to see your syntax errors from adding to the BEGIN block. I created a simple Mytest.pm and could add to BEGIN without errors.
package Mytest; sub is_even { return 1; } return 1;
non-Perl: Andy Ford
In reply to Re: Testing a XS module
by andyford
in thread Testing a XS module
by technojosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |