summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-12-28 17:15:34 -0600
committerJesse Luehrs <doy@tozt.net>2012-12-28 17:15:34 -0600
commita34c723255bcc33e331a093f2df4a557fb117760 (patch)
treee100ef72c54b269a3c7c4ef597f0a90e9fc2356f /lib
parenta5e691813e5ffc37142186a352a48eaf9a5bb564 (diff)
downloadp6-bread-board-a34c723255bcc33e331a093f2df4a557fb117760.tar.gz
p6-bread-board-a34c723255bcc33e331a093f2df4a557fb117760.zip
implement include
Diffstat (limited to 'lib')
-rw-r--r--lib/Bread/Board.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Bread/Board.pm b/lib/Bread/Board.pm
index 1132fd3..1934ec0 100644
--- a/lib/Bread/Board.pm
+++ b/lib/Bread/Board.pm
@@ -451,4 +451,9 @@ sub wire_names (*@names) is export {
return @names.map(-> $name { $name => depends_on($name) }).hash;
}
+sub include (Str $path) is export {
+ my $contents = slurp $path;
+ eval $contents;
+}
+
# vim:ft=perl6:foldmethod=manual