Hello, All
I seem to be getting an error I don't quite understand.
Can someone point out why I'm geeting this error?
The first error states: unquoted string "subroutines" may clash with
future reserved word at NPtest.pl line 6.
after I quote "subroutines" I get an error that states:
syntax error at NPtest.pl line 6, near "require"
Execution of NPtest.pl aborted due to compilation errors.
Heres the first script: #!/usr/bin/perl
# NEWPACKAGE.pl
package NEWPACKAGE
sub printing1 {print "duh duh duh.\n"}
sub printing2 {print "duh duh duh.\n"}
sub printing3 {print "duh duh duhl.\n"}
return 1;
Heres the second script: # Creating a New Perl script that utilizes
NEWPACAKGE subroutines
# Need to Tell Perl to include
NEWPACKAGE
use warnings;
subroutines
require 'NEWPACKAGE.pl';
print "duh duh duh...:\n";
NEWPACKAGE::printing1();
NEWPACKAGE::printing2();
NEWPACKAGE::printing3();
# End
print "Press <ENTER> to continue...";
<>
Thanks so much for your Help!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>