i have mandrake8 and use kde, i normally use asp/vbScript and want to make the move
to perl. I just got "learning perl" 2nd Ed. it does not seem to tell me what to do w/
my script i type, where to save it, what to save it as (extention), and do i just ftp
it to my domain that is on a perl
who knows of some free web space that allows the use of perl? so i can test my "hello
world" program and more and more... :)
bc
confused,
when i run this file below, "whatisyourname.pl" on my site, my browser displays this,
but never askes me for $name? it just prints "what is your name" and "hello, !"
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "";
print "what is your name? ";
$name = ;
chomp ($name);
pr
how, in perl/cgi, or, what is a popular way of connecting to, and displaying, a csv
file's contents to a browser, in table form?
thanks,
bc
i'm an old asp/vbscript dude, i do not know how to "...make sure the file is
open" either? any real quick explanation you can give me to get the file
open in perlScript/CGI? to match what you said below?
> --- bc <[EMAIL PROTECTED]> wrote:
> > how, in perl/cgi
thanks bossman! :)
will i like this better than asp?
- Original Message -
From: "Paul" <[EMAIL PROTECTED]>
To: "bc" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 1:45 PM
Subject: Re: flat file
&
# seperate fields into cells
s{$}};# close the last cell and the row
print "$_\n"; # I like to add the newline
}
close CSV;
# then end:
print "",CGI->end_html;
exit;
- Original Message -
From: "Paul" <[EMAIL PROTECTED]>
To: <[EMA
e
s/^//; # start the table row and first cell
s{,}{}g; # seperate fields into cells
s{$}};# close the last cell and the row
print "$_\n"; # I like to add the newline
}
close CSV;
# then end:
print "",CGI->end_html;
exit;
- Original M
[any ideas...] the browser's error below:
couldn't find diagnostic data in /usr/local/lib/perl5/5.6.0/pods/perldiag.pod
/usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/sit
hello
i have a flat file (csv) [it has about 114 rows]
i want to put the word "insert " in front of each row,
how it the "for each" writtin? in other words, in perl, how do i do a for each row
insert the word "insert ", then it comes out of the "for each" loop thingy...?
... ???
any ideas?
the csv is a file named csv_rows.csv
thanks,
bc
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
er/bin/perl
open (infile, "text.csv");
@indata = infile;
foreach???
something like this?
thanks a ton, i've gotten a lot of error's trying to do this for days...?
bc
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hehe
thanks for your real answer matt
bc
Daniel Gardner <[EMAIL PROTECTED]> wrote on 1/27/02 4:18:59 PM:
>
>Sunday, January 27, 2002, 3:03:03 PM, Matt C. wrote:
>
>> There's a module called DBD::CSV, which will probably solve your problem. CPAN is
>> good at tha
so matt, can i assume that in perl, to add string to sting, just do this: "string
data...etc..." ($string_to_be_added\n); ? Just put them
next to each other?
bc
Daniel Gardner <[EMAIL PROTECTED]> wrote on 1/27/02 4:18:59 PM:
>
>Sunday, January 27, 2002, 3:0
14 matches
Mail list logo