[12653] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 62 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Jul 7 15:47:30 1999

Date: Wed, 7 Jul 1999 12:36:16 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 7 Jul 1999     Volume: 9 Number: 62

Today's topics:
    Re: perlscript in IE <gellyfish@gellyfish.com>
    Re: perlscript in IE <debot@xs4all.nl>
    Re: perlscript in IE <anonymous@web.remarq.com>
    Re: perlscript in IE (Abigail)
    Re: perlscript in IE <cassell@mail.cor.epa.gov>
    Re: perlscript in IE <gellyfish@gellyfish.com>
    Re: Plain text from HTML <JFedor@datacom-css.com>
    Re: Plain text from HTML <uri@sysarch.com>
    Re: Plain text from HTML (Abigail)
    Re: Plain text from HTML <JFedor@datacom-css.com>
        Polling sockets <streaking_pyro@my-deja.com>
        Problem with a SQL statement in a Perl script <brownstar@my-deja.com>
        Program Architecture? whos_john_galt@my-deja.com
        Q: ASP sessions b/t VBScript and Perl <jtseng@wsmg.digex.net>
        Q:Script too long, session times out?? danmex@my-deja.com
    Re: Q:Script too long, session times out?? (Abigail)
        read vs. sysread vs. <FH> vs. fscanf() vs.... <Brett.W.Denner@lmco.com>
    Re: Receiving binaries (Abigail)
    Re: Receiving binaries <sjs@yorku.ca>
    Re: Receiving binaries (elephant)
    Re: Receiving binaries (Abigail)
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: 6 Jul 1999 21:40:59 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: perlscript in IE
Message-Id: <7ltt5b$m3$1@gellyfish.btinternet.com>

On Tue, 06 Jul 1999 10:38:00 -0800 Ashish Kadakia wrote:
> Hi,
>  Anyone knows how I can view cleint side Perlscript in IE.
> I downloaded some example, but cannot view in the browser.
> It doesn't display anything.. Do I need sometype of dlls?
> 

You need to download and install Activeperl <http://www.activestate.com>
and answer yes if it asks you about it ...

/J\
-- 
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>


------------------------------

Date: Wed, 07 Jul 1999 00:32:06 +0200
From: Frank de Bot <debot@xs4all.nl>
Subject: Re: perlscript in IE
Message-Id: <378283E5.4C7B0D1B@xs4all.nl>

Download a http server. http://www.apache.org/
You will be able to execute scripts in your browser. Further instructions include
at the website.

Jonathan Stowe wrote:

> On Tue, 06 Jul 1999 10:38:00 -0800 Ashish Kadakia wrote:
> > Hi,
> >  Anyone knows how I can view cleint side Perlscript in IE.
> > I downloaded some example, but cannot view in the browser.
> > It doesn't display anything.. Do I need sometype of dlls?
> >
>
> You need to download and install Activeperl <http://www.activestate.com>
> and answer yes if it asks you about it ...
>
> /J\
> --
> Jonathan Stowe <jns@gellyfish.com>
> Some of your questions answered:
> <URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
> Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>

--
Contact Information:

                         \\\|///
                       \\  - -  //
                        (  @ @  )
