S
stevob
hi,
using perl, how would i take a file like:
something=else
nothing=other
and be able to split apart the line using "=" as the delimiter, and
assign each part to a $1, $2 value. I.e. $1=something and $2=else
This would be in a loop, so the next time around, $1=nothing and
$2=other. Basically, I need to be able to go thru each line and using
the "=" delimiter, I need to print out the line in reverse order, i.e.
else=something and other=nothing. Any help would be greatly
appreciated.
stevo
using perl, how would i take a file like:
something=else
nothing=other
and be able to split apart the line using "=" as the delimiter, and
assign each part to a $1, $2 value. I.e. $1=something and $2=else
This would be in a loop, so the next time around, $1=nothing and
$2=other. Basically, I need to be able to go thru each line and using
the "=" delimiter, I need to print out the line in reverse order, i.e.
else=something and other=nothing. Any help would be greatly
appreciated.
stevo