Here’s my string:
NANA TEKA KAOE FLASK LSKK
How do I make it so that it’ll look like this:
HASH = {NANA => undef, TEKA => undef, KAOE => undef, ...
Of course I could always split this into an array first
then loop through each value then assign them as hash
keys… but If there’s a shorter/simpler way to do that?
Thanks in advance!
@hash{ split /\s+/, $string } = ();