#!/usr/bin/perl use strict; use warnings; require 'test2.pl'; sub test { print "foo\n"; }