[6847] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 472 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed May 14 02:07:30 1997

Date: Tue, 13 May 97 23:00:25 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Tue, 13 May 1997     Volume: 8 Number: 472

Today's topics:
     Re: [Q] DynaLoader on irix <tom@jellydonut.com>
     Re: CGI Environment vars (Tung-chiang Yang)
     Re: CGI Scripts With MacPerl: How to Handle Multiple Re (Abigail)
     CGI/perl execution problems..... <zonycat@flash.net>
     Re: CGI/perl execution problems..... <zonycat@flash.net>
     Grep weather info. <hohiu@ecf.utoronto.ca>
     Re: Grep weather info. (brian d foy)
     Help! Stupid Problem w Script (Bob Clarke)
     Re: Help! Stupid Problem w Script (Tung-chiang Yang)
     inclu-OR in regex <alex.t.silverstein@bender.com>
     Re: Learning PERL (Tim Franklin)
     Re: Mime types for .cgi, .pl ?? <zonycat@flash.net>
     Re: More problems with FileHandle (Tim  Smith)
     NO NO PERL is NOT CGI and CGI is NOT PERL (was: Re: Pri (Magnus Bodin)
     Re: problem with script that processes a form <markw@ciue.rpi.edu>
     Re: Q: Is Win95 Perl5 select() for device COM1 implemen <tomjenn@pacbell.net>
     Sorting by date with format MMDDYY <jlowens@ptconnect.infi.net>
     Statistics for comp.lang.perl.misc <gbacon@cs.uah.edu>
     Re: Timeline for better support for tied arrays? <chaimf@cris.com>
     Re: Timer on my perl script (Magnus Bodin)
     Re: Want perl on Win95 Platform <zonycat@flash.net>
     Re: Want perl on Win95 Platform (Magnus Bodin)
     Weather Forecasts via perl <wiseb@cs.rpi.edu>
     Re: Weather Forecasts via perl (brian d foy)
     Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: Tue, 13 May 1997 22:20:53 -0700
From: Tom Wells <tom@jellydonut.com>
To: Joseph Ryan <jfryan@orion.nhgri.nih.gov>
Subject: Re: [Q] DynaLoader on irix
Message-Id: <33794BB5.7F32CC3E@jellydonut.com>

Joseph Ryan wrote:
 
> /-------------------------/
> | I appreciate any help.  |
> | I read the INSTALL      |
> | I read the FAQ          |
> | I searched Deja News    |
> /-------------------------/
> 

Now read the man page for DSO!

Tom


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

Date: Wed, 14 May 1997 02:56:30 GMT
From: tcyang@netcom.com (Tung-chiang Yang)
Subject: Re: CGI Environment vars
Message-Id: <tcyangEA5HI6.w0@netcom.com>

CGI groups.  This is the pointer you asked for.

===================
The Nightshadow (nightshadow@thevortex.com.nospam) wrote:
: Can some1 pls give me a pointer to a list of environment variables
: used in CGI? Thanks.

--
Tung-chiang Yang                       tcyang@netcom.com

soc.culture.taiwan, soc.culture.china (by SCC FAQ Team) FAQ's:
   http://www.clever.net/tcyang/Taiwan_faq.shtml, China_faq.shtml


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

Date: Mon, 12 May 1997 01:13:50 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: CGI Scripts With MacPerl: How to Handle Multiple Requests for the Same Script
Message-Id: <EA1nF2.Hvo@nonexistent.com>

On Sun, 11 May 1997 17:23:14 -0500, stuart wrote in comp.lang.perl.misc
URL: news:Stuart_Weisberg-1105971723140001@bootp-69.caswell.brown.edu:
++ I've written a CGI perl script in MacPerl. I need to know how to make a
++ Macintosh web server deal with multiple requests for the same perl script.
++ Currently the request that gets there first gets executed and the second
++ one gets ignored. I'd thank you for a reply.

How about comp.infosystems.www.servers.mac?


Abigail
-- 
    Anyone who slaps a "this page is best viewed with Browser X" label
    on a Web page appears to be yearning for the bad old days, before the
    Web, when you had very little chance of reading a document written on
    another computer, another word processor, or another network.
	    [Tim Berners-Lee in Technology Review, July 1996]


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

Date: Sun, 11 May 1997 18:32:18 -0700
From: Zonycat <zonycat@flash.net>
Subject: CGI/perl execution problems.....
Message-Id: <33767322.2593@flash.net>

I have a mess here.  I know, what a way to start.  Here's the scoop.....

I am trying to run cgi scripts, even the example scripts found in the
CGI code (index.htm and tryit.cgi). On  my local PC, I can not get them
to run.  Here is waht I have installed...

* WIN95 with perl5 in my c:\perl directory tree.  I have CGI installed
too in its directory tree.
* I have associated .pl, .cgi with the perl script. Even followed
directions in FAQ 4.10
* Check registry for activeware.  Found it is correct for perl5.
* Autoexec.bat has the perl directory in path.
* Installed MS PWS (Personal Web Server)
      Made sure that the W3svc/parameters/Script Map has the .cgi, .pl
entries to be
      c:\perl\bin\perl.exe %s
* Using MS Internet Explorer as default.  (have Netsacpe, but makes no
difference which is default)
* In my webshare/wwwroot directory, I have placed the index.htm,
tryit.cgi, and even CGI.pm .
   (BTW, CGI.PM is in its lib directory too)

When I call the tryit.cgi script from the Index.htm file, some perl
execution window pops up and disappears very quickly.  Only notice
something about can't open.....  Window is way too quick to read.  Guess
it is trying to open a file in the "c:\windows\Temporary Internet Files"
directory.  If that is the case, how can I
prevent that from happening?  I know you can not use these long file
names as seen above.

Netscape, just wants me to save the cgi script it is trying to execute.

If I execute the cgi script from the command line in a DOS window, it
states that I am in offline and to enter the name=value pairs.  I see
why that is happening because the argv variables are not set properly. 
If I enter name=value pairs, then I see in the window a 'html' generated
script form the tryit.cgi script.

Basically what am I doing wrong, missing?  I want to execute cgi scripts
on my local PC.  All the parts seem to be there, but not completly it
seems.  What else do I need to do?  Am I missing some other part?  Any
other information needed?

Thanks, for any help,

Dennis
P.S.
I accept partial answers.  You partial credit is better than nothing at
all :))


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

