Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
basic test for calling p5 subs
  • Loading branch information
pmurias committed Oct 20, 2011
1 parent 7dd36e1 commit f6d832a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S01-perl-5-integration/subs.t
@@ -1,4 +1,7 @@
use v6;
use Test;
my &foo := eval('sub foo {432}',:lang<perl5>);
my &foo := eval('sub {432}',:lang<perl5>);
is foo(),432,"calling subs works";

my $foo = eval('sub {432}',:lang<perl5>);
is $foo(),432,"calling subs stored in variables works";

0 comments on commit f6d832a

Please sign in to comment.