>
> You have correctly declared the variable $guess, but you are using
> $quess here, which doesn't exist. That is the sort of thing 'use strict'
> is good at finding for you!
>
Oh my goodness! Maybe that is a sign it is time to call it a night!
Thanks all! Not sure why I couldn't see that.
Chri
On 04/10/2011 03:59, Chris Stinemetz wrote:
Can someone tell me why I am getting the following error?
Global symbol "$quess" requires explicit package name at ./ex10-1.pl line 18.
Execution of ./ex10-1.pl aborted due to compilation errors.
I declare $guess inside the while loop. Shou
Chris Stinemetz wrote:
Can someone tell me why I am getting the following error?
Global symbol "$quess" requires explicit package name at ./ex10-1.pl line 18.
Execution of ./ex10-1.pl aborted due to compilation errors.
I declare $guess inside the while loop. Shouldn't that suffi
Can someone tell me why I am getting the following error?
Global symbol "$quess" requires explicit package name at ./ex10-1.pl line 18.
Execution of ./ex10-1.pl aborted due to compilation errors.
I declare $guess inside the while loop. Shouldn't that suffice for the
rest of the sc
Shit!!
Thanks,
How asinine of me.
From: Алексеев Александр
To: Soham Das
Cc: beginners@perl.org
Sent: Tuesday, 29 September, 2009 2:52:26 PM
Subject: Re: Use Strict, Perl 5.10 and Global Symbol requires explicit package
name
@dates and %dates are two
Why does, Line a throw a compiler error, "Global Symbol @dates requires explicit
package name" while Line b throws the same error if I do just the opposite. Change
the curly to sqaures.
Btw, I can't do away with use strict directive.
Moreover, is there a better, more elegant way to
ne a, I have changed from square brackets
to curly brackets for the hash work. The exactly same thing, is also done in
Line #b.
Why does, Line a throw a compiler error, "Global Symbol @dates requires
explicit package name" while Line b throws the same error if I do just the
op
On Apr 29, 8:40 am, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote:
> hotkitty wrote:
> > I've fixed the issue by reinstalling PERL. However, I am now getting
> > the error message saying: Use of uninitialized value in pattern match
> > (m//) at cctest.pl line 26.
> > (Line 26 is "if ($tag = "a href"
hotkitty wrote:
I've fixed the issue by reinstalling PERL. However, I am now getting
the error message saying: Use of uninitialized value in pattern match
(m//) at cctest.pl line 26.
(Line 26 is "if ($tag = "a href" && "
I already addressed that issue.
http://www.mail-archive.com/beginners%4
On Apr 28, 8:43 am, [EMAIL PROTECTED] (Rob Dixon) wrote:
> hotkitty wrote:
> > I'm trying to extract links from a website but get the following
> > error:
>
> > Global symbol "%Config" requires explicit package name at C:/Perl/lib/
> > Errno.pm l
>
Thanks for the help. It was an install issue. I reinstalled Perl and
now script works fine. Thanks again for the responses!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
hotkitty wrote:
> I'm trying to extract links from a website but get the following
> error:
>
> Global symbol "%Config" requires explicit package name at C:/Perl/lib/
> Errno.pm l
> ine 11.
> Global symbol "%Config" requires explicit package name a
Gunnar Hjalmarsson wrote:
hotkitty wrote:
I'm trying to extract links from a website but get the following
error:
Global symbol "%Config" requires explicit package name at C:/Perl/lib/
Errno.pm l
ine 11.
Global symbol "%Config" requires explicit package name at C:/Pe
hotkitty wrote:
I'm trying to extract links from a website but get the following
error:
Global symbol "%Config" requires explicit package name at C:/Perl/lib/
Errno.pm l
ine 11.
Global symbol "%Config" requires explicit package name at C:/Perl/lib/
Errno.pm l
ine 1
J. Peng wrote:
On Sun, Apr 27, 2008 at 12:11 PM, hotkitty <[EMAIL PROTECTED]> wrote:
Here's the script (which I got from a YouTube
video...it seemed to work for him):
No. If this is the original script, it can't work even for the author.
You 'require strict' and 'use warnings' but for all va
On Sun, Apr 27, 2008 at 12:11 PM, hotkitty <[EMAIL PROTECTED]> wrote:
> I'm trying to extract links from a website but get the following
> error:
>
> Global symbol "%Config" requires explicit package name at C:/Perl/lib/
> Errno.pm l
>
> What am I
I'm trying to extract links from a website but get the following
error:
Global symbol "%Config" requires explicit package name at C:/Perl/lib/
Errno.pm l
ine 11.
Global symbol "%Config" requires explicit package name at C:/Perl/lib/
Errno.pm l
ine 11.
Global symbol &q
On Sat, Jun 28, 2003 at 03:51:49PM +0200, Kevin Pfeiffer wrote:
> In article <[EMAIL PROTECTED]>, John W. Krahn wrote:
> [...]
> > Perhaps this article may help you understand.
> >
> > http://perl.plover.com/FAQs/Namespaces.html
>
> I've read this before (but it pays to reread it) and this time I
In article <[EMAIL PROTECTED]>, John W. Krahn wrote:
[...]
> Perhaps this article may help you understand.
>
> http://perl.plover.com/FAQs/Namespaces.html
I've read this before (but it pays to reread it) and this time I also read the "Seven
Useful Uses of local". One thing MJD demonstrates is a
looks something like thing:
> Use strict;
> $strg = "A string";
> $strg2 = "a second string";
>
> I get a warning:
> "Global symbol require explicit package name."
The warning is telling you to add the package name to the variable which
in this case
ot;A string";
$strg2 = "a second string";
I get a warning:
"Global symbol require explicit package name."
unless I declare the variables like:
my $strg = "A string";
my $strg2 = "a second string";
Thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hello guy!
I would like to know why I need to declare global variables with "my".
My script looks something like thing:
Use strict;
$strg = "A string";
$strg2 = "a second string";
I get a warning:
"Global symbol require explicit package name."
unless
Hi Shaunn,
> my $sql="SELECT
> name,
> tbname
> from sysibm.syscolumns
> where tbname = 'local_table';
--^
You forgot the closing double quotes.
You either need to have the query all on one line or concatenate it:
my $sql = ( "SELECT name, tbname FROM sysibm.syscolumn
Johnson, Shaunn said:
> Howdy:
>
> Can someone tell me why I keep getting the errors:
> [snip error]
> D:\PERL\BIN\MY_SCPTS>db2_test1.pl
> syntax error at D:\PERL\BIN\MY_SCPTS\db2_test1.pl line 35, near "my"
> Global symbol "$sth" requires explicit
Howdy:
Can someone tell me why I keep getting the errors:
[snip error]
D:\PERL\BIN\MY_SCPTS>db2_test1.pl
syntax error at D:\PERL\BIN\MY_SCPTS\db2_test1.pl line 35, near "my"
Global symbol "$sth" requires explicit package name at
D:\PERL\BIN\MY_SCPTS\db2_
test1.pl line
25 matches
Mail list logo