Permalink
Browse files

And show an example

  • Loading branch information...
1 parent 5e72b1a commit e5c3e5c58d3a7ab53d8ec51c3aa7403a44bb3464 @acme committed Jul 10, 2009
Showing with 16 additions and 0 deletions.
  1. +16 −0 play.pl
View
@@ -0,0 +1,16 @@
+#!/home/acme/perl-5.10.0/bin//perl
+use strict;
+use warnings;
+use lib 'lib';
+use Net::Cassandra;
+
+my $cassandra = Net::Cassandra->new;
+my $client = $cassandra->client;
+
+my $key_user_id = '3141';
+my $timestamp = time;
+eval {
+ $client->insert( 'Table1', $key_user_id, 'Standard1:name', 'Leon Brocard',
+ $timestamp );
+};
+die $@->why if $@;

0 comments on commit e5c3e5c

Please sign in to comment.