use strict; [...] while() { if(! (/^[\#;]/ || /^\s*$/)) { /^\s*(\S*)\s*=?\s*(.*?)\s*$/; our $$1 = $2; }