perl-Backtick-AutoChomp-0.02-alt1.noarch.rpm


Advertisement

Description

perl-Backtick-AutoChomp - auto-chomp() result of backtick(``) and qx//

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Backtick-AutoChomp
Package version 0.02
Package release alt1
Package architecture noarch
Package type rpm
Installed size 3.75 KB
Download size 3.75 KB
Official Mirror ftp.altlinux.org
In bash, the shell will automatically chomp the result of a backtick call.
s=`whoami`       # me
echo =$s=        # =me=
echo =`whoami`=  # =me=
In perl, we must** do:
$s = `whoami`;
chomp($s);
print "=$s=";
The goal of this module is for this to DWIM:
print "=".`whoami`."=";
Another case where this is potentially useful:
use Backtick::AutoChomp;
printf "me(%s), host(%s), kernel(%s), date(%s)\n",
`whoami`,
`hostname`,
`uname -r`,
`date`,
;
** Yes, there are pure-perl ways to do *whoami*, *hostname*, etc.  But keep in mind programs that don't have equivalents ... and also, especially for temp/quick-n-dirty scripts, the convenience factor :)
Note that this is implemented as a source filter. It replaces a backtick or qx statement with a `do{}' statement.

Alternatives

Package Version Architecture Repository
perl-Backtick-AutoChomp - - -

Requires

Name Value
/usr/share/perl5 -
perl(Filter/Simple.pm) -
perl(PPI.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Backtick/AutoChomp.pm) = 0.020
perl-Backtick-AutoChomp = 0.02-alt1

Download

Type URL
Binary Package perl-Backtick-AutoChomp-0.02-alt1.noarch.rpm
Source Package perl-Backtick-AutoChomp-0.02-alt1.src.rpm

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-Backtick-AutoChomp rpm package:
    # sudo apt-get install perl-Backtick-AutoChomp

Files

Path
/usr/share/doc/perl-Backtick-AutoChomp-0.02/Changes
/usr/share/doc/perl-Backtick-AutoChomp-0.02/README
/usr/share/perl5/Backtick/AutoChomp.pm

See Also

Package Description
perl-Backticks-1.0.9-alt1.noarch.rpm Use `backticks` like objects!
perl-Backup-Duplicity-YADW-0.12-alt2.noarch.rpm Yet Another Duplicity Wrapper
perl-Backup-Duplicity-YADW-scripts-0.12-alt2.noarch.rpm Backup-Duplicity-YADW scripts
perl-Backup-EZ-0.23-alt1.noarch.rpm Simple backups based on rsync
perl-Backup-EZ-scripts-0.23-alt1.noarch.rpm Backup-EZ scripts
perl-Backup-Hanoi-0.005-alt1.noarch.rpm select backup according to algo
perl-Backup-Hanoi-scripts-0.005-alt1.noarch.rpm Backup-Hanoi scripts
perl-Backup-SingleFile-0.13-alt1.noarch.rpm copies one file to a predefined backup-directory, appends the date and a counter for keeping the hi
perl-BackupPC-Backups-Info-0.0.0-alt1.noarch.rpm Restrieves info on BackupPC backups
perl-BackupPC-Backups-Info-scripts-0.0.0-alt1.noarch.rpm BackupPC-Backups-Info scripts
perl-Bad-Words-0.09-alt1.noarch.rpm perl module Bad-Words
perl-Badge-Depot-0.0104-alt1.noarch.rpm A framework for badges
perl-Badge-Depot-Plugin-Coverage-0.0101-alt1.noarch.rpm Code coverage plugin for Badge::Depot
perl-Badge-Depot-Plugin-Cpantesters-0.0102-alt1.noarch.rpm CPAN testers plugin for Badge::Depot
perl-Badge-Depot-Plugin-Gratipay-0.0103-alt1.noarch.rpm Gratipay plugin for Badge::Depot
Advertisement
Advertisement