Really simple perl question, but confusing me greatly.
foreach $val (@{$obj->something()}) {
# this works
}
@array = $obj->something();
foreach $val (@array) {
# this does not
}
What do i need to do to make the second work (i.e: assign the array seperately), i've used the first form a fair bit but dont really understand what it does differently.