Hi friends,
I am new to perl and my mind still runs in bash. I need to do something simple, read a multi line file (2 lines) and have each line create a variables.
Example file.txt:
line1
line2
In my perl code, I want to read file.txt and then line1 -> var1 and line2 -> var2.
It sounds so simple yet I have no idea how to do it (a simple loop?)
Can anyone help out, thank you for aiding me in learning.