Date: Tue, 13 May 1997 20:43:22 -0700
From: Zonycat <zonycat@flash.net>
Subject: Re: CGI/perl execution problems.....
Message-Id: <337934DA.1212@flash.net>

I have an update to my solution.  It had some "holes" in it and since
have corrected them.

In the registry entries for the W3Svr of .cgi and .pl,  I did not
include the quote marks around the %s.  It should be after the .exe
 ....\perl.exe "%s" "%s"

I guess, the quote marks allow for 'long file names' under WIN95.

Also, my home directory did not have execution permission. It had only
read only permission.

I also have now restored my temp internet files location back to the old
READ ONLY location it had before.

Oh, yes, I discovered that after I wrote the "I did it Mail", that the
#! did not have to be deleted.  I thought it would be treated as a
comment.  Sure enough it is.

I even changed my file type association of the .cgi and .pl files to my
favorite editor.  I like that idea.  All posts and information I have
seen says change the file type association to that of the perl.exe file.

Dennis

Zonycat wrote:
> 
> HEY I FIGURED IT OUT!!!!!!!!
> 
> Spending a whole weekend at this has been no fun. More hints for people
> having similar problems....
> 
> MS Internet Explorer will by DEFAULT set up a cache directory in
> "c:\windows\Temporary Files".  Well perl HATES this!  This cach
> directory need to be moved to some other places with the standard dos
> naming convention.  Also the directory must be executable.  This really
> burned me.  Also the registry MUST include also the .cgi entry as
> described in the earlier posts for .pl.  [ The local in registry:
> "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Svc\Parameters\Script
> Map" ] (don't forget the %s at end of line i.e. c:\perl\bin\perl.exe %s)
> 
> BTW, if you do not have the registry setup correctly, you get the HTTP1.
> 500 error.  Also after you modify the registry, besure to reboot your
> PC.
> 
> If you never modified your registry before, please make a backup copy
> first.
> 
> Also, in case some of you missed it... Get rid of the #! line in your
> CGI script for WIN95 executions.  Make sure you have a path for perl
> correct in Autoexec.bat and that both .cgi and .pl are associacted with
> perl.exe (full path) for file types.
> 
> There have been other useful posts here, but I do not have them handly.
> 
> THANKS for all that sent me mail for suggestions.  I am VERY grateful.
> 
> Dennis
> 
> Zonycat wrote:
> >
> > I have a mess here.  I know, what a way to start.  Here's the scoop.....
> >
> > I am trying to run cgi scripts, even the example scripts found in the
> > CGI code (index.htm and tryit.cgi). On  my local PC, I can not get them
> > to run.  Here is waht I have installed...
> >
> > * WIN95 with perl5 in my c:\perl directory tree.  I have CGI installed
> > too in its directory tree.
> > * I have associated .pl, .cgi with the perl script. Even followed
> > directions in FAQ 4.10
> > * Check registry for activeware.  Found it is correct for perl5.
> > * Autoexec.bat has the perl directory in path.
> > * Installed MS PWS (Personal Web Server)
> >       Made sure that the W3svc/parameters/Script Map has the .cgi, .pl
> > entries to be
> >       c:\perl\bin\perl.exe %s
> > * Using MS Internet Explorer as default.  (have Netsacpe, but makes no
> > difference which is default)
> > * In my webshare/wwwroot directory, I have placed the index.htm,
> > tryit.cgi, and even CGI.pm .
> >    (BTW, CGI.PM is in its lib directory too)
> >
> > When I call the tryit.cgi script from the Index.htm file, some perl
> > execution window pops up and disappears very quickly.  Only notice
> > something about can't open.....  Window is way too quick to read.  Guess
> > it is trying to open a file in the "c:\windows\Temporary Internet Files"
> > directory.  If that is the case, how can I
> > prevent that from happening?  I know you can not use these long file
> > names as seen above.
> >
> > Netscape, just wants me to save the cgi script it is trying to execute.
> >
> > If I execute the cgi script from the command line in a DOS window, it
> > states that I am in offline and to enter the name=value pairs.  I see
> > why that is happening because the argv variables are not set properly.
> > If I enter name=value pairs, then I see in the window a 'html' generated
> > script form the tryit.cgi script.
> >
> > Basically what am I doing wrong, missing?  I want to execute cgi scripts
> > on my local PC.  All the parts seem to be there, but not completly it
> > seems.  What else do I need to do?  Am I missing some other part?  Any
> > other information needed?
> >
> > Thanks, for any help,
> >
> > Dennis
> > P.S.
> > I accept partial answers.  You partial credit is better than nothing at
> > all :))


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

