Help for this page

Select Code to Download


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