5 open(FILE, "<$filename") || die "$!";
10 # Ignore empty lines and comments
13 if (my ($key, $value) = m/^([^ ].*): (.*)/) {
14 $parsed{$key} = $value;
20 $parsed{$lastkey} .= $_;
22 die "Cannot parse $!";
26 if (not exists $parsed{Description}) {
27 $parsed{Description} = $parsed{Name}
30 ($parsed{Path}, $parsed{Args}) = split(/\s/,$parsed{Exec});