- or download this
perl -MData::Dumper -e '
$conf = {
...
open( $fh, ">", "monkConfig.txt" ) or die;
print $fh Data::Dumper->Dump([$conf],["config"]);
'
- or download this
$config = {
'TYPE' => 'Ethernet',
...
'IPADDR' => 10.9.0.200,
'BOOTPROTO' => 'static'
};
- or download this
perl -le 'require "monkConfig.txt";
print $config->{'TYPE'};
...
__output__
Ethernet