otuama
02-15-2011, 09:31 PM
Hi all.
I'm sure this has been asked many times and I'm probably going to get a slap on the wrist for asking again but..... how can I redeclare a variable.
For example:
string $arse[] = `ls -sl`;
as the array was created before the objects were, they aren't stored in the array
polySphere;
polyCube;
select -all;
-------
I know all I need to do is put
string $arse[] = `ls -sl`;
after select -all;
but if I want to later refresh the array contents, I'm lazy so would prefer to not type
string $arse[] = `ls -sl`;
or
string $anotherArse[] = `ls -sl`;
I thought all I'd need to do is type something like this
$arse;
or
eval $arse;
And that would redeclare the string, storing the objects in the array, but no.
I know you're probably thinking 'What a tit!!!' or 'Why doesn't he just copy and paste?' but if it's possible, I'd still like to know.
Thanks,
Sean
I'm sure this has been asked many times and I'm probably going to get a slap on the wrist for asking again but..... how can I redeclare a variable.
For example:
string $arse[] = `ls -sl`;
as the array was created before the objects were, they aren't stored in the array
polySphere;
polyCube;
select -all;
-------
I know all I need to do is put
string $arse[] = `ls -sl`;
after select -all;
but if I want to later refresh the array contents, I'm lazy so would prefer to not type
string $arse[] = `ls -sl`;
or
string $anotherArse[] = `ls -sl`;
I thought all I'd need to do is type something like this
$arse;
or
eval $arse;
And that would redeclare the string, storing the objects in the array, but no.
I know you're probably thinking 'What a tit!!!' or 'Why doesn't he just copy and paste?' but if it's possible, I'd still like to know.
Thanks,
Sean
