Greetings
So I have a string (read from a file) that has sections; so 1 line says SECTION 1 and its values follows in the next lines, until SECTION 2, and so on...I splited the string like this:
my @groups = split /(SECTION \d+)/$string;
Is there a way of automatically assing to an hash array its respective values, that is, create an hash array where
contains the respective values without a simple loop?$hasharray["SECTION 1"]
Kind regards
KeplerIn reply to Regex to array by kepler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |