in reply to Splitting a dynamic comma-separated list.
or if you wanted a different way, you could assign it to a hash:foreach $id (@$temp) { # do things with $id }
with this method you can use the hash to determine if your id exists using the id itself, e.g.@hash{@$temp}=@$t; foreach $id (keys %hash) { # do things with $id }
TMTOWTDI!if ($hash{120}) { # id 120 exists }
--
hiseldl
|
|---|