I've got a variable that looks like this:
$variable="this file can,be deleted,is this ok";
Now I want this variable to be splitted up , in three other variables namely $var1 and $var2 and $var3, at the point where the , resides. The outcome must look like this:
$var1="this file can";
$var3="is this ok";
(note: I don't want the , to be either in $var1 or $var2 or $var3)
Can someone help me out ?