Mailing List Archive

NASL Hashes
Hello All,



If I make a hash using the following command:



myhash = make_array('va_4',"did this work");



How would I push addition information into hash (myhash) while retaining the original information??



Thanks,

Paul
Re: NASL Hashes [ In reply to ]
On Sat, 13 Jan 2007 01:26:31 -0600
"Paul Bellefeuille" <nessusd@nemesis316.com> wrote:

> If I make a hash using the following command:
> myhash = make_array('va_4',"did this work");

If this is so simple, you can just write:
myhash['va_4'] = "did this work";

> How would I push addition information into hash (myhash) while
> retaining the original information??

myhash['answer'] = 42;

Now myhash contains two elements.
_______________________________________________
Plugins-writers mailing list
Plugins-writers@list.nessus.org
http://mail.nessus.org/mailman/listinfo/plugins-writers