~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Examples/perl5/constants2/example.pl

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Landschoff
  • Date: 2002-03-29 01:56:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020329015607-c0wt03xu8oy9ioj7
Tags: upstream-1.3.11
ImportĀ upstreamĀ versionĀ 1.3.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# file: example.pl
 
2
 
 
3
use example;
 
4
 
 
5
print "ICONST  = ", example::ICONST, " (should be 42)\n";
 
6
print "FCONST  = ", example::FCONST, " (should be 2.1828)\n";
 
7
print "CCONST  = ", example::CCONST, " (should be 'x')\n";
 
8
print "CCONST2 = ", example::CCONST2," (this should be on a new line)\n";
 
9
print "SCONST  = ", example::SCONST, " (should be 'Hello World')\n";
 
10
print "SCONST2 = ", example::SCONST2, " (should be '\"Hello World\"')\n";
 
11
print "EXPR    = ", example::EXPR,   " (should be 48.5484)\n";
 
12
print "iconst  = ", example::iconst, " (should be 37)\n";
 
13
print "fconst  = ", example::fconst, " (should be 3.14)\n";
 
14
 
 
15
 
 
16