summaryrefslogtreecommitdiff
path: root/tutorial
diff options
context:
space:
mode:
authorT Jake Luciani <jake@apache.org>2008-12-23 03:45:43 +0000
committerT Jake Luciani <jake@apache.org>2008-12-23 03:45:43 +0000
commit41687fc6cfa179883da9b18d094ad56f6be669da (patch)
treed1dec0615edbbfde2855144dc7fd14430cf864a1 /tutorial
parent0d738890ba9236060c1c500c6f44ba1b7133b3d3 (diff)
downloadthrift-41687fc6cfa179883da9b18d094ad56f6be669da.tar.gz
THRIFT-193: Patch for proper namespace support in perl compiler
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@728863 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/perl/PerlClient.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/tutorial/perl/PerlClient.pl b/tutorial/perl/PerlClient.pl
index 44a5a5213..9451a948a 100644
--- a/tutorial/perl/PerlClient.pl
+++ b/tutorial/perl/PerlClient.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
use warnings;
@@ -11,8 +11,8 @@ use Thrift::BinaryProtocol;
use Thrift::Socket;
use Thrift::BufferedTransport;
-use SharedService;
-use Calculator;
+use shared::SharedService;
+use tutorial::Calculator;
use shared::Types;
use tutorial::Types;
@@ -21,7 +21,7 @@ use Data::Dumper;
my $socket = new Thrift::Socket('localhost',9090);
my $transport = new Thrift::BufferedTransport($socket,1024,1024);
my $protocol = new Thrift::BinaryProtocol($transport);
-my $client = new CalculatorClient($protocol);
+my $client = new tutorial::CalculatorClient($protocol);
eval{
@@ -36,7 +36,7 @@ eval{
my $work = new tutorial::Work();
- $work->op(Operation::DIVIDE);
+ $work->op(tutorial::Operation::DIVIDE);
$work->num1(1);
$work->num2(0);
@@ -47,7 +47,7 @@ eval{
warn "InvalidOperation: ".Dumper($@);
}
- $work->op(Operation::SUBTRACT);
+ $work->op(tutorial::Operation::SUBTRACT);
$work->num1(15);
$work->num2(10);
my $diff = $client->calculate(1, $work);