Re: explicit package name

2011-10-03 Thread Chris Stinemetz
> > 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

Re: explicit package name

2011-10-03 Thread Rob Dixon
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

Re: explicit package name

2011-10-03 Thread John W. Krahn
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

explicit package name

2011-10-03 Thread Chris Stinemetz
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

Re: Use Strict, Perl 5.10 and Global Symbol requires explicit package name

2009-09-29 Thread Soham Das
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

Re: Use Strict, Perl 5.10 and Global Symbol requires explicit package name

2009-09-29 Thread Алексеев Александр
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

Use Strict, Perl 5.10 and Global Symbol requires explicit package name

2009-09-29 Thread Soham Das
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

Re: Getting error - Global signal requires explicit package name

2008-05-01 Thread hotkitty
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"

Re: Getting error - Global signal requires explicit package name

2008-04-29 Thread Gunnar Hjalmarsson
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

Re: Getting error - Global signal requires explicit package name

2008-04-29 Thread hotkitty
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 >

Re: Getting error - Global signal requires explicit package name

2008-04-29 Thread hotkitty
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/

Re: Getting error - Global signal requires explicit package name

2008-04-28 Thread Rob Dixon
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

Re: Getting error - Global signal requires explicit package name

2008-04-27 Thread Gunnar Hjalmarsson
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

Re: Getting error - Global signal requires explicit package name

2008-04-27 Thread Gunnar Hjalmarsson
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

Re: Getting error - Global signal requires explicit package name

2008-04-27 Thread Gunnar Hjalmarsson
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

Re: Getting error - Global signal requires explicit package name

2008-04-27 Thread J. Peng
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

Getting error - Global signal requires explicit package name

2008-04-27 Thread hotkitty
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

Re: Why "Global symbol require explicit package name"

2003-06-28 Thread Paul Johnson
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

Re: Why "Global symbol require explicit package name"

2003-06-28 Thread Kevin Pfeiffer
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

Re: Why "Global symbol require explicit package name"

2003-06-27 Thread John W. Krahn
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

Re: Why "Global symbol require explicit package name"

2003-06-27 Thread George Schlossnagle
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

Why "Global symbol require explicit package name"

2003-06-27 Thread Babale Fongo
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

RE: explicit package name errors

2002-11-06 Thread ss004b3324
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

Re: explicit package name errors

2002-11-06 Thread Paul Johnson
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

explicit package name errors

2002-11-06 Thread Johnson, Shaunn
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