On Friday, June 1, 2001, at 04:17  PM, Danilo-Fanton Da Silva wrote:

> I think it's a silly question but I don't know how to fix it.
>
> In the .pl program I have a hash table of hash tables like:
>
> my %hash = {
> ������� id => {
> ������� ������� ������� class => '1030',
> ������� ������� ������� instance => '1.0.0987',
> ������� ������� �� },
> ������� attrs => {
> ������� ������� ������� ������� label => 'network',
> ������� ������� ������� ������� value => '20010',
> ������� ������� �������
> ������� ������� ������ },
> ������� };
>

You probably want

        my $hash = { ... }

Note that '$hash' instead of '%hash'. Or, if you insist on '%hash', use

        my %hash = ( ... )

Easy trap to fall into.


Marcel

--
We are Perl. Your table will be assimilated. Your waiter will adapt to
service us. Surrender your beer. Resistance is futile.
  -- London.pm strategy aka "embrace and extend" aka "mark and sweep"


Reply via email to