in reply to hashes frustration
I can then access the name bymy $db = tie %database, 'DB_File', "simpleinsert.dat",O_CREAT | O_RDWR +, 0666 or die "Cannot initialise database"; $database{'anthony1'}=new contacts_db('anthony', 'ant@hot', '14 road', '102892', '34567')->pack();
this then returns 'anthony'.my $person = new contacts_db($database{'anthony1'}); $person->unpack_name();
but if i put
nothing is brought back, why??????????$database{'anthony1'}->unpack_name();
-- Casey I am a superhero.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re-post: hashes frustration
by Perlmage (Acolyte) on Sep 14, 2000 at 18:23 UTC | |
|
RE: Re-post: hashes frustration
by cwest (Friar) on Sep 14, 2000 at 17:42 UTC |