is there any way to make flat file from some of scripts ?

Hello
is there any way to if lets say i have main.pl script , but i have 3 includes in this perl script
now i will like to some how to treat this main.pl and its includes files as single file
something like -E (Preprocess only; do not compile, assemble or link) in the c compilers .
in short i will like to see in one flatfile all the content of the include files.