prasadbabu has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks
I am doing a small coding for copying the sub folders to another location with some condition checks.
In that i have one small condition,
if ($total < 7)) { push (@final, @temp); $hash{$s++}= \@final; @final =(); }
In the @temp array i have some values and i will push it in another @final array if the condition satisfies. I stored the array reference in a hash for my later use.When i printed the hash key and values i didnt got any output. I found where i am going wrong, that is, I am again nullifying the array @final in the block.
As per my coding i want to nullify that array if the condition satisfies. Also i want to store the array reference in the hash. I tried using temporary array but i could not able to get the solution.
So is there anyother way to store the array reference in the hash and nullify that array later.
Thanks in advance
Prasad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array reference
by davido (Cardinal) on Jan 15, 2005 at 16:16 UTC | |
by prasadbabu (Prior) on Jan 16, 2005 at 10:36 UTC | |
|
Re: array reference
by holli (Abbot) on Jan 15, 2005 at 07:24 UTC | |
|
Re: array reference
by demerphq (Chancellor) on Jan 15, 2005 at 11:58 UTC | |
|
Re: array reference
by CountZero (Bishop) on Jan 15, 2005 at 10:43 UTC |