CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
array: maximum size limitation?

 



KevinR
Veteran


Sep 24, 2003, 11:28 AM

Post #1 of 3 (490 views)
array: maximum size limitation? Can't Post

Are there any character size or byte size limitations for Perl arrays or number of element limitations? Are there any overall limits or limits to specific elements of an array? Are there any rule of thumb limits commonly recognized by Perl coders when working with arrays? Would 10,000 characters in a single element of an array be considered too much? Any help aprreciated. I looked through the documentation on the perldoc website but did not find anything about size limitations at all.
-------------------------------------------------


davorg
Thaumaturge / Moderator

Sep 25, 2003, 12:43 AM

Post #2 of 3 (488 views)
Re: [KevinR] array: maximum size limitation? [In reply to] Can't Post

Array size is limited only by the available memory. 10,000 characters doesn't sound too big, but if you had 1,000 elements each containing 10,000 characters that might start to cause a problem.

You cna use the CPAN module Devel::Size to detemine how much space your variables are taking up.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


KevinR
Veteran


Sep 25, 2003, 9:03 AM

Post #3 of 3 (486 views)
Re: [davorg] array: maximum size limitation? [In reply to] Can't Post

Thanks Dave, I will check CPAN and the module you mentioned.

Much appreciated.

Kevin
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives