comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Push value onto an array?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Push value onto an array? [message #33702 is a reply to message #33700] Thu, 16 January 2003 17:56 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Ed Wright" wrote >
> Question,
>
> How can I push a value onto an array?
>
> Given some array A of size m, how to add an entry at A[m]?
>
> Something like
>
> push @A, $value;
>
> This needs to be done in a loop. Yes, really.

I think this was covered in depth a month or two ago. I just googled one
entitled "How to use pointers instead of arrays" which covers some of the
details (it quickly diverges from pointers and addresses your question
directly).

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to plot with time as one axis ?
Next Topic: IDL 5.6, MacOSX, IDLWAVE, Xemacs, and suicide

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 02:07:16 PDT 2025

Total time taken to generate the page: 0.80437 seconds