> #!/usr/bin/perl -w
> use strict;
> my %test_hash = (
> one => 'no problem',
> two => 'still no problem'
> );
> print $test_hash{ one }; # prints 'no problem' (without quotes)
#!/usr/bin/perl -w
use strict;
my %test_hash = (
my one => 'no problem',
your two => 'still no problem'
);
print $test_hash{ my one }; # prints 'no problem' (without quotes)
^^^^^^^^^
Incorrect
#!/usr/bin/perl -w
use strict;
my %test_hash = (
'my one' => 'no problem',
'your two' => 'still no problem'
);
print $test_hash{ 'my one' }; # prints 'no problem' (without quotes)
^^^^^^^
Correct
My hashes are generally a bit more descriptive than 'one'...
Shawn
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]