O/p : its is still coming as --> one two three i am expecting o/p as -> four two three ...please help me where is it going wrongmy @array=(one,two,three); my $arref=\@array; sub func ($aref) >> sub definition { $aref->[0]="four"; } &func($arref); >>calling the sub print "@array";
In reply to array ref problem by perlplayer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |