- or download this
#!/usr/bin/perl
# script test_main.pl
...
my $var = test1::abc('test.pl');
print $var,"\n";
- or download this
# file test1.pm
package test1;
...
my $file = shift;
my $variable = do $file;
}
- or download this
# file test.pl
my $time = scalar localtime time;
$time;