update changelog
[p5sagit/Devel-BeginLift.git] / t / liftvar.t
CommitLineData
31bd32f9 1use strict;
2use warnings;
3use Test::More 'no_plan';
4
5sub foo { $_[0] = $_[1]; (); }
6
f0655a28 7sub bar { is($_[0], 'yay', 'Var set ok by sub'); (); }
31bd32f9 8
f0655a28 9sub baz { () }
10
11sub quux { is($_[0], 'w00t', 'Var set ok by ='); (); }
12
13use Devel::BeginLift qw(foo bar baz quux);
31bd32f9 14
15foo(my $meep, 'yay');
16
17bar($meep);
f0655a28 18
19baz(my $lolz = 'w00t');
20
21quux($lolz);