added example
Matt S Trout [Wed, 27 Jun 2007 03:48:16 +0000 (03:48 +0000)]
example/simple.pl [new file with mode: 0755]

diff --git a/example/simple.pl b/example/simple.pl
new file mode 100755 (executable)
index 0000000..0c3ce26
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+use Devel::BeginLift qw(foo baz);
+
+use vars qw($i);
+
+BEGIN { $i = 0 }
+
+sub foo { "foo: $_[0]\n"; }
+
+sub bar { "bar: $_[0]\n"; }
+
+for (1 .. 3) {
+  print foo($i++);
+  print bar($i++);
+}
+
+no Devel::BeginLift;
+
+print foo($i++);