in reply to Transform hash elements into a string
#! /usr/bin/perl use strict; use warnings; my %hash = ( 'description' => '$description', 'new-role-name' => '$new-role-name', 'role-name' => '$role-name', ); my $param = join(q{, }, map{qq{$_ => $hash{$_}}} keys %hash); print $param;
role-name => $role-name, new-role-name => $new-role-name, description +=> $description
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Transform hash elements into a string
by FloydATC (Deacon) on Aug 20, 2010 at 11:26 UTC |