Like, above I want to assign these elements into one @new_array. Is there any way to achieve in one line(step)$arr_ref = ( [ 1,2,3 ] ) ; @array = @$arr_ref ; #Now, @array has those three elements . @arr_ref_new = ( [1],[2],[3,4] ) ;
In reply to Converting array reference to list context by pavunkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |