On Thu, Jun 6, 2013 at 8:50 PM, Fulko Hew <fulko....@gmail.com> wrote:

> Can anyone tell me whats wrong?



TL;DR Use __DATA__ instead of __END__ and it works.

The reason is probably that when packed, it's not your original script
that's run directly (by the special purpose Perl interpreter also packed
into the executable), but a small wrapper script. This finally runs
your actual script. __DATA__ sections "stick" to the script there
textually appended to, but __END__ not.

Cheers, Roderich

Reply via email to