----------------------oOOo-(_)-oOOo--------------------|
| General:                                             |
|                                                      |
| EMAIL: debot@xs4all.nl                               |
|------------------------------------------------------|
| Penpal International                                 |
|                                                      |
| URL: http://www.debot.nl/ppi/  or  http://fly.to/ppi |
| EMAIL: debot@xs4all.nl  or  ppi@debot.nl             |
-------------------------------Oooo---------------------
                        oooO    (   )
                       (   )    ) /
                       \ (     (_/
                        \_)




------------------------------

Date: Tue, 06 Jul 1999 15:31:43 -0800
From: Ashish Kadakia <anonymous@web.remarq.com>
Subject: Re: perlscript in IE
Message-Id: <931303905.4011@www.remarq.com>

Thanks, It worked..

Any idea what is the advantage over Javascript besides
regex? Can it take variable from Javascript and vice versa?
(is it required??) where I can find more pointers regarding
this??

ANK



**** Posted from RemarQ - http://www.remarq.com - Discussions Start Here (tm) ****


------------------------------

Date: 6 Jul 1999 18:39:16 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: perlscript in IE
Message-Id: <slrn7o54se.tch.abigail@alexandra.delanet.com>

Ashish Kadakia (anonymous@web.remarq.com) wrote on MMCXXXV September
MCMXCIII in <URL:news:931286282.1640@www.remarq.com>:
==
==  Anyone knows how I can view cleint side Perlscript in IE.
== I downloaded some example, but cannot view in the browser.
== It doesn't display anything.. Do I need sometype of dlls?


You are in the wrong place. Please call IE tech support, or find a
group dealing with IE.

Here we deal with Perl. IE problems are uninteresting.



Abigail
-- 
sub _'_{$_'_=~s/$a/$_/}map{$$_=$Z++}Y,a..z,A..X;*{($_::_=sprintf+q=%X==>"$A$Y".
"$b$r$T$u")=~s~0~O~g;map+_::_,U=>T=>L=>$Z;$_::_}=*_;sub _{print+/.*::(.*)/s}
*_'_=*{chr($b*$e)};*__=*{chr(1<<$e)};
_::_(r(e(k(c(a(H(__(l(r(e(P(__(r(e(h(t(o(n(a(__(t(us(J())))))))))))))))))))))))


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Tue, 06 Jul 1999 16:55:59 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: perlscript in IE
Message-Id: <3782978F.F3E905E8@mail.cor.epa.gov>

Ashish Kadakia wrote:
> 
> Thanks, It worked..
> 
> Any idea what is the advantage over Javascript besides
> regex? Can it take variable from Javascript and vice versa?
> (is it required??) where I can find more pointers regarding
> this??

Let me ask this another way.  Is there any advantage to
using JavaScript, other than dinky little client-side toys
which anyone with a thought to security has already switched
off?  In case you can't tell from my emphasis, the answer is
'no'.

Perhaps you'd be interested in reading perlfaq1, the first
part of the Perl FAQ.  There you will find a pointer to
comparisons of Perl with other languages.  You will find a
discussion of some of the many things you can do with Perl.
Regexes are just one of the many strong points of the 
language.  It is also one of the best 'glue' languages you'll
find [i.e. yes it can interact with JavaScript and canned
programs].

HTH,
David
-- 
David Cassell, OAO                     cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician


------------------------------

Date: 7 Jul 1999 09:36:38 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: perlscript in IE
Message-Id: <37831196@newsread3.dircon.co.uk>

Frank de Bot <debot@xs4all.nl> wrote:
> Jonathan Stowe wrote:
> 
>> On Tue, 06 Jul 1999 10:38:00 -0800 Ashish Kadakia wrote:
>> > Hi,
>> >  Anyone knows how I can view cleint side Perlscript in IE.
>> > I downloaded some example, but cannot view in the browser.
>> > It doesn't display anything.. Do I need sometype of dlls?
>> >
>>
>> You need to download and install Activeperl <http://www.activestate.com>
>> and answer yes if it asks you about it ...
>>
> 
> Download a http server. http://www.apache.org/
> You will be able to execute scripts in your browser. Further instructions include
> at the website.
> 

That doesnt answer his question and is off-topic anyhow.

/J\
-- 
"I want to be like Oprah" - Sarah, Duchess of York


------------------------------

Date: Wed, 7 Jul 1999 01:32:20 -0400
From: "Jody Fedor" <JFedor@datacom-css.com>
Subject: Re: Plain text from HTML
Message-Id: <7lumtp$76l$1@plonk.apk.net>


