removing error meesage when using sctrict

B

Ben

Hi,

I wrote a simple script (45 lines, no functions) that defines some
variables. I decided to "use strict" for a change and it came up with
errors along the following lines:

Global symbol "$ofile" requires explicit package name at ./fileParser.pl
line 43

Is there any way I can remove the error without going through the file
and replacing the variables with $main::variable?

Thanks,
Ben
 
J

John Bokma

Ben said:
Hi,

I wrote a simple script (45 lines, no functions) that defines some
variables. I decided to "use strict" for a change and it came up with
errors along the following lines:

Global symbol "$ofile" requires explicit package name at ./fileParser.pl
line 43

my $ofile;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top