perlplayer has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array ref problem
by almut (Canon) on Nov 03, 2008 at 07:31 UTC | |
|
Re: array ref problem
by chrism01 (Friar) on Nov 03, 2008 at 07:35 UTC | |
by rovf (Priest) on Nov 03, 2008 at 10:13 UTC | |
by kyle (Abbot) on Nov 03, 2008 at 17:59 UTC |