in reply to Re^2: Convert delimited string into nested data structure
in thread Convert delimited string into nested data structure

If your keys are well-behaved, then this will do the trick:
while (<>) { chomp; s!\s*/\s*!}{!g; eval "\$h\{$_\} = 1;"; }

Replies are listed 'Best First'.
Re^4: Convert delimited string into nested data structure
by merlyn (Sage) on Feb 19, 2007 at 20:21 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
    A reply falls below the community's threshold of quality. You may see it by logging in.