in reply to including another perl file
There's no need for eval evil or source filter trickery. The simplest method for this is to use perl's own include mechanism.
It's named do 'file;.
included.pl
our %b; @b{'a'..'z'} = 1 .. 26;
#! perl -slw use strict; use Data::Dumper; do 'included.pl'; ## Perl's include. our %b; print Dumper \%b;
|
|---|