in reply to Creating a dynamic hash from an array

Hello Buddyhelp,

If I understand your question correctly, you don’t need the hash at all. Simply code the subroutine as follows:

sub CreateString { my ($self, $nametag, $name, @params) = @_; my $string = "A|$nametag|Command|$name"; $string .= "|$_" foreach @params; return $string; }

and call it like this:

my $InputRequest = $Obj->CreateString('tag-1', 'name-1', @params);

HTH,

Athanasius <°(((><contra mundum