var lifting
[p5sagit/Devel-BeginLift.git] / t / liftvar.t
CommitLineData
31bd32f9 1use strict;
2use warnings;
3use Test::More 'no_plan';
4
5sub foo { $_[0] = $_[1]; (); }
6
7sub bar { is($_[0], 'yay', 'Var set ok'); (); }
8
9use Devel::BeginLift qw(foo bar);
10
11foo(my $meep, 'yay');
12
13bar($meep);