Quite so. Well spotted Wiggins. The documentation is trying to say that if you need to use multiple tables of network blocks you can declare them explicitly with
$table = {} and pass the table to the function with $block->storeNetblock($table) but if you only need one table it will create it foe you implicitly and you can just call $block->storeNetblock Glad we got to the bottom of this. R ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Marija Silajev" <[EMAIL PROTECTED]>; "Rob Dixon" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 4:37 PM Subject: Re: References > Yikes, see inline. > > > ------------------------------------------------ > On Wed, 27 Nov 2002 16:02:49 +0100, Marija Silajev <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > What I am trying to do is just to understand better why do I get an > > error message. > > Actually I use Net::Netmask module, and there I simply just do as the > > README file says. > > > > > > $block =new Net::Netmask ($network_block); > > > > $table = {}; > > > > $block -> storeNetblock([$table]); > > > > This is poorly written documentation. By placing the $table inside of [] they are saying that it is optional, you don't have to supply an argument. Rather than saying what we all thought was weird, that is an array reference containing one element that is an empty hash ref. Try just doing: > > $block->storeNetblock($table); > > Or leaving the $table out all together... > > http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]