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: Beginner:
Memory in Perl

 



BikerHQ
Deleted

Dec 8, 2000, 7:01 AM

Post #1 of 3 (451 views)
Memory in Perl Can't Post

I know this sounds kindof stupid, but if I read in a guestbook flatfile into an array in a perl script, what are the upper limits of that array in terms of memory usage?


japhy
Enthusiast

Dec 8, 2000, 7:13 AM

Post #2 of 3 (451 views)
Re: Memory in Perl [In reply to] Can't Post

You shouldn't plop the file into an array. There should always be a better way to do things.

The bigger the file you read in, the more memory it takes. I advise against it at all costs.

------------------
Jeff "japhy" Pinyan -- accomplished author, consultant, hacker, and teacher



BikerHQ
Deleted

Dec 8, 2000, 7:16 AM

Post #3 of 3 (451 views)
Re: Memory in Perl [In reply to] Can't Post

Well, as long as it's possible in perl to read certain lines from flat files (which I'm sure it is), I will probably wait till it breaks before changing!

:)

Actually, probably not! It would be helpful to break down the output into pages anyway... so selectively reading a file would be better I suppose.

 
 


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

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