Abigail wrote in message ...
>Jody Fedor (JFedor@datacom-css.com) wrote on MMCXXXV September MCMXCIII
>in <URL:news:7ls1e6$f02$1@plonk.apk.net>:
>""
>"" Abigail wrote in message ...
>"" >Jody Fedor (JFedor@datacom-css.com) wrote on MMCXXXIV September
MCMXCIII
>"" >in <URL:news:7lr965$std$1@plonk.apk.net>:
>"" >&&
>"" >&& An easy regex is:
>"" >&&
>"" >&&  $html =~ s/<[^>]+>//g;
>"" >&&
>"" >&& This will basically eliminate all HTML tags from your variable.
>"" >
>"" >Yes. And perhaps a lot more. Or it might leave garbage behind. If
>"" >you are very lucky, it will work. Just don't expect it to work.
>"" >
>"" >Read the FAQ. But that requires understanding issues, and isn't
>"" >a very simplistic approach as the regex above.
>""
>"" Jordan, before Abigail has a stroke on this one,  when processing html
>"" files, you have to take into account many things.  Before using the
above
>"" regex, I normally also do the following:
>""
>""     # extract the words from the HTML
>""
>""  $html =~ s/<br>/ /ig;              # Change all <br> to spaces
>
>But what if "<br>" isn't a tag? What if you have "<br >"?
>What if you have "<br clear = 'all'>"?

Abigail, I appreciate (most of the time) all your remarks and comments, they
make me think, and thinking is good.  I am the author of all my html code.
For the purposes of my webcrawler, I know there isn't any <br clear = 'all'>
or "<br>" because I didn't program or code them in there.

>
>""  $html =~ s/<[^>]+>//g;           # Remove HTML tags
>
>Nope, it doesn't.
>

This removes ALL tags in my html pages.

>This is also odd. You say "before using the above regex, I normally do the
>following". But said regex is number 2 on the list....
>
>""  $html =~ s/\&(\w+)\;//g;         # Remove any &nbsp; types
>
>But it keeps the &nbsp ones. And it removes all the other &entities that
>have a trailing ;, like accented letters that are part of a word.
>It also keeps &#160; and friends. Why escape the & and the ;? And why
capture?
>

Once again I have coded my html and there aren't any &nbsp; without ; what
would be the purpose?  Also I don't want to find a page on my site by
searching on &nbsp;! :-)

>""  $html =~ s/\n/ /g;                   # Remove all cr
>
>Why, if the goal is to extract \w+?
>
>""  $html =~ s/\s+/ /g;                 # Replace 1 or more sp with single
>
>Why, if the goal is to extract \w+?
>

Just makes it easier to read the $html variable when displaying it.

>""  $html =~ s/(\[|\])//g;                # Remove all brackets
>
>Why, if the goal is to extract \w+? And why remove [ and ], but not
>(, ), {, }, <, > and lots of other punctuation? And why capture?


When there are anchors to other pages, ie [Home][Back][Sitemap] I'd like a
user to be able to find these links by entering the words found in those
brackets.  I haven't any {} <> (they've been stripped) in my code.


>
>""  $html =~ tr/A-Z/a-z/;              # Make everything lowercase
>
>Goodie. Why not $html = lc $html? Or don't you want to lowercase
>accented letters?
>


For the reason Uri gave, and I wasn't smart enought to come up with that
one!  :-)

>""  my @words = ($html =~ /\w+/g);         # List of all the words in the
>
>Cool. That gives funny results with hypenated words and words like "don't".
>


There aren't any hyphenated words in my html code.  There really isn't any
text except for Machine part numbers, and model numbers.

>And I don't understand why "foo(bar)" will be classified as a foo and a
>bar, but "foo[bar]" will be a foobar.


Never in my code, don't have to worry about it.

>
>What do you do with SCRIPT and other CDATA elements? What do you do
>with marked sections? How do you deal with comments? Why don't you
>use work of people who have shown to be far more knowledgeable than
>you when it comes to parsing HTML?
>