Date: Sun, 11 May 1997 20:25:56 -0400
From: Matthew Ho <hohiu@ecf.utoronto.ca>
Subject: Grep weather info.
Message-Id: <33766394.7518@ecf.utoronto.ca>

I have an assignment which requires me to grep weather information from
the net and shows it on my web page.  How can I do that in Perl?  Is
there any modules that I can download to make the task simpler?

Any input is appreciated.
Thanks,
Matthew
hohiu@ecf.utoronto.ca


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

Date: Sun, 11 May 1997 22:45:50 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: Grep weather info.
Message-Id: <comdog-1105972245500001@nntp.netcruiser>

In article <33766394.7518@ecf.utoronto.ca>, Matthew Ho
<hohiu@ecf.utoronto.ca> wrote:

> I have an assignment which requires me to grep weather information from
> the net and shows it on my web page.  How can I do that in Perl?  Is
> there any modules that I can download to make the task simpler?

the LWP and CGI modules [1] will make your life easier.  you'll have more
time to spend with your pets and SO(s). :)

[1] find them at
CPAN - Comprehensie Perl Archive Network.  find one through
<URL:http://www.yahoo.com>

[2]
Web Client Programming with Perl
Clinton Wong
ISBN 1-56592-214-X
<URL:http://www.ora.com>

-- 
brian d foy                              <URL:http://computerdog.com>                       
unsolicited commercial email is not appreciated


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

Date: 12 May 1997 00:57:28 GMT
From: sjguitar@comet.connix.com (Bob Clarke)
Subject: Help! Stupid Problem w Script
Message-Id: <5l5pto$4tm@beast.connix.com>

This is driving me nuts, not to mention the amount of time it's eating up.

This is a simple guestbook program, it should be hard to screw up,
None the less it won't run.  Perl tells me the problem is in line 27.
That I have a 'bad name' after '::'.  I don't see how it could be a
bad name seeing how I use it later with no error messages.  And if
I remove the filehandle 'GUEST' and output to the screen it runs fine!
So some how the 'bad name' is ok for output to the screen but not to
a file!

Any help will be greatly appreciated!

