- or download this
while (<CONFIG>) {
if (/^\s*#/) { # ignore comment line
...
warn "Ptooey: Could not parse config line: $_\n";
}
}
- or download this
} elsif (/(\w+)\s*=\s*[<]{2}(\w+)/) { # heredoc
(my $name, local $/) = ($1, $2);
$config{$name} = <CONFIG>;
- or download this
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}}
split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/