Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Global symbol requires explicit package name

by marto (Cardinal)
on Nov 08, 2007 at 11:30 UTC ( [id://649689]=note: print w/replies, xml ) Need Help??


in reply to Global symbol requires explicit package name

Do you have use strict; use warnings; in your code? You have assigned values to %specification then query %specifications. You seem to have learned nothing from your years of asking questions such as (if not almost identical) to this here. Are you just trolling?

Martin

Update: 11:44am Win has updated his post with the following:

"NB: Use warnings and use strict are used in my code.

Marto failed to see the error"

How can this be the case when I have pointed out what you have done wrong?

Replies are listed 'Best First'.
Re^2: Global symbol requires explicit package name
by bart (Canon) on Nov 08, 2007 at 11:45 UTC
    Of course he's using use strict;, or otherwise he wouldn't get that error message.

    But apparently it's not clear to him what it means. I can't really blame him, I find this error message quite unclear myself. But after a long time of seeing this kind of error message, you eventually get used to it.

      Its not a pair of shoes. If you're using strict, read the documentation.
        try to be helpful instead of pretending to be smart. Newbees are coming here all the time. your answer is worthless to say the least. How a bout a reaason why and an example how not to have the problem again or dont bother responding.
Re^2: Global symbol requires explicit package name
by djshultz (Initiate) on May 23, 2012 at 18:15 UTC
    You appear to be attempting to assign to a scalar from a hash key (also a scalar)
    Instead of: my $x_axis_label = %specifications{'Central_comparisons'}{'Primary'}; Try: my $x_axis_label = $specifications{'Central_comparisons'}{'Primary'};
    same for the second line.
Re^2: Global symbol requires explicit package name
by Anonymous Monk on Jul 18, 2012 at 14:03 UTC
    I'm a dev with serious background in Ja.. some other language and I was trying to understand a small program I found written in perl. Founding this kind of comment was like a signal to run away from Perl as fast and far as possible. Hopefully there are some other comments a bit friendler...

      Well I'm glad you're keeping things in perspective, judging a language based on one comment for which you have no context. I'm sure there are no posts relating to Java (or known trolls on Java forums) which could be taken out of context at all.

      You are missing context! If this was a remark to someone who just came to the site and was genuinely new to the language, it would definitely be way too harsh, but this was not the case. Win had been here since 2003 and well ... at times had been rather annoying. Now that wording of that error message is rather ... erm ... unfortunate, but after several years of programming in Perl ...

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-23 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found