in reply to Trying to learn how to build a module
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";
|
---|