print keys(%newPackage::),"\n"; print "\n\n"; require 'newPackage.pl'; #exporting the package namespace. newPackage::subroutine1; package newPackage; #creating the package and its namespace sub subroutine1 {print "*This is a new package called from within the file*\n";} ####