Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Perl

Idiom #127 Source code inclusion

Import the source code for the function foo body from a file "foobody.txt".

sub foo {
    do './foobody.txt';
}
void foo()
{
#include "foobody.txt"
}

Same as C++

New implementation...
< >
MLKo