Hi, A stupid question.. can someone explain to me why this won't work ? I have searched through docs and tutorials but can't really find this problem in any OO-docs.
I have a file called "db" or something, with this contents: $data[0] = \bless( {'data1' => 'foo', 'data2' => 'bar'}, 'TFB'); $data[1] = \bless({'data1' => 'bla', 'data2' => 'sdjksd'}, 'TFB'); Then I have a package called TFB where I have this piece of code: .. [stripped code] ... sub show { my $inv = shift; print $inv->{data1}; } ..[stripped code]... And another package with this code: ..[stripped code]... sub open { my $inv = shift; our @data; do "db"; $data[0]->show; # This won't work, it sais "Can't call method "show" on unblessed reference" } ..[stripped code]... So I tried to change $data[0]->show to print $data[0]{data1} then it said "Not a HASH reference".. I guess I have missed something REALLY basic here, could anyone please explain what I have to do and why? TIA, Pontus Leitzler -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]