Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Problems with 'our' definition with perl 5.00503

by cosmicperl (Chaplain)
on Jun 30, 2005 at 14:37 UTC ( [id://471341]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Problems with 'our' definition with perl 5.00503
in thread Problems with 'our' definition with perl 5.00503

Ok, almost there
The project is a constant work in progress, most of the our definitions could be changed to my, but will need our in the future. All 'our's that need to be global right now have a corrosponding VARS placement so that shouldn't cause any problem.

I'm not using strict at this stage in this particular script. That code looks almost like what I need, but without referencing my on any our calls.
The main errors I'm getting is something like this:-
"our %hash;" - error illegal modulas of 0. Because our isn't defined it's treating % as a modulas.

I'm sure the solution is quite simple, I just don't quite know how to do it.
The host has got back to me saying the server is part of a nest and they don't want to upgrade all of them, but I'm still trying.

Thanks in advance.

Replies are listed 'Best First'.
Re^4: Problems with 'our' definition with perl 5.00503
by tilly (Archbishop) on Jun 30, 2005 at 17:06 UTC
    If you have a corresponding VARS placement, then you should definitely not be using our, and if you don't need it to be global then you should also not be using our. Just because the feature exists does not mean that it is appropriate. See Why is 'our' good? for some arguments that may convince you to solve your problem by using our less.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://471341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-03-29 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found