Hi,

Am using arrays with only references in a sub-routine.  While I got
the hang of how to access an element of the array using the '->'
operator,  I do not know how to intialize this array.   I.e. I want to
be able to do something like

@myarr=();   $#myarr = -1;

inside the subroutine, but myarr is only a reference to an array not
the actual array...

Hope the above problem description is clear.

If anyone knows how to do this, kindly help by posting the answer or
tell me where to look...

Thanks & Best Regards,
-feltra


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to