To allow end of line comments and remove newlines from the "value" part. Removing trailing spaces is left as an exercise to the reader :-)m[^([^#][^=]+)=([^#\n]*)] and $config{ $1 } = $2 while <DATA>;
In reply to Re^2: split line and populate hash shortcut ?
by traveler
in thread split line and populate hash shortcut ?
by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |