in reply to Basic Perl passing a temp array
change this line:
toaddHost('aklia700',qw(carrot lunch));
have a look at perldoc perlref (what you are wanting is an anonymous array)addHost('aklia700',[qw(carrot lunch)]);
-enlil
|
---|
In Section
Seekers of Perl Wisdom