PerlX::bash - tighter integration between Perl and bash
This document describes version 0.03_02 of PerlX::bash.
# put all instances of Firefox to sleep foreach (bash \lines => "pgrep firefox") { bash "kill -STOP $_" or die("can't spawn `kill`!"); } # count lines in $file local $@; eval { bash \string => -e => "wc -l $file" }; die("can't spawn `wc`!") if $@; # can capture actual exit status my $status = bash "grep -e $pattern $file >$tmpfile"; die("`grep` had an error!") if $status == 2;
This module is an experiment. It's fun to play around with, and I welcome suggestions and contributions. However, don't rely on this in production code (yet).
Further documentation will be forthcoming, hopefully soon.
You can find documentation for this module with the perldoc command.
perldoc PerlX::bash
This module is on GitHub. Feel free to fork and submit patches. Please note that I develop via TDD (Test-Driven Development), so a patch that includes a failing test is much more likely to get accepted (or at least likely to get accepted more quickly).
If you just want to report a problem or suggest a feature, that's okay too. You can create an issue on GitHub here: http://github.com/barefootcoder/perlx-bash/issues.
none https://github.com/barefootcoder/perlx-bash
git clone https://github.com/barefootcoder/perlx-bash.git
Buddy Burden <barefootcoder@gmail.com>
This software is Copyright (c) 2015-2019 by Buddy Burden.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install PerlX::bash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlX::bash
CPAN shell
perl -MCPAN -e shell install PerlX::bash
For more information on module installation, please visit the detailed CPAN module installation guide.