Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] "requires explicit package name"

Expand Messages
  • merlyn@stonehenge.com
    ... barjesse37 My difficulty is this: barjesse37 In this code barjesse37 foreach my $coded (sort keys %main::codestructure) { barjesse37 foreach my
    Message 1 of 2 , Aug 4, 2008
    • 0 Attachment
      >>>>> "barjesse37" == barjesse37 <barjesse37@...> writes:

      barjesse37> My difficulty is this:
      barjesse37> In this code

      barjesse37> foreach my $coded (sort keys %main::codestructure) {
      barjesse37> foreach my $wording (sort $main::codestructure{@coded}) {
      barjesse37> print "\t\t$coded\t$wording\n";
      barjesse37> print "\n";
      barjesse37> };
      barjesse37> };

      barjesse37> I receive this error

      barjesse37> Global symbol "@coded" requires explicit package name at codest08.pl
      barjesse37> line 111.

      Yes. Where is the declaration for @coded, which has nothign to do with
      your $coded. Perl is rightfully being annoyed.

      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
      See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
    Your message has been successfully submitted and would be delivered to recipients shortly.