KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do we share or export a global variable between two different perl scripts. Here is the situation: first.pl #!/usr/bin/perl use strict; our (@a, @b); ......... second.pl #!/usr/bin/perl use strict; require first.pl; I want to use global variable ( @a , @b ) declared in first.pl Also,suppose there's a variable in second perl file same as first perl file. But I want to use first file's variable. How to achieve this?
Tags (comma-separated)
Save Edits
Cancel