hi, I would like to import some data from mysql and write into an excel file. Do you mind if you can tell me which module I can use to do that? I read in the cpan.org, but I am not sure which one I should use. There are Spreadsheet::WriteExcel , Spreadsheet::SimpleExcel and others. I am look
Gerald Preston wrote:
> Hi!
>
>
>
> Not sure where to begin, although I have been reading every thing I can
> find, but I am looking for a few good examples that use LWP to read web
> pages from a Perl script that runs from WIN XP DOS command line.
There's a pod in the same dir as the module
- Original Message -
From: "Gerald Preston" <[EMAIL PROTECTED]>
To:
Sent: Friday, April 07, 2006 11:18 PM
Subject: first time using LWP
Hi!
Not sure where to begin, although I have been reading every thing I can
find, but I am looking for a few good examples that use LWP to read we
Hi!
Not sure where to begin, although I have been reading every
thing I can find, but I am looking for a few good examples that use LWP to read
web pages from a Perl script that runs from WIN XP DOS command line.
Any suggestion?
Thanks,
Jerry
>From the Camel Book, chapter 2, section 6:
"2.6.4.3 Foreach loops
[...]
The foreach keyword is actually a synonym for the for keyword, so you can use
foreach for readability or for for brevity. If VAR is omitted, $_ is used. If
LIST is an actual array (as opposed to an expression returning a li
>From "Learning Perl"
"It turns out that, inside the Perl grammar, the keyword "foreach" is
exactly equivalent to the keyword "for". That is, any time Perl sees one
of them, it's the same as if you had typed the other. Perl can tell
which you meant by looking inside the parentheses. If you've got
Conrad, Bill (ThomasTech) <> wrote:
> I thought that Perl had another internal variable that contained
the
> numerical index of each array entry without having to count them. I
> guess what I thought was happening internally was that Perl was
> maintaining an index of @List and returning @Lis
> In fact, "foreach" is just a short hand for those times when
> you only need the contents of the list or to perform an
> operation "for each item", but have no need for the index or
> the list itself.
Not sure what you're implying here, but the fact is: there is NO
DIFFERENCE between 'for
>
>
> my @List = qw(one two three);
>
> for(0 .. $#List) {
> print "Indice $_ contains: $List[$_]\n";
> }
Thanks Dave
After seeing your reply it jogged my memory and this is exactly how
I did it before. I had forgotten about the $#list
Thanks to all who replied to my question.
On Apr 6, 2006, at 15:29, Hon Shi wrote:
Yah, ot I know, but who else writes CGIs but perl guys? :-)
"However, the CGI model has an important drawback: a web server that
wants
to use a CGI program must call a new copy in responce to every incoming
web request."
With respect to perl, is tha
On Apr 6, 2006, at 15:25, Conrad, Bill (ThomasTech) wrote:
I thought that Perl had another internal variable that contained the
numerical index of each array entry without having to count them. I
guess
what I thought was happening internally was that Perl was maintaining
an
index of @L
usaravanan <> wrote:
> Hi
>
> My html form is:
>
> http://localhost/virtual/webdav_single_file_upload.pl";
> METHOD="POST" ENCTYPE="multipart/form-data"> name="Managers_select"> Select - -
> - Vijay Mr. Naveen
>
> File 1: TYPE="submit" NAME="Submit" VALUE="UPLOAD">
>
> Task: Trying to
12 matches
Mail list logo