Mega Code Archive

 
Categories / Perl / Language Basics
 

Requires the package created above and calls the subroutine declared within it

package Nothing;     sub doNothing     {        print "This package does nothing!\n";     }     1; #########################################     #!/usr/local/bin/perl -w     # Use the package nothing.     require "Nothing.pl";     # Call the subroutine doNothing inside the package Nothing.     Nothing::doNothing();