var lifting
Matt S Trout [Wed, 27 Jun 2007 05:23:11 +0000 (05:23 +0000)]
t/liftvar.t [new file with mode: 0644]

diff --git a/t/liftvar.t b/t/liftvar.t
new file mode 100644 (file)
index 0000000..0301368
--- /dev/null
@@ -0,0 +1,13 @@
+use strict;
+use warnings;
+use Test::More 'no_plan';
+
+sub foo { $_[0] = $_[1]; (); }
+
+sub bar { is($_[0], 'yay', 'Var set ok'); (); }
+
+use Devel::BeginLift qw(foo bar);
+
+foo(my $meep, 'yay');
+
+bar($meep);