- or download this
...
Name=foo
Icon=bar
Categories=a;b;c
...
- or download this
#!/usr/bin/perl -w
use strict;
...
my $val = qq#prog "$collect{name}" $collect{icon} $collect{exec}#;
### More code follows
- or download this
# 'categories' entry is 'GNOME;Games;Action'
push $out{GNOME}{Games}{Action}, $val;
# 'GNOME;Games;Action;FPS'
push $out{GNOME}{Games}{Action}{FPS}, $val;
# ...and so on.
- or download this
my @levels = split /;/, $collect{categories};
for (0 .. $#levels) {
...
use Data::Dumper;
print Dumper($out);