[32306] in Perl-Users-Digest
Perl-Users Digest, Issue: 3573 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Dec 23 11:09:29 2011
Date: Fri, 23 Dec 2011 08:09:07 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 23 Dec 2011 Volume: 11 Number: 3573
Today's topics:
Hash <smilesonisamal@gmail.com>
Re: Hash <news@lawshouse.org>
Re: Hash <bugbear@trim_papermule.co.uk_trim>
Re: Hash <rweikusat@mssgmbh.com>
Re: Hash <news@lawshouse.org>
Re: Hash <smilesonisamal@gmail.com>
Re: IO::Socket::INET hostname restrictions? <ben@morrow.me.uk>
Re: Paging David Canzi (Seymour J.)
Re: Paging David Canzi <dmcanzi@uwaterloo.ca>
Re: Paging David Canzi <ben@morrow.me.uk>
Re: Paging David Canzi (Seymour J.)
Re: Why doesn't this work? <willem@toad.stack.nl>
Re: Why doesn't this work? <stevem_@nogood.com>
Re: Why doesn't this work? <ben@morrow.me.uk>
Re: Why doesn't this work? <stevem_@nogood.com>
Re: Why doesn't this work? <tzz@lifelogs.com>
Re: Why doesn't this work? <tzz@lifelogs.com>
Re: Why doesn't this work? <Joey@still_Learning.invalid>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 23 Dec 2011 00:13:26 -0800 (PST)
From: Pradeep Patra <smilesonisamal@gmail.com>
Subject: Hash
Message-Id: <8a5954e3-a008-478c-8b7e-9a090bc85d14@p16g2000yqd.googlegroups.com>
Hi all,
I have a questions of comparing two hashes.
%hash1={a=>2,b=>3,c=>4,d=>5}
%hash2={a=>7,b=>8,c=>9,d=>0)
I have to ensure that from %hash2 the value is increased by 5(2->7 and
3->8) for "a","b". I dont want to compare the all the values of
hash2(for exp-d=0).I want to push this to a library(preferably a
single method) so that I can reuse it. Is there a better way to do
this?.
Can anybody help me in this regard? Any source code will be of great
help.
Regards
Pradeep
------------------------------
Date: Fri, 23 Dec 2011 13:13:49 +0000
From: Henry Law <news@lawshouse.org>
Subject: Re: Hash
Message-Id: <-NmdnfjfXeQQ42nTnZ2dnUVZ7smdnZ2d@giganews.com>
See further down for comments on your code ...
On 23/12/11 08:13, Pradeep Patra wrote:
> %hash1={a=>2,b=>3,c=>4,d=>5}
> %hash2={a=>7,b=>8,c=>9,d=>0)
>
> I have to ensure that from %hash2 the value is increased by 5(2->7 and
> 3->8) for "a","b". I dont want to compare the all the values of
> hash2(for exp-d=0).I want to push this to a library(preferably a
> single method) so that I can reuse it. Is there a better way to do
> this?.
Pradeep, I'm thinking that English is not your first language so please
forgive me if I say that I don't understand what you're trying to do. I
think you want to make sure that the values of hash2 for keys 'a' and
'b' are 5 more than the corresponding values in hash1. Here's some code
that does that, but it's trivial, so I think there must be more to it
than that!
#!/usr/bin/perl
use strict;
use warnings;
my %hash1 = (a=>2,b=>3,c=>4,d=>5);
my %hash2 = (a=>7,b=>5,c=>9,d=>0);
for ( qw(a b) ) {
print "$_: Not increased by 5\n" unless $hash2{$_} == $hash1{$_}+5;
}
What you posted is not your live code, is it?
> %hash1={a=>2,b=>3,c=>4,d=>5}
> %hash2={a=>7,b=>8,c=>9,d=>0)
Apart from the syntax error (closing parenthesis with opening brace),
braces form a reference to anonymous hash, which you don't assign to a
hash itself. See my code for what you actually should have written.
You say "I dont want to compare the all the values of hash2"; well you
don't. As I've shown you, you only need to compare the values for keys
'a' and 'b'. This can't be what you want. And as for "pushing it into
a library", you can put whatever code you want in a Perl module, as long
as you construct the module file itself in the right way. There is good
guidance for doing that in the Perl documentation.
Explain more and we'll try to help more.
--
Henry Law Manchester, England
------------------------------
Date: Fri, 23 Dec 2011 13:42:44 +0000
From: bugbear <bugbear@trim_papermule.co.uk_trim>
Subject: Re: Hash
Message-Id: <i7-dnZQrWsbJGGnTnZ2dnUVZ8mSdnZ2d@brightview.co.uk>
Henry Law wrote:
> See further down for comments on your code ...
>
> On 23/12/11 08:13, Pradeep Patra wrote:
>> %hash1={a=>2,b=>3,c=>4,d=>5}
>> %hash2={a=>7,b=>8,c=>9,d=>0)
>>
>> I have to ensure that from %hash2 the value is increased by 5(2->7 and
>> 3->8) for "a","b". I dont want to compare the all the values of
>> hash2(for exp-d=0).I want to push this to a library(preferably a
>> single method) so that I can reuse it. Is there a better way to do
>> this?.
>
> Pradeep, I'm thinking that English is not your first language so please
> forgive me if I say that I don't understand what you're trying to do.
I think he wants a numerical "max" on a per-key basis.
BugBear
------------------------------
Date: Fri, 23 Dec 2011 14:34:23 +0000
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: Hash
Message-Id: <874nwr1hn4.fsf@sapphire.mobileactivedefense.com>
Henry Law <news@lawshouse.org> writes:
[...]
> I think you want to make sure that the values of hash2 for
> keys 'a' and 'b' are 5 more than the corresponding values in hash1.
> Here's some code that does that, but it's trivial, so I think there
> must be more to it than that!
>
> #!/usr/bin/perl
> use strict;
> use warnings;
>
> my %hash1 = (a=>2,b=>3,c=>4,d=>5);
> my %hash2 = (a=>7,b=>5,c=>9,d=>0);
>
> for ( qw(a b) ) {
> print "$_: Not increased by 5\n" unless $hash2{$_} == $hash1{$_}+5;
> }
In case of exactly two comparisons known at compile time, using a
logical operator usually makes more sense. Also, your variable names
are by far not verbose enough. I suggest
my %first_hash_table_using_modified_bernstein_hash;
my %second_hash_table_also_using_modified_bernstein_hash;
Remember, the more words (or letters) you need to express
trivialities, the less likely it will be that your audience notices
that (before falling asleep, that is ...)
------------------------------
Date: Fri, 23 Dec 2011 14:49:23 +0000
From: Henry Law <news@lawshouse.org>
Subject: Re: Hash
Message-Id: <SICdnQGUMrBuCWnTnZ2dnUVZ8oOdnZ2d@giganews.com>
On 23/12/11 14:34, Rainer Weikusat wrote:
> In case of exactly two comparisons known at compile time, using a
> logical operator usually makes more sense. Also, your variable names
> are by far not verbose enough. I suggest
Are you trying to be funny? You certainly don't seem to be trying to be
helpful to the OP.
--
Henry Law Manchester, England
------------------------------
Date: Fri, 23 Dec 2011 08:04:55 -0800 (PST)
From: Pradeep Patra <smilesonisamal@gmail.com>
Subject: Re: Hash
Message-Id: <ab3d1afc-daca-4f52-a9f5-1287d299e390@l19g2000yqc.googlegroups.com>
On Dec 23, 7:49=A0pm, Henry Law <n...@lawshouse.org> wrote:
> On 23/12/11 14:34, Rainer Weikusat wrote:
>
> > In case of exactly two comparisons known at compile time, using a
> > logical operator usually makes more sense. Also, your variable names
> > are by far not verbose enough. I suggest
>
> Are you trying to be funny? =A0You certainly don't seem to be trying to b=
e
> helpful to the OP.
>
> --
>
> Henry Law =A0 =A0 =A0 =A0 =A0 =A0Manchester, England
Thanks Henry for you kind help. Sorry for the confusion.To be more
clear:
I have a %hash1 =3D { 'total' =3D> '15',
'success' =3D> '15',
'error' =3D> '0',
'percent' =3D> '10%'
};
After some operations performed the %hash1 has values populated with
new values for some of the keys(for exp: total,success,percent) and
that result to %hash2.
Lets say modified %hash2 is as follows.
%hash2 =3D { 'total' =3D> '20',
'success' =3D> '20',
'error' =3D> '0',
'percent' =3D> '15%'
};
Note: hash2 has modified values for (success,total and percent) was
increased by 5.I want to ensure that the 'error' still 0(between hash1
and hash2).
I want to write a function for example:
hash_compare(hash1,hash2)
{
if hash2's success counter is increased by 5 for
total,success,percent return success;
if hash2's error counter > 0 return fail;
}
It can be done 2 ways we need 2 foreach loops to loop through the
"keys of hash1" and then "keys of hash2" and then match keys to
retrieve values from hash1 and hash2 and then see that it increased by
5. Is there a better way to do this? Code snippet to perform this will
be useful.
Regards
Pradeep
------------------------------
Date: Thu, 22 Dec 2011 01:36:19 +0000
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: IO::Socket::INET hostname restrictions?
Message-Id: <j5eas8-8dd.ln1@anubis.morrow.me.uk>
Quoth Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid>:
> In <9ps6s8-glc2.ln1@anubis.morrow.me.uk>, on 12/20/2011
> at 05:21 PM, Ben Morrow <ben@morrow.me.uk> said:
>
> >OK. Thank you.
>
> Is this outrput what you expected?
>
> patching file lib/IO/Socket.pm
<snip>
>
> [h:\vendors\cpan\io-1.25]perl -Mblib -MIO::Socket::INET
> -e"IO::Socket::INET->new
> (PeerAddr => 'whois.nic.mn', PeerPort => 43,Timeout => 5) or die $@"
> IO::Socket::INET: connect: Connection refused at -e line 1.
*Yes*. Good. Thank you. (That's the right error, rather than the
'Invalid argument' you were getting before.)
Now I've got confirmation this works properly I'll submit a bug report
(when I get to it...). I'm afraid I don't know if or when this'll make
its way into a release.
Ben
------------------------------
Date: Wed, 21 Dec 2011 19:40:19 -0500
From: Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid>
Subject: Re: Paging David Canzi
Message-Id: <4ef27c73$4$fuzhry+tra$mr2ice@news.patriot.net>
In <jct4nh$vhb$1@rumours.uwaterloo.ca>, on 12/21/2011
at 05:24 PM, "David Canzi" <dmcanzi@uwaterloo.ca> said:
>And your article is present on the news servers I checked that your
>previous articles were not on.
What about this one?
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org
------------------------------
Date: Thu, 22 Dec 2011 01:05:49 +0000 (UTC)
From: "David Canzi" <dmcanzi@uwaterloo.ca>
Subject: Re: Paging David Canzi
Message-Id: <jctvpd$142$1@rumours.uwaterloo.ca>
Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid> wrote:
>In <jct4nh$vhb$1@rumours.uwaterloo.ca>, on 12/21/2011
> at 05:24 PM, "David Canzi" <dmcanzi@uwaterloo.ca> said:
>
>>And your article is present on the news servers I checked that your
>>previous articles were not on.
>
>What about this one?
It reached all the servers I checked: uwaterloo, aioe, and
eternal-september.
--
David Canzi | "I put a dollar in a change machine. Nothing changed."
| -- George Carlin
------------------------------
Date: Thu, 22 Dec 2011 01:31:05 +0000
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Paging David Canzi
Message-Id: <prdas8-8dd.ln1@anubis.morrow.me.uk>
Quoth Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid>:
> In <jct4nh$vhb$1@rumours.uwaterloo.ca>, on 12/21/2011
> at 05:24 PM, "David Canzi" <dmcanzi@uwaterloo.ca> said:
>
> >And your article is present on the news servers I checked that your
> >previous articles were not on.
>
> What about this one?
FWIW, David noted in a private email to me that even though I have been
seeing all your articles (duh!) they end up with very long Path
headers. The article which began this thread had a much more
normal-length Path; the article I am replying to has a long Path again,
which suggests something somewhere is objecting to it.
Anyway: this should really be in a test group. F'up set to alt.test.
[Oddly your articles seem to start and end on Giganews machines, but
they appear to be incapable of shipping articles across the Atlantic...]
Ben
------------------------------
Date: Thu, 22 Dec 2011 09:29:58 -0500
From: Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid>
Subject: Re: Paging David Canzi
Message-Id: <4ef33ee6$11$fuzhry+tra$mr2ice@news.patriot.net>
In <prdas8-8dd.ln1@anubis.morrow.me.uk>, on 12/22/2011
at 01:31 AM, Ben Morrow <ben@morrow.me.uk> said:
>Anyway: this should really be in a test group.
David reported that the propogation varied according to the newsgroup.
I have posted a couple of messages to alt.test, but I'm not sure
whether that will provide the relevant diagnostic data.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org
------------------------------
Date: Wed, 21 Dec 2011 21:43:23 +0000 (UTC)
From: Willem <willem@toad.stack.nl>
Subject: Re: Why doesn't this work?
Message-Id: <slrnjf4knr.8gc.willem@toad.stack.nl>
Joey@still_Learning.invalid wrote:
) Willem wrote:
)
)>Joey@still_Learning.invalid wrote:
)>) When I submit the list of files to this [abbreviated] script for
)>) uploading, instead of receiving a real-time list of files being uploaded,
)>) I get nothing until the entire list of files has been uploaded, and then
)>) the HTML page pops up (with the correct list shown).
)>
)>Have you tried it in different browsers?
)
) I've tried it in two browsers (Opera 12 and FF) with the same result.
)
)>Have you played around with the browser settings?
)
) I don't know what browser settings would have an effect.
)
)>Have you looked at it with a browser-based debugger?
)
) Yes. No hints.
)
)>Have you looked at the HTTP traffic with a protocol sniffer?
)>
) No, but I can't see how that would tell me anything.
It could show you that nothing is being transmitted until the script
completes. It could also show that the data is being transmitted line by
line, which means that it's the browser that is holding off on displaying
the list until it's complete.
) Is it fair for me to presume that it should work as I want, if whatever is
) causing it to behave the way it is resolved?
I believe you've gotten that answer crossthread.
IME, the only reliable way to get this to work is to make javascript
xmlhttp requests (in json or something) for each line separately.
I've gotten the approach of making one xmlhttp request, and parsing the
incomplete results, work on FF, but not on IE (which only delivers the
received data to the callback on completion).
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
------------------------------
Date: Wed, 21 Dec 2011 14:55:34 -0800
From: Steve May <stevem_@nogood.com>
Subject: Re: Why doesn't this work?
Message-Id: <cwtIq.32782$cG.10081@newsfe14.iad>
On 12/21/2011 12:58 PM, Steve May wrote:
<snip>
> example on this machine) you might try:
>
> HTML header
> $| = 1; # <- set OUTPUT_AUTOFLUSH to true
> print "</head><body>\n";
> #print "<div >\n";# <- lose the divs
> print "<pre>\n"; # <- critical bit, tells browser to print as is
> file_upload();
> print "</pre>\n";
> #print "</div>\n";
> print "</body></html>\n";
>
> sub file_upload() {
> @uploadFiles = param('myFile0[]');
> for (my $i=0;$i<$imgCnt;$i++) {
> my $j = $i+1;
> $filename = $uploadFiles[$i];
> $filename =~ s/.*[\/\\](.*)/$1/;
> #print "Uploading image $j : $filename<br>\n";
> print "Uploading image $j : $filename\n";
> $upload_filehandle = $query->upload($uploadFiles[$i]);
> open (UPLOADFILE, ">$filePathNew/$filename") or die "Can't Open
> $filename: $!";
> binmode UPLOADFILE;
> while (<$upload_filehandle>) {
> print UPLOADFILE;
> }
> } #end of for i
> close UPLOADFILE or die "Can't Close. $!";
> }
>
> If THAT doesn't work, send a mime-type of text/plain instead of
> text/html and try again...
>
Hmmmm... got curious and tried to make this work.. could not do so... so
I was doing something a bit differently... I'll have to fire up the old
work station at home and see how I made it do so...
\s
------------------------------
Date: Wed, 21 Dec 2011 22:52:42 +0000
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Why doesn't this work?
Message-Id: <qi4as8-laa.ln1@anubis.morrow.me.uk>
Quoth Steve May <stevem_@nogood.com>:
>
> Browsers need to understand how to lay out the page before they'll start
> printing to screen.
>
> With a mime type of text/html, the browser will wait until it knows what
> the layout is before printing to screen even when autoflush is true.
>
> The browser (typically) can not accurately calculate layouts until your
> html file is fully loaded.
>
> On the other hand, having said all that... some tricks can be played
> with the <pre> tag.
<snip>
> HTML header
> $| = 1; # <- set OUTPUT_AUTOFLUSH to true
> print "</head><body>\n";
> #print "<div >\n";# <- lose the divs
> print "<pre>\n"; # <- critical bit, tells browser to print as is
This isn't true any more (I don't know if it was when you wrote that
code). At least Firefox will quite happily render HTML incrementally,
though it appears to insist on receiving at least 1k of the page before
it starts doing so: this PSGI script
#!/opt/perl/bin/plackup
use warnings;
use strict;
sub {
return sub {
my ($r) = @_;
my $w = $r->([200, ["Content-type" => "text/html"]]);
$w->write(<<HTML);
<html>
<head><title>Streaming HTML</title></head>
<body>
HTML
$w->write(" " x 1000); # <-- this is necessary
for (1..10) {
$w->write($_);
sleep 1;
}
$w->write("</body></html>");
};
};
renders incrementally, but if I remove the 1000 spaces it doesn't. <pre>
doesn't appear to make any difference either way.
Of course, this is all entirely unspecified and therefore subject to
variation between browsers. Before relying on it you need to test
thoroughly in all situations you care about.
There are also several layers of buffering (Perl's PerlIO buffers, the
output pipe if this is a F?CGI, any buffering your web server does, the
server's TCP stack, the client's TCP stack) your data has to pass
through before the browser even sees it. '$| = 1' is not necessarily
enough to ensure the data will be flushed through all those layers
promptly. If in doubt, you need to use something like Wireshark to see
what's actually being sent to the client (and remember to check the PSH
bit is set where it needs to be).
(This is partly why I wrote my test script as a PSGI: I know the
behaviour of HTTP::Server::PSGI, and I know does what's needed here. It
would have taken more work to be sure a webserver was doing the right
thing.)
Ben
------------------------------
Date: Wed, 21 Dec 2011 16:36:53 -0800
From: Steve May <stevem_@nogood.com>
Subject: Re: Why doesn't this work?
Message-Id: <9%uIq.31365$%O.30971@newsfe20.iad>
On 12/21/2011 02:52 PM, Ben Morrow wrote:
>
> Quoth Steve May<stevem_@nogood.com>:
>>
>> Browsers need to understand how to lay out the page before they'll start
>> printing to screen.
>>
>> With a mime type of text/html, the browser will wait until it knows what
>> the layout is before printing to screen even when autoflush is true.
>>
>> The browser (typically) can not accurately calculate layouts until your
>> html file is fully loaded.
>>
>> On the other hand, having said all that... some tricks can be played
>> with the<pre> tag.
> <snip>
>> HTML header
>> $| = 1; #<- set OUTPUT_AUTOFLUSH to true
>> print "</head><body>\n";
>> #print "<div>\n";#<- lose the divs
>> print "<pre>\n"; #<- critical bit, tells browser to print as is
>
> This isn't true any more (I don't know if it was when you wrote that
> code).
My mind is not quite that far gone, Ben. Almost, but not quite. :-)
It really did work back then and I remember spending a lot of time
watching the processing messages scroll down the screen watching for
bugs while developing the .rtf writing routines. Don't know if you've
ever dealt with creating .rtf files, but it wasn't much fun given the
(then, maybe now?) limitations of the only Perl module(s) available
and the byzantine nature of the .rft specs.
> At least Firefox will quite happily render HTML incrementally,
> though it appears to insist on receiving at least 1k of the page before
> it starts doing so: this PSGI script
>
>
Yes, that appears to be correct. (been testing)
It's been years since I did that, and I do remember that I required the
users to use Firefox. (the app was not used by the general public)
Ah well, I learn something every day. :-)
I -am- going to check my old code though to see what I did... even if
it's not applicable today. I don't remember the 1k thing, but again,
it was years ago.
Thanks Ben,
Steve
------------------------------
Date: Thu, 22 Dec 2011 08:10:18 -0500
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: Why doesn't this work?
Message-Id: <87zkek3g79.fsf@lifelogs.com>
On Wed, 21 Dec 2011 11:26:49 -0800 Jim Gibson <jimsgibson@gmail.com> wrote:
JG> In article <mt74f75nrtlnjitn9e6s42a0sqkee8dcvt@4ax.com>,
JG> <"Joey@still_Learning.invalid"> wrote:
>> When I submit the list of files to this [abbreviated] script for
>> uploading, instead of receiving a real-time list of files being uploaded,
>> I get nothing until the entire list of files has been uploaded, and then
>> the HTML page pops up (with the correct list shown).
>>
JG> That is the way browsers, servers, and HTTP works. Your expectation
JG> that each line output by your CGI program on the server will make its
JG> way quickly to your computer and be rendered in the browser is, alas,
JG> too optimistic. See
JG> <http://www.stonehenge.com/merlyn/LinuxMag/col39.html>
Joey can look into AJAX to get a dynamic list from the server. Here's a
way to do in in PHP:
http://stackoverflow.com/questions/5450063/need-php-code-to-obtain-list-of-files-stored-on-the-server
The Perl equivalent on the server is trivial as well.
Ted
------------------------------
Date: Thu, 22 Dec 2011 08:14:14 -0500
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: Why doesn't this work?
Message-Id: <87vcp83g0p.fsf@lifelogs.com>
On Wed, 21 Dec 2011 18:17:42 +0000 Rainer Weikusat <rweikusat@mssgmbh.com> wrote:
RW> The output is very likely being cached until the script ran to
RW> completion. Also, I'm pretty certain that generating HTML
RW> piece-by-piece in this way and expecting a browser to render
RW> subsequently more complete versions of an invalid HTML document
RW> won't work, at least not universally.
There is some work done in this direction, see
http://en.wikipedia.org/wiki/WebSocket and the various links at the end.
It's definitely not ready for prime time, though. The latest Google
Chrome passes the tests at http://websocketstest.com/ but many older
browsers don't. So at least for the near term AJAX is the best way to
build a page piece by piece.
Ted
------------------------------
Date: Thu, 22 Dec 2011 07:25:31 -0800
From: "Joey@still_Learning.invalid" <Joey@still_Learning.invalid>
Subject: Re: Why doesn't this work?
Message-Id: <3ti6f7dht8tqjsniphgc68t31nr5t7ljaj@4ax.com>
Joey@still_Learning.invalid wrote:
>When I submit the list of files to this [abbreviated] script for
>uploading, instead of receiving a real-time list of files being uploaded,
>I get nothing until the entire list of files has been uploaded, and then
>the HTML page pops up (with the correct list shown).
>
Thanks everyone for your help.
I ended up abandoning trying to do it in Perl. I've selected an Ajax
solution, which seems to be the common approach. Thanks again.
--
Joey
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 3573
***************************************