in reply to Re^2: help with Exporter
in thread help with Exporter

I tried your second snippet (copied and pasted to a new script), and it runs!

I have a perl 5.8.8, what's your perl version? And are you sure you tried exactly the same script as you posted here?