- or download this
use Modern::Perl;
my @t = qw(name John number 7 status unknown);
...
$str .= '&' if @t;
}
say $str;
- or download this
use Modern::Perl;
use URI::Escape qw/uri_escape/;
...
$str .= '&' if @t;
}
say $str;
- or download this
use Modern::Perl;
use URI::Escape qw/uri_escape/;
...
map { sprintf '%s=%s', uri_escape($_), uri_escape($th{$_}) }
keys %th;
say $str;