in reply to Trying to learn how to build a module

Hi
Just one week ago I started writing my first module, thus my knowledge may not be that of a Saint ...
Nevertheless
First I believe you have to give your module a name by provding a line like

package mytest;

Then I understood that an instance of that Class/Package would keep it's contents in a hash, thus I'd put the name-variable in this hash:

sub new { my $class = shift; my $self = {}; my $self->{name} = ""; # later assign this var with 'Yoda' bless $self,$class; return $self; }

Hope this helps.

Regards
Stefan K

$dom = "skamphausen.de"; ## May The Open Source Be With You! $Mail = "mail@$dom; $Url = "http://www.$dom";