NAME
Shell::Var::Reader - Runs a sh or bash script and returns the variables that have been set as well as their values.
VERSION
Version 0.10.0
SYNOPSIS
Lets say '/usr/local/etc/someconfig.conf' which is basically a shell config and read via include in a sh or bash script, this can be used for getting a hash ref conttaining them.
Similarly on systems like FreeBSD, this is also useful for reading '/etc/rc.conf'.
use Shell::Var::Reader;
use Data::Dumper;
my $found_vars=Shell::Var::Reader->read_in('/usr/local/etc/someconfig.conf');
print Dumper($found_vars);
SUBROUTINES
read_in
This runs a specified file as a include and then figures out what the new variables are. fetching them.
AUTHOR
Zane C. Bowers-Hadley, <vvelox at vvelox.net>
BUGS
Please report any bugs or feature requests to bug-shell-var-reader at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Shell-Var-Reader. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Shell::Var::Reader
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2023 by Zane C. Bowers-Hadley.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)