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

"explicit" problem clarification

Expand Messages
  • barjesse37
    My difficulty is this: In this code foreach my $coded (sort keys %main::codestructure) { foreach my $wording (sort $main::codestructure{@coded}) { print
    Message 1 of 1 , Aug 4, 2008
      My difficulty is this:
      In this code

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

      I receive this error

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

      (line 111 being the 2nd foreach line)
      Can anyone help me?
    Your message has been successfully submitted and would be delivered to recipients shortly.