Hello everyone. Last Friday I finally found a good compiler for PERL and the "shebang" line I think I need to run. They might not be running on a server but certainly they compiling well on my hard drive.
So that's great.
[CODE=perl]
#!C:\perl\bin\
use strict;
use warnings;
$wordCount = $wordCount +1;
$calc1 = 1+1;
$bookTitle;
$name = "Jonnie";
$sentence = "Ask " . $name . " about Football";
print "The length of the string is $wordCount\n";
print "The second scalar returns a value of $calc1 ";
$theLine = $_;
print "The title of the Book is confirmed as $bookTitle\n";
print 'The title of the Book was stored in the scalar, $bookTitle';
print "\nwin", "dows";
print "\n$sentenc e";
print "\n\U$sentence" ;
print "\nYou can contact me via email on jonniegrieve\@y ahoo.com";
[/CODE]
with the above code, it compiles very well but only when i do not include strict and warnings up there in the code. I've looked it up as best as i can but can anyone tell me what they do
[code=perl]Global symbol "$wordCount " requires explicit package name at first.pl line 6.
Global symbol "$wordCount " requires explicit package name at first.pl line 6.
Global symbol "$calc1" requires explicit package name at first.pl line 7.
Global symbol "$bookTitle " requires explicit package name at first.pl line 8.
Global symbol "$name" requires explicit package name at first.pl line 9.
Global symbol "$sentence" requires explicit package name at first.pl line 10.[/code]
So that's great.
[CODE=perl]
#!C:\perl\bin\
use strict;
use warnings;
$wordCount = $wordCount +1;
$calc1 = 1+1;
$bookTitle;
$name = "Jonnie";
$sentence = "Ask " . $name . " about Football";
print "The length of the string is $wordCount\n";
print "The second scalar returns a value of $calc1 ";
$theLine = $_;
print "The title of the Book is confirmed as $bookTitle\n";
print 'The title of the Book was stored in the scalar, $bookTitle';
print "\nwin", "dows";
print "\n$sentenc e";
print "\n\U$sentence" ;
print "\nYou can contact me via email on jonniegrieve\@y ahoo.com";
[/CODE]
with the above code, it compiles very well but only when i do not include strict and warnings up there in the code. I've looked it up as best as i can but can anyone tell me what they do
[code=perl]Global symbol "$wordCount " requires explicit package name at first.pl line 6.
Global symbol "$wordCount " requires explicit package name at first.pl line 6.
Global symbol "$calc1" requires explicit package name at first.pl line 7.
Global symbol "$bookTitle " requires explicit package name at first.pl line 8.
Global symbol "$name" requires explicit package name at first.pl line 9.
Global symbol "$sentence" requires explicit package name at first.pl line 10.[/code]
Comment