Hi All,
I have a bunch of shell script files that use a common shell script file that contains certain global variables that are declared and initialized or derived by some arithmatic.
I have to now convert one of the shell script file to a perl file so I can use the in-built functions.
Is the a way I can import the file with the globals and use them in my perl script?
Thanks!
User Profile
Collapse
-
Including a shell script file in Perl
-
Thanks for your help Kevin!... -
1. Its not a homework question
2. I DO NOT need the code, I just need to know if Perl has any other structures/functions I can use to make it more efficient, and I needed to know that BEFORE I started writing the code.
Anyway, I will just use whatever my limited knowledge of Perl allows and post if I have any problems.Leave a comment:
-
Help with perl data structures and in-built functions.
I have never used perl before, and I was recommended to use this to write a script for this:
I have a file that has 2 columns like this:
A B
10 33
8 20
30 90
If B falls in a certain range, say 15 < B < 30, I need to store the corresponding value of A, 8 in this case, in some structure (hashtable?)
I have another file that looks like this
C D...
No activity results to display
Show More
Leave a comment: