Amazon S3 Available From Perl

Thursday, April 10, 2008 by Mistlee


Can't see any images? -!



Recent Articles

Perl Modules: Java's Little Helpers
Perl programmers who may have to add "Write once, run anywhere" to their knowledge of "There ain't no such thing as a free lunch" can find modules to assist in working with Java. Not every day in front of the...

Random Errors In Perl
WThere is a simple mistake I make frequently with random numbers. I'll use Perl to illustrate, but trust me: I can screw this up in just about any language.

Playing with Perl 5.10
While we were all busy getting ready for the holidays, version 5.10 of Perl appeared on CPAN. That surprised me, because I thought the next Perl I'd see would be the dreaded Perl 6.. I don't know when that will be...

Equal Height CSS Columns With Filler Text
If you search for "column alignment" or "css columns", you'll probably eventually end up at In search of the One True Layout at positioniseverything.net. That's...

04.10.08

Amazon S3 Available From Perl

By David A. Utter

Some lines of Perl enable efficient reading and writing of data to the Amazon Simple Storage Service (S3)

The continued growth and adoption of web services places information online in ways that enable developers to tap the data all over the globe. Amazon S3 gives developers and startups a cost-effective way to put their data online; it's up to the application developer to get it back.

Abel Lin wrote about doing so through the use of some Perl tools. Lin's post at Perl.com presented ways to use Perl, REST, and Amazon's own S3 REST Module to make data sit up and beg.

Download a Free Trial of Ektron CMS400.NET

"Without wading through the details, I tend think of buckets as folders, objects as files, and keys as filenames. The purpose of this abstraction is to create a unique HTTP namespace for every object," Lin wrote in translating the core concepts of Amazon S3.

Getting to and from S3 starts with the valid S3 Access ID Key and Secret Access Key. Upon creating a connection to S3 with those credentials, Lin showed how to use the Data::Dumper module to view the contents being returned from the buckets on S3.

Writing an object back is just as simple through HTTP Put, but beware of the potential for problems. S3 will happily overwrite an existing object with the same name with the later write request.

Although it has been years since I have needed to use Perl, I'm always impressed to see clever ways to apply it to one's needs. Though it may not be the "cool" language anymore, I will be surprised to see something newer chew through a heap of raw data at the pace of properly written Perl.

About the Author:
David Utter is a staff writer for WebProNews covering technology and business.
About PerlProNews
PerlProNews is a collection of news and commentary designed to keep you in step with the ever evolving landscape of Perl environments. News and Advice for Perl Professionals





PerlProNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
PerlProNews.com SQLProNews.com
SysAdminNews DevWebPro.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITCertificationNews.com






-- PerlProNews
is an iEntry, Inc. publication --
iEntry, 2549 Richmond Rd. Lexington KY, 40509
2008 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article



Unsubscribe from PerlProNews.
To unsubscribe from PerlProNews or any other iEntry publication, simply send an email request to: support@ientry.com
Database Forum News and Advice for Perl Professionals PerlProNews News Archives About Us Feedback PerlProNews.com About Article Archive News Downloads WebProWorld Forums iEntry Advertise Contact Jayde

0 comments: