X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/7509565253b19493771cfc2e13ab166f1a8cc5f8..c8e35e0b2ab35f8af3d98fa0b69c41a73b62c714:/PLP/Functions.pm diff --git a/PLP/Functions.pm b/PLP/Functions.pm index 61d145d..1b233c4 100644 --- a/PLP/Functions.pm +++ b/PLP/Functions.pm @@ -217,6 +217,16 @@ Some context examples: Executes another PLP file, that will be parsed (i.e. code must be in C<< <: :> >>). As with Perl's C, the file is evaluated in its own lexical file scope, so lexical variables (C variables) are not shared. PLP's C<< <(filename)> >> includes at compile-time, is faster and is doesn't create a lexical scope (it shares lexical variables). +Include can be used recursively, and there is no depth limit: + + + <: + include 'crash.plp'; + # This example will loop forever, + # and dies with an out of memory error. + # Do not try this at home. + :> + =item include FILENAME An alias for C.