473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error message during runtime

When I tried to run my application, it says

Global symbol "%files" requires explicit package name at c:\codes\testing2.pl line 9.

Can anybody tell me what does this means and how to I solve this? I googled it but I still dont get it.
Aug 12 '08 #1
4 1251
eWish
971 Expert 512MB
When you are using the strict pragma you have to declare your variables first. This is done using the my function.

Expand|Select|Wrap|Line Numbers
  1. use strict;
  2.  
  3. my %hash;
  4.  
------------------------------------------------------------
Pragmas (perl 5.8.8) used :
  • strict - Perl pragma to restrict unsafe constructs



--Kevin
Aug 12 '08 #2
KevinADC
4,059 Expert 2GB
When you are using the strict pragma you have to declare your variables first. This is done using the my function.

Expand|Select|Wrap|Line Numbers
  1. use strict;
  2.  
  3. my %hash;
  4.  
------------------------------------------------------------
Pragmas (perl 5.8.8) used :
  • strict - Perl pragma to restrict unsafe constructs



--Kevin
The code converter is no longer a virgin. :)
Aug 12 '08 #3
When I tried to run my application, it says

Global symbol "%files" requires explicit package name at c:\codes\testing2.pl line 9.

Can anybody tell me what does this means and how to I solve this? I googled it but I still dont get it.
try below code.

Remember whenever u r using use strict pragma u should declare all variables with my.

Expand|Select|Wrap|Line Numbers
  1. use strict;
  2.  
  3. my %files;
Aug 16 '08 #4
KevinADC
4,059 Expert 2GB
When I tried to run my application, it says

Global symbol "%files" requires explicit package name at c:\codes\testing2.pl line 9.

Can anybody tell me what does this means and how to I solve this? I googled it but I still dont get it.

try below code.

Remember whenever u r using use strict pragma u should declare all variables with my.

use strict;

my %files;
post your code perl, use code tags.
Aug 16 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
5
by: Bob Bamberg | last post by:
Hello All, I have been trying without luck to get some information on debugging the Runtime Error R6025 - Pure Virtual Function Call. I am working in C++ and have only one class that is derived...
17
by: MLH | last post by:
A97 Topic: If there is a way to preserve the values assigned to global variables when an untrapped runtime error occurs? I don't think there is, but I thought I'd ask. During development, I'm...
2
by: Maximus | last post by:
Hi Everyone, I was using Inprocess session objects, but incase of aspnet process crashes the session objects were lost as a result I decided to shift to out of porocess session objects. For this...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
2
by: menkaur | last post by:
I tried to generate asp Application project( I’m using VS .Net 2003). After I did ,following errors occurred (runtime):...
2
by: Kevin R. | last post by:
I have been ignoring this problem for a few weeks now, but it's becoming a bit annoying not to mention unproductive. Here it goes: I compile my project with no errors. Then after I debug/run it,...
2
by: Kevin Burton | last post by:
I have an aspx page that is generating the error below. I want to solve this problem but in general I would like to know how I might best approach problems like this. Any suggestions? Thank you....
0
by: aartinawani | last post by:
Hi I have an asp.net application running under Windows 2003 Server, IIS 6, for 2 years. Today, suddenly, the site went down at 3:38 pm and the application raised an error entitled "Server too...
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.