in reply to how to combine these two scripts in perl?
I see one script and not two, so your question is confusing. I think you mean you want to pass a variable between scripts without storing it in a file.
First of all, I am not sure why storing it in a file concerns you. There are several modules available to you, including Data::Dumper and Storable. Data::Dumper is core so you already have it, nothing needs to be installed.
Not using a file involves the two scripts sharing memory. Also possible, I believe, but more complicated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to combine these two scripts in perl?
by dimitris852 (Acolyte) on Mar 15, 2016 at 14:20 UTC | |
by GotToBTru (Prior) on Mar 15, 2016 at 14:45 UTC | |
by dimitris852 (Acolyte) on Mar 15, 2016 at 16:25 UTC | |
by poj (Abbot) on Mar 15, 2016 at 17:11 UTC |