in reply to Re^4: How do I use curl with perl and Twitter
in thread How do I use curl with perl and Twitter
This is one of those (many) places where use warnings will tell you exactly what you are doing wrong.
Not an ARRAY reference at ./twit line 13.
The value you're getting back in $result is a hash reference. You can't treat it as an array reference.
Coding without use warnings is stupid. Don't do it.