You got me there, maybe we'll strip out the SCRIPT tags and any code in
between.  See... you got me thinking again and thinking is good!  Don't have
CDATA elements.  Don't use comments. (A Perl script generates the html code
from a : delimited file I've extracted from an EXCEL spreadsheet.)  Only
more knowlegeable if they know what I want to parse!


>
>
>Abigail


Abi, you're the best and I appreciate your constructive criticism.

Jody




------------------------------

Date: 07 Jul 1999 01:24:05 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Plain text from HTML
Message-Id: <x73dz1uj62.fsf@home.sysarch.com>

>>>>> "JF" == Jody Fedor <JFedor@datacom-css.com> writes:

  JF> good!  Don't have CDATA elements.  Don't use comments. (A Perl
  JF> script generates the html code from a : delimited file I've
  JF> extracted from an EXCEL spreadsheet.)  Only more knowlegeable if
  JF> they know what I want to parse!

that is a very important piece of information. if these pages are
autogenerated then parsing them directly is a fine thing to do, as long
as you control both the generator code and the parser. then the fact
that it is html is a moot point, it is a file with a known fixed
format. if you had said this earlier, then much of this thread would
have been different.

uri

-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
uri@sysarch.com  ---------------------------  Perl, Internet, UNIX Consulting
Have Perl, Will Travel  -----------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com
"F**king Windows 98", said the general in South Park before shooting Bill.


------------------------------

Date: 7 Jul 1999 00:39:28 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Plain text from HTML
Message-Id: <slrn7o5pvq.tch.abigail@alexandra.delanet.com>

Jody Fedor (JFedor@datacom-css.com) wrote on MMCXXXVI September MCMXCIII
in <URL:news:7lumtp$76l$1@plonk.apk.net>:
:: 
:: Abigail, I appreciate (most of the time) all your remarks and comments, they
:: make me think, and thinking is good.  I am the author of all my html code.
:: For the purposes of my webcrawler, I know there isn't any <br clear = 'all'>
:: or "<br>" because I didn't program or code them in there.


Yes, but you were giving advice to others. And they didn't indicate they
were going to apply that on your pages. s/<br>/ /ig might work on your
pages, it doesn't in general. Please refrain from posting solutions that
only work in specific setups, unless you make it clear in which setup
they work. That will make the discussion a lot cleaner, and it will
avoid people getting frustrated because it doesn't work for their pages.


:: You got me there, maybe we'll strip out the SCRIPT tags and any code in
:: between.  See... you got me thinking again and thinking is good!  Don't have
:: CDATA elements.


But in the previous sentence you claim to have SCRIPT tags. Hmmm,
that would mean your DOCTYPE declaration indicates it's an early version
of HTML 3.2, right? Otherwise, if it's any of the HTML 4.0s, or the
final verions of HTML 3.2, SCRIPT is a CDATA element.

Do you know what a CDATA element *is*?



Abigail
-- 
sub f{sprintf'%c%s',$_[0],$_[1]}print f(74,f(117,f(115,f(116,f(32,f(97,
f(110,f(111,f(116,f(104,f(0x65,f(114,f(32,f(80,f(101,f(114,f(0x6c,f(32,
f(0x48,f(97,f(99,f(107,f(101,f(114,f(10,q ff)))))))))))))))))))))))))


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Wed, 7 Jul 1999 03:48:17 -0400
From: "Jody Fedor" <JFedor@datacom-css.com>
Subject: Re: Plain text from HTML
Message-Id: <7luus9$bgp$1@plonk.apk.net>


Abigail wrote in message ...
>Jody Fedor (JFedor@datacom-css.com) wrote on MMCXXXVI September MCMXCIII
>in <URL:news:7lumtp$76l$1@plonk.apk.net>:
>Do you know what a CDATA element *is*?


No, but your PERL question is?  LOL.  Just kidding.  I just use the old
<script language="JavaScript"> </script> tags.  What version is this?  The
old one I guess.  Once again, you got me there.  I only need to know enough
HTML to get the job done.  I'll have to bone up on the new stuff so I don't
caught with questions like you are posing.

