perl-Acme-DoOrDie-0.001-alt1.noarch.rpm


Advertisement

Description

perl-Acme-DoOrDie - do-file replacement that dies on errors

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-Acme-DoOrDie
Package version: 0.001
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 2.02 KB
Download size: 2.02 KB
Official Mirror: ftp.altlinux.org
Error handling for the `do(FILENAME)' built-in function is inconvenient. The main problem is that you need to examine more than just the return value to distinguish a file-not-found condition from a successful invocation of a file that ends with these two statements: $! = ENOENT; undef; (The the autodie manpage module can't help you since it doesn't support the `do' function.) This module provides the replacement function `do_or_die' that reports any error by throwing an exception. The same function is also available under the alias `do' (not exported by default).

Alternatives

Requires

  • /usr/share/perl5
  • rpmlib(PayloadIsLzma)

Provides

  • perl(Acme/DoOrDie.pm) = 0.001
  • perl-Acme-DoOrDie = 0.001-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      
    2. Update the package index:
      # sudo apt-get update
    3. Install perl-Acme-DoOrDie rpm package:
      # sudo apt-get install perl-Acme-DoOrDie

    Files

    • /usr/share/doc/perl-Acme-DoOrDie-0.001/README
    • /usr/share/perl5/Acme/DoOrDie.pm
    Advertisement
    Advertisement