J
Jason Kinkade
I have a scalar/variable ($var) that looks like:
Line1
Line2
Line3
Line4
etc.
Theres obviously a new line after each Line#. I would like to loop
through this variable line by line with something like
foreach ($var)
{
print "Current Line: $_";
}
This reads the entire $var in. I want it line by line instead.
Any idea?
Thanks.
Line1
Line2
Line3
Line4
etc.
Theres obviously a new line after each Line#. I would like to loop
through this variable line by line with something like
foreach ($var)
{
print "Current Line: $_";
}
This reads the entire $var in. I want it line by line instead.
Any idea?
Thanks.