- or download this
A="foo"
B="some other data"
...
with more data
and $B
"
- or download this
#!/bin/bash -
...
export C
export D
./foo.pl
- or download this
#!/usr/bin/perl
...
$env->{$val} = $ENV{$var};
}
}
- or download this
#!/bin/env perl
...
my $content = do { local $/ = <$fh> };
my $stuff = parse_sh_maint(parse_sh($content), [qw/scalar1 scalar2/]);
print "Vars: " . Dumper($stuff), "\n";