Even though you pick on me I still like you alot Abigail!  You make me laugh
alot.

Jody






------------------------------

Date: Wed, 07 Jul 1999 02:46:33 GMT
From: R.Joseph <streaking_pyro@my-deja.com>
Subject: Polling sockets
Message-Id: <7luf26$cb$1@nnrp1.deja.com>

I am trying to write a socket-based server using IO::Select and
IO::Socket.  It was suggested by someone who is more advanced than me
and has done what I am doing to poll the sockets to allow multiple
connections.  This I don't fully understand; what does he mean when he
says this?  Any help is great! Thanks!

--
R.Joseph
http://www.24-7design.com
http://bowdown.to


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Wed, 07 Jul 1999 14:39:33 GMT
From: Jeff Pascoe <brownstar@my-deja.com>
Subject: Problem with a SQL statement in a Perl script
Message-Id: <7lvor3$ea4$1@nnrp1.deja.com>

I can't seem to get an embedded SQL statement in my cgi script to work.
It is written with perl(the script) and is not reporting any errors
when run. The database is an oracle database and the table is already
created. If I use a select statement on the same database it works. It
also works if I run the insert directly from a SQL prompt
Could someone please tell me what I am doing wrong.

An html form calls the script and passes the $fooval variable
******************************************************************
#!/usr/local/bin/perl -w

use CGI_Lite;
use DBI;

$ENV{'ORACLE_HOME'} = '/oracle/app/oracle/product/805';
$ENV{'ORACLE_SID'} = 'wwwdev';
require ("Library.pl");

1;
$|=1;

$dbh = &Connect;
unless($dbh) {
   print "Can't connect to database\n";
   exit 0;
}

$cgi = new CGI_Lite();

print "Content-type: text/html\n\n";
$cgi->set_directory ("/www/free/htdocs/db/freeform") || die "Directory
doesn't exist.\
n";
$cgi->add_timestamp (0);
$cgi->set_platform("UNIX");
$cgi->set_file_type ("handle");
%data = $cgi->parse_form_data (); #parses the querystring hash

$cgi->create_variables (\%data); #creates $fooval from the key fooval
                                 #and assigns it the value of the key

$sql = "INSERT INTO bar (foo) VALUES ('$fooval')";
$sh = $dbh->prepare($sql);
 print $dbh->errstr;
$sh->execute;
 print $dbh->errstr;
print "$sql\n";
print "The fooval is $fooval\n";
exit (0);


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Wed, 07 Jul 1999 05:17:17 GMT
From: whos_john_galt@my-deja.com
Subject: Program Architecture?
Message-Id: <7lunsm$340$1@nnrp1.deja.com>

Thanks in Advance.

I am only several months into studying Perl and have used all of my
program learning to create cgi:

I have recently finished writing a rather simple script that, once
called generates an HTML form, when the user is done another is
generated, then this again, and finally a form verifying all entered
information. Once accepted the script writes to several databases,
sends a few emails, and generates a closing page.

Pretty simple cgi. This script returns to itself each time the newly
generated forms are completed, thus the entire script is over 2000
lines in length.

Is there any efficiency gained in breaking this size script into
smaller parts, instead of one large entity?

Any wisdom would be greatly appreciated...

Joey
-The Race is to the Driven, not the Swift.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Wed, 07 Jul 1999 13:30:46 GMT
From: Joe Tseng <jtseng@wsmg.digex.net>
Subject: Q: ASP sessions b/t VBScript and Perl
Message-Id: <37835686.995693D4@wsmg.digex.net>

I want to start creating ASP *cough* scripts using Perl and would like
to know something...  If I incorporate sessions (or anything that is
server-side dependent) under VBScript *cough* can I pass those values to
Perl or other types of ASP scripts?

Thanx.

-- 

Joe Tseng
jtseng@wsmg.digex.net
joe_tseng@hotmail.com
(240) 305-5920

