Hello This seems like it should be easy, but I haven't found a nice solution yet. What is happening Basically I am receiving input where each line has an unknown number of elements separated by "/". example input line a/b/c/d/e Each input line will result in a new hash like $hash{$a}{$b}{... = value Not sure how to properly create the hash when I have an unknown number of elements per line I could put @fields through a foreach loop, but that seems like a lot of redundant hash keys created and wasted cpu cycles to get to the finial key/value assignment
while (<>) { chomp; @fields = split /\//, $_;
In reply to Assign a value to a hash of unknown nodes by jigglermwm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |