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:
speed question

 



parham_m_s
journeyman

Apr 25, 2001, 12:59 PM

Post #1 of 2 (288 views)
speed question Can't Post

Which would be faster to use in a cgi file:
200 of these (variables):

Code
$variable1 = "something"; 
$variable2 = "something else";
...
$variable200 = "more";

or (hashes):

Code
$variable{'1'}  = "something"; 
$variable{'2'} = "something else";
...
$variable{'200'} = "more";

or (arrays):

Code
$variable[1]  = "something"; 
$variable[2] = "something else";
...
$variable[200] = "more";



japhy
Enthusiast

Apr 25, 2001, 3:34 PM

Post #2 of 2 (284 views)
Re: speed question [In reply to] Can't Post

Use an array.

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

 
 


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

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