develooper Front page | perl.beginners | Postings from October 2009


Thread Next
October 5, 2009 13:49
Message ID:
Just clarification.  At this time I have not written any of my code (dont' know where to begin yet, however the website that I am looking at seems to have diffrent methods for one item.  I have seen @ for arrays written like this:   @myarray ,but I have also seen an array per the writting like:    $primes[$num_primes].  Are they both the same? Because it would be easier in my opinion to write:

@myarray = 4;
 instead of writing this:  
$primes[$num_primes] = 2;  

Am I mising something, or are these two things interchangable?
 Jason H. Owens 

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About