diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-12-28 17:15:34 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-12-28 17:15:34 -0600 |
commit | a34c723255bcc33e331a093f2df4a557fb117760 (patch) | |
tree | e100ef72c54b269a3c7c4ef597f0a90e9fc2356f /lib/Bread | |
parent | a5e691813e5ffc37142186a352a48eaf9a5bb564 (diff) | |
download | p6-bread-board-a34c723255bcc33e331a093f2df4a557fb117760.tar.gz p6-bread-board-a34c723255bcc33e331a093f2df4a557fb117760.zip |
implement include
Diffstat (limited to 'lib/Bread')
-rw-r--r-- | lib/Bread/Board.pm | 5 |
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 |