The program reads a 'get' form (I've sub'd a string inplace of an
ENV{'QUERY_STRING'}.  Processes the input and appends it to an
existing guestbook file.  Real simple!

I'm running perl on Windows 95, it doesn't work on my ISP server's
either, yes I did the chmod.

Thanks, Bob Clarke


PERL PROGRAM FOLLOWS:

#!/usr/bin/perl

#program to add entries to guestbook.txt and displays input back to visitor
#rev d 5/11/97

#$temp=$ENV{'QUERY_STRING'};
$temp="name=bob&email=bob%40home.com&comment=hello+world+out+there";

@pairs=split(/&/,$temp);

foreach $item(@pairs)
	{
	($key,$content)=split(/=/,$item);
	$content=~tr/+/ /;
	$content=~s/%([a-fA-F0-9] [a-fA-F0-9])/pack("C",hex($1))/eg;
	$content=~s/<!--(.|\n)*-->//g;
	$content=~s/<([^>]|\n)*>//g;
	$fields{$key}=$content;
	}

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
if (length ($min)==1) {$min='0'.$min;};
$date="$mon/$mday/$year $hour:$min";

open (GUEST,">>guestbook.txt") || die "Can't Open guestbook.txt for outputting: $!\n;

#PERL SAYS THE NEXT LINE HAS A BAD NAME AFTER :: 
#THIS WILL RUN IF I REMOVE THE FILEHANDLE 'GUEST' AND OUTPUT TO 
#THE SCREEN !

print GUEST $date,"::$fields{'name'}::$fields{'email'}::$fields{'comment'}\n";
close (GUEST);

print "content-type:  text/html\n\n";
print "<html>\n";
print "<head>\n";
print "<title>Kelly's Guestbook Page Response</title>\n";
print "</head>\n";
print "<BODY BGCOLOR=#FF00FF TEXT=#000000 link=#FFFFFF>\n";
print "<h2>We got it! <i>Thanks for writing!</i></h2><br>\n";
print "<h2>On $date $fields{'name'} <i>says...</i></h2>\n";
print "$fields{'comment'}<br>\n";
print "&lt;<a href=\"mailto:$fields{'email'}\">";
print "$fields{'name'}</a>&gt<br>\n";
print "<br><br><a href=http://www.commerce-way.com/kellysworld>Back To Kelly's World</a>";
print "</body>\n";
print "</html>\n";


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

Date: Mon, 12 May 1997 02:12:46 GMT
From: tcyang@netcom.com (Tung-chiang Yang)
Subject: Re: Help! Stupid Problem w Script
Message-Id: <tcyangEA1q5A.GAn@netcom.com>

You forgot to use " to terminate the previous line (marked by "^" below)
for the "die" statement.  Posted and mailed.

==========================================
Bob Clarke (sjguitar@comet.connix.com) wrote:

: (deleted)

: open (GUEST,">>guestbook.txt") || die "Can't Open guestbook.txt for outputting: $!\n;
      ^

: #PERL SAYS THE NEXT LINE HAS A BAD NAME AFTER :: 
: #THIS WILL RUN IF I REMOVE THE FILEHANDLE 'GUEST' AND OUTPUT TO 
: #THE SCREEN !

: print GUEST $date,"::$fields{'name'}::$fields{'email'}::$fields{'comment'}\n";
: close (GUEST);

: (deleted)

--
Tung-chiang Yang                       tcyang@netcom.com

soc.culture.taiwan, soc.culture.china (by SCC FAQ Team) FAQ's:
   http://www.clever.net/tcyang/Taiwan_faq.shtml, China_faq.shtml


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

Date: Tue, 13 May 1997 20:50:38 -0700
From: alex <alex.t.silverstein@bender.com>
Subject: inclu-OR in regex
Message-Id: <3379368E.29C1@bender.com>

I want to match the letters a b and c in a string at least once
but in any order. The part I don't get is how to say "in any order"
in a regex (I can't seem to find this explained well in 
"Learning Perl"). I tried the following:

$dil ="acb"
$dil =~ s/(a)+(b)+(c)+/something/

but this doesn't work. Thanks for helping me. Alex

-- 
"just what are people for?" KV


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

Date: 12 May 1997 12:03:36 GMT
From: tim@demon.net (Tim Franklin)
Subject: Re: Learning PERL
Message-Id: <5l70uo$o6l@mayday.support.demon.net>

Darren Shilson (dshilson@plym.ac.uk) wrote:
: Hi,

: I'm relatively new to PERL programming and would really like to find out
: as much as I can about the language. However being a poor student I
: can't fork out loads of money on books, but I've got free Internet
: Access, so if you know of any on-line tutorials, e-zines, e-books, etc,
: I'd love to hear from you.

Que's Online Bookshelf has a Perl 5 reference book available.

Try http://www.mcp.com/que/bookshelf/

Regards,
Tim.

--
Tim Franklin        | Support  : internet@demon.net   Tel : 0181 371 1010
Demon Internet      | Personal : tim@demon.net
Call Centre Trainer | WWW      : http://www.flibble.org/~death
The views above are my own, not an official statement from Demon Internet


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

Date: Tue, 13 May 1997 20:50:08 -0700
From: Zonycat <zonycat@flash.net>
Subject: Re: Mime types for .cgi, .pl ??
Message-Id: <33793670.7F60@flash.net>

I figured out what all the problems were (except how to keep the window
that flashes long enogh to view).  See the entries under the thread of:
"CGI/PERL execution problems..", for my problem solutions.  There are
two messages.

As for the window flash... It would have been a whole lot easier to
figure out my problem if that darn window would have stayed up long
enough for me to read the actual error.  I wonder how that could
happen?  In any event, I figured out my problem with help from several
very kind responses.

Dennis
Zonycat wrote:
> 
> I am having no luck trying to local display my cgi scripts.  I have
> installed PWS and it works for finding my htm file.  When it tries to
> execute the cgi file, a window flashes and it appears to say something
> about not finding something in the Temporary Internet directory.  Why on
> earth it is trying to go there I have no idea.  I did get the "source "
> of the cgi script to display if I associated the .cgi with a mime type
> of 'text/htm'.  I know that is not right.
> 
> Here's is what I got...
> 
> Win95
> PWS installed
> CGI and Perl5 installed
> Registry set as explained in the thread: 'Re: Perl step by step?'
> 
> ++++++++++++++++  as stated here ++++++++++++
> > click Start on the task bar | Run | regedit.exe | click the plus next to:
> 
> >HKEY_LOCAL_MACHINE
> >System
> >CurrentControlSet
> >Services
> >W3Svc
> >Parameters
> >
> >click on the folder Script Map | right click in the right frame | New ->
> >string value | enter the extension .pl | right click on the .pl just
> >created | Modify | enter the path to the perl program. (on my machine;
> C:\Perl\bin\Perl.exe  %s    .  Don't forget the " space " %s at the end
> of
> the path to your Perl.exe .  I only know this from some else's previous
> reply.  It really helped me out.  Thanks whoever originally posted that
> solution.
> Again to be clear, my path to perl in the registry is:
> C:\Perl\bin\Perl.exe  %s
> even put CGI.pm in my 'home directory' (wwwroot).
> have my cgi script and htm file in there too.
>    (did this to get rid of any 'path problems'
> ++++++++++++++++++++++++++++++
> 
> Got rid of the #! in the cgi script.
> Modified CGI.pm to have $OS=WINDOWS
> 
> What else could I be missing??
> 
> Oh yes, I am just trying to display some of the 'canned' html/cgi
> examples, one call tryit.cgi.
> 
> Any ideas would be greatly appreciated from people trying to use a local
> server to test cgi programs such as the Personal Web Server (PWS)
> 
> Thanks,
> 
> Dennis


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

Date: 11 May 1997 18:53:25 -0700
From: trs@azstarnet.com (Tim  Smith)
Subject: Re: More problems with FileHandle
Message-Id: <5l5t6l$np1@web.azstarnet.com>

In article <5l5f0o$rkc$1@murrow.corp.sgi.com>,
Gene Johannsen <gej@spamalot.mfg.sgi.com> wrote:
>	I wasn't complete enough in my original query.  I want a set up
>	like this:
>
>sub write {
>    my $self = shift;
>    confess "wrong type" unless ref $self;
>
>    print $fh "This is a test\n";
>}

Gene,

I don't know if this is what you're trying to do at the end there or
not:

------------ file JT.pm --------------------
package JT;

use Carp;
use FileHandle;

1;

sub new {
    @_ == 2 or croak "Usage: new JT <filename>";
    my $class = shift;
    my $filename = shift;

    my $self = {};
    $self->{'fh'} = new FileHandle ">> $filename"
	or croak "can't open >>$filename: $!";

    return bless $self, $class;
}

sub write {
    my $self = shift;

    print {$self->{'fh'}} map({"JT: $_\n"} @_), "\n";
}



------------ file jtdriver.pl --------------------
#!/usr/bin/perl -w

use strict;
use JT;

my $fname = '/tmp/JT_TEST_FILE';

my $jt = new JT $fname;

$jt->write('Line number 1', 'Line number 2');

exit;

------------ file JT_TEST_FILE --------------------
JT: Line number 1
JT: Line number 2


Hope that helps.

Tim



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

Date: Wed, 14 May 1997 05:25:55 GMT
From: Magnus.Bodin@tychonides.se (Magnus Bodin)
Subject: NO NO PERL is NOT CGI and CGI is NOT PERL (was: Re: Private area using Perl/CGI)
Message-Id: <337e4c00.391630244@news1.telenordia.se>

Ketil Froyn <ketilf@ifi.uio.no> wrote:

>I'm sorry. Punish me. I thought the way to do this was cgi/perl. I have
>now seen the error of my ways, and I thank you for your guidance.
>
>Ketil

Apparantely most people are of just your misunderstanding; namely that

  cgi is totally equivalent to perl and 
  perl is totally equivalent to cgi

This is _NOT_ the case. 

There are 

  * other cgi applications and languages
  * __MANY__ other objects for perl


oh oh (is that another headache?)


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

Date: 14 May 1997 01:21:54 GMT
From: "Mark Williams" <markw@ciue.rpi.edu>
Subject: Re: problem with script that processes a form
Message-Id: <01bc6005$f9c4ab90$2d557180@carlisle>

I think this is what the problem is.  You'll need to have the line

print "HTTP/1.0 200 OK\n";

before 

print "Content-type: text/html\n\n";

Good luck.

BTW, where did you find that 'cgi-lib_pl" library that's linked in your
script?  Looks pretty handy.

hitesh@etnet.lloyds-tsb.co.uk wrote in article
<5l9s07$gmj@argon.btinternet.com>...
> HI, 
> 
> This is my first attemp to write a script that proceeses a form. 
> I have been working on it for some time but I keep getting 
> errors. Can anyone put me in the right direction with some 
> advice. I am using Win 95/o'Reilly web server and perl 5. 
> 
> The script is supposed to take the info from the form and put it 
> into a file called comments.txt. It also sends a html reply 
> saying thanks for your response and states what they inputed.
> 
> The server responds with a 500 error message saying there's no 
> separtion between header and the rest of the script. The script 
> and form are attached. 
> 
> Thanks for your time..
> Hitesh  


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

Date: Tue, 13 May 1997 20:06:59 -0700
From: Tom Jennings <tomjenn@pacbell.net>
Subject: Re: Q: Is Win95 Perl5 select() for device COM1 implemented?
Message-Id: <33792C53.116B@pacbell.net>

Sorry for extra chatter -- If anyone knows of existing code for serial
I/O I'd gladly not re-invent... I did look on CPAN, found nothing even
close. And I'll certainly contribute anything I come up with.

(And "non-locking I/O" is a typo of "non-blocking I/O"...)


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

Date: Sun, 11 May 1997 17:06:15 -0700
From: "Jack L. Owens" <jlowens@ptconnect.infi.net>
Subject: Sorting by date with format MMDDYY
Message-Id: <33765EF7.44D2BC39@ptconnect.infi.net>

I need to sort an array of filenames by date. Unfortunately they are in
the format "aMMDDYY.zip". What would be the simplest way to do this
without reinventing the wheel?
-- 
Jack L. Owens                                        jowens@csulb.edu
4421 Myrtle Avenue                                              K6PWY
Long Beach, California 90807                            (562)989-9413


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

Date: 12 May 1997 02:03:59 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: Statistics for comp.lang.perl.misc
Message-Id: <5l5tqf$s1a$1@info.uah.edu>

Following is a summary of articles spanning a 7 day period,
beginning at 03 May 1997 10:10:38 GMT and ending at
10 May 1997 06:26:40 GMT.

Notes
=====

    - A line in the body of a post is considered to be original if it
      does *not* match the regular expression /^(>|:|\S+>)/.
    - All text after the last cut line (/^-- $/) in the body is
      considered to be the author's signature.
    - The scanner prefers the Reply-To: header over the From: header
      in determining the "real" e-mail address and name.

Excluded Posters
================

perlfaq-suggestions@mox.perl.com

Totals
======

Total number of posters:  410
Total number of articles: 878
Total number of threads:  342
Total volume generated:   1526.2 kb
    - headers:    608.5 kb
    - bodies:     865.1 kb (620.1 kb original)
    - signatures: 50.6 kb

Averages
========

Number of posts per poster: 2.1
Number of posts per thread: 2.6
Message size: 1780.0 bytes
    - header:     709.7 bytes
    - body:       1009.0 bytes (723.2 bytes original)
    - signatures: 59.1 bytes

Top 10 Posters by Number of Posts
=================================

         (kb)   (kb)  (kb)  (kb)
Posts  Volume (  hdr/ body/ orig)  Address
-----  --------------------------  -------

   37    71.9 ( 23.7/ 48.1/ 27.9)  Tad McClellan <tadmc@flash.net>
   25    54.7 ( 20.9/ 30.0/ 19.7)  I-hate-cyber-promo@man.ac.uk
   24    45.8 ( 18.4/ 27.5/ 15.1)  a.aitken@unl.ac.uk
   17    27.1 (  9.2/ 17.9/ 11.0)  David Alan Black <dblack@icarus.shu.edu>
   17    30.3 ( 11.5/ 17.1/ 12.5)  kyzer@hotmail.com
   15    21.9 ( 10.3/ 11.6/  6.2)  Chipmunk <Ronald.J.Kimball@dartmouth.edu>
   15    28.9 (  9.7/ 14.5/ 11.0)  mike@stok.co.uk
   12    39.9 ( 10.1/ 27.3/ 13.5)  sb@en.muc.de
   12    20.3 ( 11.3/  7.2/  7.2)  I R A Aggie <fl_aggie@hotmail.com>
   11    16.1 (  7.6/  7.1/  3.8)  brian d foy <comdog@computerdog.com>

Top 10 Posters by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Address
--------------------------  -----  -------

  71.9 ( 23.7/ 48.1/ 27.9)     37  Tad McClellan <tadmc@flash.net>
  54.7 ( 20.9/ 30.0/ 19.7)     25  I-hate-cyber-promo@man.ac.uk
  45.8 ( 18.4/ 27.5/ 15.1)     24  a.aitken@unl.ac.uk
  39.9 ( 10.1/ 27.3/ 13.5)     12  sb@en.muc.de
  32.7 ( 12.8/ 19.9/ 13.3)     11  Eli the Bearded <usenet-tag@qz.little-neck.ny.us>
  30.3 ( 11.5/ 17.1/ 12.5)     17  kyzer@hotmail.com
  28.9 (  9.7/ 14.5/ 11.0)     15  mike@stok.co.uk
  27.1 (  9.2/ 17.9/ 11.0)     17  David Alan Black <dblack@icarus.shu.edu>
  24.9 (  8.7/ 16.2/  7.7)     11  Douglas Seay <seay@absyss.fr>
  22.2 (  9.9/ 12.0/ 12.0)     10  abigail@fnx.com

Top 10 Threads by Number of Posts
=================================

Posts  Subject
-----  -------

   20  Perl auto-replier
   18  program for perl?
   16  [DRAFT] RFD: comp.lang.perl.{data-structure,inter-process,programmer,regex}
   16  Loosing clpm regulars (was Re: Perl auto-replier)
   12  closed filehandle error
   11  clever coding required
   10  > 2GB "file too large", AIX 4.2, perl 5.001, not "ulimit"
    8  Problem with uppercase reg exp
    8  Notice to antispammers - is there a list of spammers to pluginto procmail?
    8  A Perl Question

Top 10 Threads by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Subject
--------------------------  -----  -------

  47.1 ( 16.2/ 29.9/ 23.2)     20  Perl auto-replier
  37.1 ( 15.5/ 19.7/ 13.9)     16  Loosing clpm regulars (was Re: Perl auto-replier)
  36.7 ( 14.0/ 21.3/ 10.6)     16  [DRAFT] RFD: comp.lang.perl.{data-structure,inter-process,programmer,regex}
  26.1 ( 12.6/ 12.0/  6.5)     18  program for perl?
  23.2 (  7.8/ 14.9/  9.0)      8  Notice to antispammers - is there a list of spammers to pluginto procmail?
  20.1 (  7.3/ 12.1/  7.6)      8  need help w/forms and Perl
  16.8 ( 12.2/  4.4/  2.6)      7  What does "UNIX" stand for..
  16.6 (  7.3/  8.0/  4.9)     10  > 2GB "file too large", AIX 4.2, perl 5.001, not "ulimit"
  16.4 (  7.6/  8.3/  4.7)     12  closed filehandle error
  15.9 (  4.6/ 10.2/  5.1)      6  Modules/Packages in Perl

Top 10 Targets for Crossposts
=============================

Articles  Newsgroup
--------  ---------

      20  comp.lang.perl.modules
      16  comp.lang.c++
      15  comp.lang.perl
      14  alt.fan.e-t-b
      13  comp.lang.tcl
      13  comp.databases
      11  comp.unix.advocacy
      11  comp.lang.javascript
      11  comp.object
      11  comp.os.ms-windows.nt.advocacy

Top 10 Crossposters
===================

Articles  Address
--------  -------

      23  Stephan Schaem <t21@ix.netcom.com>
      23  Steve Rountree <steve@jrnl.com>
      23  Kaz Kylheku <kaz@vision.crest.nt.com>
      19  rjmeyer@pacbell.com
      19  Martin Sohnius x24031 <msohnius@novell.co.uk>
      19  subb3@ibm.net
      19  sarapata@enc.org
      19  Ron Natalie <ron@sensor.com>
      19  fred@genesis.demon.co.uk
      19  Stephen John Tremblett <v12sjt@morgan.ucs.mun.ca>


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

Date: 13 May 1997 22:25:39 -0400
From: Chaim Frenkel <chaimf@cris.com>
To: whatis@yyz.com
Subject: Re: Timeline for better support for tied arrays?
Message-Id: <m33erqeqn0.fsf@nlk.nlk.com>

>>>>> "SB" == What Is? <whatis@nic.cerf.net> writes:

  SB> I was surprised to find that the support for tied arrays is so much
  SB> lower than support for tied scalars and hashes.

  SB> Is this something that the Powers That Be(TM) are planning to do soon,
  SB> or are there other priorities?

It's on the wish list for 5.005.

One of the perl5-porters (who will remain anonymous for now) has
raised his hand and stepped forward into the limelight.

<chaim>
-- 
Chaim Frenkel					Nonlinear Knowledge, Inc.
chaimf@cris.com						 +1-718-236-0183


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

Date: Wed, 14 May 1997 04:44:34 GMT
From: Magnus.Bodin@tychonides.se (Magnus Bodin)
Subject: Re: Timer on my perl script
Message-Id: <337c42fe.389349394@news1.telenordia.se>


And if you use NT, use the scheduling service.
Schedule commands with the command line "at" command.
For syntax: type 

help at

at a command prompt


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

Date: Tue, 13 May 1997 21:06:11 -0700
From: Zonycat <zonycat@flash.net>
Subject: Re: Want perl on Win95 Platform
Message-Id: <33793A33.627@flash.net>

Don Botten wrote:
> 
> I am running windows 95 and would like to test my perl scripts in my
> computer.  Up to now I have telneted into my isp and checked them out on
> unix.  The perl interpreters I have found are for Windows NT or OS2.
> 
> Can anyone help me with this.
> 
> donb@wcnet.org

Don,
If you just want to run perl scripts without cgi, just download perl for
WIN95/NT located at http://www.activeware.com

They have a zip file you can download and install.  Documanetaion there
and in zip file.

If you want to run cgi scripts, you need to download a Personal Web
serever for your PC, such as MS PWS (Microsoft Personal Web Server). 
See the microsoft WEB pages annd look for the Personal Web server.

The server is required to try your scripts on your PC.  You need to do
some setup on your PC to make the CGI scripts to work.  I just went to a
hellish ordeal trying to figure that out.  Documentaion was very poor on
that.  Thanks to several people here and those at the news group
news://microsoft.public.internet.personwebserv, I was able to get it all
configured correctly.  
The CGI/Perl Execution Problems thread gives some help for setting up
the PWS to use for CGI scripts.

Hope this helps,
Dennis


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

Date: Wed, 14 May 1997 05:20:24 GMT
From: Magnus.Bodin@tychonides.se (Magnus Bodin)
Subject: Re: Want perl on Win95 Platform
Message-Id: <337d47a3.390512707@news1.telenordia.se>

"Don Botten" <donb@wcnet.org> wrote:

>I am running windows 95 and would like to test my perl scripts in my
>computer.  Up to now I have telneted into my isp and checked them out on
>unix.  The perl interpreters I have found are for Windows NT or OS2.
>
>Can anyone help me with this.
>
>donb@wcnet.org

You haven't looked that carefully, have you?

ActiveWare is responsible for the (one and only) perl distribution for
the win32 platform. That's both win95 and NT.

URL: http://www.activeware.com






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

Date: Sun, 11 May 1997 20:24:37 -0400
From: "G. Bowden Wise" <wiseb@cs.rpi.edu>
Subject: Weather Forecasts via perl
Message-Id: <33766345.1166A14D@cs.rpi.edu>

The weather undergronud has a number of cgi scripts running from their
site.  Is there a way for me to write a perl script that will
do the connection to the site and do an HTTP get to get the forecast?

I want to create an exercise for my students to send a request to
a perl script, but due to applet security, the script must reside on the
same server as the applet.  

So i need to write a perl script that can do the connect to the 
undergronud host and get teh data for them. 

has anyone any weather forecast scripts in perl?


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

Date: Sun, 11 May 1997 22:42:13 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: Weather Forecasts via perl
Message-Id: <comdog-1105972242130001@nntp.netcruiser>

In article <33766345.1166A14D@cs.rpi.edu>, "G. Bowden Wise"
<wiseb@cs.rpi.edu> wrote:

> The weather undergronud has a number of cgi scripts running from their
> site.  Is there a way for me to write a perl script that will
> do the connection to the site and do an HTTP get to get the forecast?

sure.  perhaps you want the LWP module? [1]  (sounds like it would be a
good exercise for you as well).  maybe you want to read "Web Client
Programming" [1].  just to be nice, you might want to tell the 
Weather Underground about this -- they might be able to help :)
 
> I want to create an exercise for my students to send a request to
> a perl script, but due to applet security, the script must reside on the
> same server as the applet.  

what do applets have to do with it?
 
> So i need to write a perl script that can do the connect to the 
> undergronud host and get teh data for them.


> has anyone any weather forecast scripts in perl?

yep.


[1]
CPAN - Comprehensie Perl Archive Network.  find one through
<URL:http://www.yahoo.com>

[2]
Web Cleint Programming with Perl
Clinton Wong
ISBN 1-56592-214-X
<URL:http://www.ora.com>

-- 
brian d foy                              <URL:http://computerdog.com>                       
unsolicited commercial email is not appreciated


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

Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 8 Mar 97)
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 V8 Issue 472
*************************************

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