Quote:
Originally Posted by Jacky Quah
I write something like this...
$T2=$(< $TEST);
lol. doesn't even realise what's wrong...
|
Ok. I try to interpret in simple words what you're trying to do: you want to assign the content of the file, whose name is stored in the variable TEST, to the variable T2. Right?
The error in the statement above is that you cannot have $T2 to the left hand side of an assignement, but simply T2, that is the name of the variable.
When you write $T2 you mean
the value of the variable T2 and the statement above looks like a comparison instead of an assignment. Hope it is clear now!