Now rather than using e.g. $inc_year, you use $inc{year}.my %inc = map { $content =~ /inc_$_(.*?)\n/; $_ => $1 } qw(albums genres artists sonfs ratings year);
The same pattern can be used for the exclusions.
In reply to Re: Changing variable names in a loop
by morgon
in thread Changing variable names in a loop
by Mad_Mac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |