in reply to Re: Re: Z80 Assembler -> Hex Opcode
in thread Z80 Assembler -> Hex Opcode
With the example I posted %opcodes is in main::, so too the sub is in main:: - ergo and therefore same scope, no errors, runs as posted. You don't need the use vars *and* the my declaration for %opcodes. One or the other will pacify strict...
# declare this in implicit main:: package my %here = ( in => ' main' ); run(); sub run { # we are still in main:: here, so we can access %hash just fine print "I am still ", %here }
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Z80 Assembler -> Hex Opcode
by Elgon (Curate) on Feb 09, 2003 at 14:58 UTC | |
by tachyon (Chancellor) on Feb 09, 2003 at 15:41 UTC |