Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Net::Twitter has a method called update_profile_image:

update_profile_image update_profile_image(image) Parameters: image Required: image Updates the authenticating user's profile image. Expects raw multi +part data, not a URL to an image. Returns: ExtendedUser

The part that confuses me is this: "Expects raw multipart data, not a URL to an image."

Using Perl, how might one generate raw multipart data from a file and place in a scalar? What CPAN module would I use?

Thanks in advance for all your help!

Replies are listed 'Best First'.
Re: Net::Twitter update_profile_image
by Your Mother (Archbishop) on Jul 20, 2009 at 00:13 UTC