projects
/
p5sagit/Devel-BeginLift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
178c2fe
)
var lifting
Matt S Trout [Wed, 27 Jun 2007 05:23:11 +0000 (
05:23
+0000)]
t/liftvar.t
[new file with mode: 0644]
patch
|
blob
diff --git a/t/liftvar.t
b/t/liftvar.t
new file mode 100644
(file)
index 0000000..
0301368
--- /dev/null
+++ b/
t/liftvar.t
@@ -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);