in reply to Re: how do i pass values entered in the textfield into a hash ?
in thread How do I pass values entered in the textfield into a hash?
chromatic points out that split(/\s*=>\s*/) is is a shorter and more efficient solution to the whitespace problem:
foreach (split /,\s*/, param('hashdata')) { my ($k, $v) = split(/\s*=>\s*/); $hash{$k} = $v; }
I have to agree :-(
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|