
frenchface
User
May 22, 2008, 4:02 PM
Post #24 of 28
(3583 views)
|
|
Re: [KevinR] several questions
[In reply to]
|
Can't Post
|
|
ok i figured it out, some reason it was looking in a different cgi-bin, so back to my questions ok i got that working, no i have another question i have the index.pl Code #!/usr/bin/perl use strict; use warnings; use CGI ':standard'; print header, start_html('Player Point Tracker'), h1('Kings of War'), start_form, 'Players Name: ', textfield('name'), br, submit('Search!'), end_form, p, hr; $query->import('e.pl'); print 'Your name is ', param('name'), br if param 'name'; print end_html; and i want it to import serval perl scripts and be able to searh the arrays of the scripts, i think i use the import() is that right and what command do i use to have it search the array? the scipts look like this Code my $url = 'http://en19.tribalwars.net/map/tribe.txt'; use LWP::Simple; my $content = get $url; @array=split(/,/, $content); $n=1; $j=4; do { print "@array[$n] @array[$j]\n"; $n=$n+5; $j=$j+5; } while ($n<=$#array);
|