- or download this
collect '//server/corion/images/';
output '/home/corion/imagestream/output';
...
prefer '.svg' => '.jpg';
prefer '.svg' => '.png';
prefer '.cr2' => '.jpg';
- or download this
sub collect($) {
push @image_directories, @_;
...
push @prefer_format, [@_];
};
...
- or download this
my $spec = {
collect => {
...
},
# ...
};
- or download this
my %handler;
for my $item (values %$spec) {
...
warn $err;
return
};
- or download this
use Scope::Guard qw(guard);
{
...
# ...
}
# Scope::Guard executes our guard blocks here
- or download this
local @{My::App}{keys %handler} = values %handler;
# Can't modify glob elem in local at ...
- or download this
for my $n (keys %handler) {
local *$n = $handler{ $n };
}
# no handlers defined here anymore
- or download this
my ($ok,$err);
my $cfg_str = join ";\n",
...
warn $err;
return
};
- or download this
...
{
...
$err = $@;
}
...