"Chicks dig the long ball."
  -- Greg Maddux


------------------------------

Date: Tue, 06 Jul 1999 23:42:28 GMT
From: danmex@my-deja.com
Subject: Q:Script too long, session times out??
Message-Id: <7lu492$sm8$1@nnrp1.deja.com>

Hello,

Does anybody out there know if it is posible for a perl program to
execute another perl program and NOT wait for the output?

The script I worte takes too long and the browser times out. I would
like to write a small script that answers the browser and executes the
perl program that takes too long.

I have tried answering the browser first and then taking care of the
long process, but aparentrly ZEUS web server (the ISP's server where
this is running) does not answer the browser until all of the script
has been executed.

Any Ideas (any, realy!) are sincerly apreciated.

Thank's
Dan


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: 6 Jul 1999 19:52:14 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Q:Script too long, session times out??
Message-Id: <slrn7o5959.tch.abigail@alexandra.delanet.com>

danmex@my-deja.com (danmex@my-deja.com) wrote on MMCXXXV September
MCMXCIII in <URL:news:7lu492$sm8$1@nnrp1.deja.com>:
[] 
[] Does anybody out there know if it is posible for a perl program to
[] execute another perl program and NOT wait for the output?


fork() and exec();



Abigail
-- 
sub A::TIESCALAR{bless\my$x=>A};package B;@q=qw/Hacker Another
Perl Just/;use overload'""'=>sub{pop @q};sub A::FETCH{bless\my
$y=>B}; tie my $shoe => 'A';print "$shoe $shoe $shoe $shoe\n";


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Tue, 06 Jul 1999 17:13:52 -0500
From: Brett Denner <Brett.W.Denner@lmco.com>
Subject: read vs. sysread vs. <FH> vs. fscanf() vs....
Message-Id: <37827FA0.93FC13DD@lmco.com>

I'm writing a module that will read data from a file that may be in ASCII or
binary format.  Part of the data will be read by the Perl module and part of
it (for speed and efficiency reasons) will be read by an XS module written
in C.  Thus, depending on the format of the file (which will not be known
ahead of time), I may need to read the data with Perl functions read(),
sysread(), and/or <FH>; and C functions read(), fread(), and/or fscanf().

Once I open a filehandle in Perl I don't want to have to reopen the file (to
avoid a race condition, if that's the right term), so I need to use a set of
I/O statements that are compatible with open() or sysopen() in both Perl and
C.

Does anyone have any insights into this problem?

Thanks,

Brett

 Brett W. Denner                                Lockheed Martin TAS
 Brett.W.Denner@lmco.com                        P.O. Box 748
 (817) 935-1144 (voice)                         Fort Worth, TX 76101
 (817) 935-1212 (fax)                           MZ 9332


------------------------------

Date: 6 Jul 1999 18:42:47 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Receiving binaries
Message-Id: <slrn7o5532.tch.abigail@alexandra.delanet.com>

Brendan Reville (breville@mpce.mq.edu.au) wrote on MMCXXXV September
MCMXCIII in <URL:news:7lt254$11i$1@sunb.ocs.mq.edu.au>:
,, 
,, Can I post a reasonable amount of binary data (say a several kilobyte
,, graphical image) through a form via CGI to a Perl script?  Or is this too
,, much data?


For the perl part of the question, I refer you to the Perl manual. For
the HTTP part, I refer you to the HTTP RFC. For the CGI part, I refer
you to the CGI specification. For the server part, I refer you to tech
support of your server. For the browser part, I refer you to tech support
of the browsers you want to support.



