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.

--

See the Copyright notice on my home node.

Perl training courses


In reply to Re^5: How do I use curl with perl and Twitter by davorg
in thread How do I use curl with perl and Twitter by northwestdev

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":