|Don't ask to ask, just ask|
|( #3333=superdoc: print w/replies, xml )||Need Help??|
I doubt this new problem is related to the user-data.
AWS generally expects you to retry your API call when you get a 500 error.
If you keep getting them, then something is generally more seriously wrong and you should wait a while before trying again.
If you can consistently reproduce a 500 error when calling it with "X" while getting success calling it with "Y", then you may have found a bug.
I'd recommend seeking help on the EC2 forum as this no longer looks like a Perl issue:
-- Eric Hammond
In reply to Re^2: Net::Amazon::EC2 loses pound-shebang when base64'd