Abigail
-- 
perl -we '$_ = q ;4a75737420616e6f74686572205065726c204861636b65720as;;
          for (s;s;s;s;s;s;s;s;s;s;s;s)
              {s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Tue, 6 Jul 1999 21:10:22 -0400
From: Steven Smolinski <sjs@yorku.ca>
Subject: Re: Receiving binaries
Message-Id: <931309922.1498978991@newshub.ccs.yorku.ca>

On Tue, 06 Jul 1999, Abigail wrote:
>Brendan Reville (breville@mpce.mq.edu.au) wrote on MMCXXXV September
>MCMXCIII in <URL:news:7lt254$11i$1@sunb.ocs.mq.edu.au>:
 
>,, Can I post a reasonable amount of binary data (say a several kilobyte
>,, graphical image) through a form via CGI to a Perl script?  Or is this too
>,, much data?

>For the perl part of the question, I refer you to the Perl manual. For
>the HTTP part, I refer you to the HTTP RFC. For the CGI part, I refer
>you to the CGI specification. For the server part, I refer you to tech
>support of your server. For the browser part, I refer you to tech support
>of the browsers you want to support.

If someone on the street asks you for the time, do you refer him to a local
jeweller to buy a watch?  Or perhaps you just hack him into small pieces and go
about your day.  Or maybe you just eat him whole...




------------------------------

Date: Wed, 7 Jul 1999 12:38:16 +1000
From: e-lephant@b-igpond.com (elephant)
Subject: Re: Receiving binaries
Message-Id: <MPG.11ed689e9fb810d8989b0b@news-server>

Steven Smolinski writes ..
>On Tue, 06 Jul 1999, Abigail wrote:
>>For the perl part of the question, I refer you to the Perl manual. For
>>the HTTP part, I refer you to the HTTP RFC. For the CGI part, I refer
>>you to the CGI specification. For the server part, I refer you to tech
>>support of your server. For the browser part, I refer you to tech support
>>of the browsers you want to support.
>
>If someone on the street asks you for the time, do you refer him to a local
>jeweller to buy a watch?  Or perhaps you just hack him into small pieces and go
>about your day.  Or maybe you just eat him whole...

if I'm walking in front of a clock store .. across the road from the town 
hall (which as a clock on it) .. and someone who's wearing a giant clock 
around their neck stops me and asks me for the time then I point out that 
they're wearing a clock and I make fun of them for asking someone else 
instead of just reading their own clock or looking in the clock shop or 
at the town hall clock

especially when they're the hundredth clock-wearing person to ask me that 
question in that place that day

-- 
 jason - remove all hyphens for email reply -


------------------------------

Date: 6 Jul 1999 21:47:56 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Receiving binaries
Message-Id: <slrn7o5fu6.tch.abigail@alexandra.delanet.com>

Steven Smolinski (sjs@yorku.ca) wrote on MMCXXXVI September MCMXCIII in
<URL:news:931309922.1498978991@newshub.ccs.yorku.ca>:
,, On Tue, 06 Jul 1999, Abigail wrote:
,, 
,, >For the perl part of the question, I refer you to the Perl manual. For
,, >the HTTP part, I refer you to the HTTP RFC. For the CGI part, I refer
,, >you to the CGI specification. For the server part, I refer you to tech
,, >support of your server. For the browser part, I refer you to tech support
,, >of the browsers you want to support.
,, 
,, If someone on the street asks you for the time, do you refer him to a local
,, jeweller to buy a watch?  Or perhaps you just hack him into small pieces and go
,, about your day.  Or maybe you just eat him whole...


I usually just point to the nearest church tower.



Abigail
-- 
echo "==== ======= ==== ======"|perl -pes/=/J/|perl -pes/==/us/|perl -pes/=/t/\
 |perl -pes/=/A/|perl -pes/=/n/|perl -pes/=/o/|perl -pes/==/th/|perl -pes/=/e/\
 |perl -pes/=/r/|perl -pes/=/P/|perl -pes/=/e/|perl -pes/==/rl/|perl -pes/=/H/\
 |perl -pes/=/a/|perl -pes/=/c/|perl -pes/=/k/|perl -pes/==/er/|perl -pes/=/./;


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 99)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

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 V9 Issue 62
************************************


home help back first fref pref prev next nref lref last post