[12824] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 234 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jul 23 10:08:09 1999

Date: Fri, 23 Jul 1999 07:05: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           Fri, 23 Jul 1999     Volume: 9 Number: 234

Today's topics:
    Re: Can a .html file be executable? <mkshanx@ust.hk>
        Can't compile DBD::Pg under IRIX 5.3 (possible repost s <moigescr@hotmail.com>
    Re: checking if address is active (Mike Bristow)
        finding script calling method (IlIIIIIIII)
    Re: finding script calling method <swiftkid@bigfoot.com>
    Re: Gtk+ and Perl (Paolo Molaro)
    Re: Help me ..; databases ... <rhrh@hotmail.com>
    Re: Help please - running Perl/CGI scripts on MS NT Per <martin@adoma.se>
        look for: a script that dectects when a new file arrive <info@nollekens.be>
        mod_perl 1.20 & Apache 1.3.6 <martin.hein@maxmobil.at>
        Need help with simple CGI procedure.. <dstern@sternweb.net>
        no such file when executing perl script <chrisl@muskox.alaska.edu>
    Re: no such file when executing perl script (I R A Darth Aggie)
        Opening files in IIS4.0 <zotje@hotmail.com>
    Re: output of print map ( { unless (/^#/) {} } ("#") ); (Michael Wang)
        perl and java <marc@multicorpora.ca>
    Re: Perl on IIS <megan@demoroom.com>
    Re: Perl on IIS <gellyfish@gellyfish.com>
        Perl to write on browser window status <David.Hiskiyahu@alcatel.be>
    Re: Perl to write on browser window status <swiftkid@bigfoot.com>
    Re: Perl to write on browser window status <David.Hiskiyahu@alcatel.be>
    Re: Perl to write on browser window status <gellyfish@gellyfish.com>
    Re: Perl to write on browser window status (Andreas Fehr)
    Re: POSIX module (Stefaan A Eeckels)
        printing in perl <kaimar@ut.ee>
    Re: printing in perl <gellyfish@gellyfish.com>
    Re: programming problem kent@darwin.eeb.uconn.edu
    Re: regular expresion needed for checking e-mail adress <martin@adoma.se>
        sorting multidim. arrays <Erich.Seifert@dachau.baynet.de>
    Re: sorting multidim. arrays <andy@focus-consulting.co.uk>
        SQL statements and ODBC <pcl@dds.nl>
    Re: TextArea fields (Marco Cecconi)
    Re: TextArea fields <rick.delaney@home.com>
        Timed prompt <bpatton@asic.sc.ti.com>
    Re: Timed prompt (Andreas Fehr)
    Re: Timed prompt <gellyfish@gellyfish.com>
    Re: Using GSM modems with perl... (Bbirthisel)
    Re: waitpid crashes perl <Philip_Dye@norstanconsult.com>
    Re: What does this statement mean? (Marco Cecconi)
    Re: What is the best way to write data to a com port un (Bbirthisel)
    Re: What is the best way to write data to a com port un (r j huntington)
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

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

Date: Fri, 23 Jul 1999 21:04:55 +0800
From: "Shashank Tripathi" <mkshanx@ust.hk>
Subject: Re: Can a .html file be executable?
Message-Id: <7n9p7l$6p0@ustsu10.ust.hk>

Hi Scientia,

I agree with all on this thread that this is not a Perl related question. It
is more of a CGI question, and it would help you to know the difference for
your own sake, as you would get real answers instead of piqued members.

However, one thing you might like to try is to MAP the ".html" extension to
Perl in your registry, this is what I have seen some businesses do to make
the technology they use less transparent. When the ".html" extension (or any
other) is mapped to Perl, it will be executed as Perl code, so make sure you
have Perl code inside it.

Personally, I am not a major fan of this method, but the businesses I
mentioned use ".htm" for their general HTML pages.

Also note that if you use an ISP, it is *very* unlikely that he would agree
to map such a generically used extension as html to Perl.


HTH,
Shashank

_________________
Shashank Tripathi
http://shanx.com



Scientia wrote in message <379249EC.66A1@XXXtechnologist.com>...
>Hello
>
>for reasons that is would be impossible to explain here,
>I should make a certain  file.html  executable:
>I can't change its name to  file.cgi .
>
>Of course I could make a HTML redirection from such file
>to a executable cgi file.
>However I would like to know if it is possible somehow to make
>it executable itself, although it has a .html extension
>
>Thanks
>Fabrizio




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

Date: Fri, 23 Jul 1999 13:34:25 GMT
From: Stuart <moigescr@hotmail.com>
Subject: Can't compile DBD::Pg under IRIX 5.3 (possible repost sorry, having probs with Deja)
Message-Id: <7n9r11$ma5$1@nnrp1.deja.com>

Dear All,

This is a synopsis of a post I made to the DBI and postgreSQL newsgroups.
I got a probable answer to what the problem was but no solution.

Perhaps I'll have more luck here!

I still have not been able to compile DBD::Pg under IRIX 5.3 for a system
running postgreSQL 6.4.0.

I used to have a system running DBI 1.02 and DBD::Pg 0.79 but I wanted to
upgrade to get better support for NULLs.

I'd be very grateful for a cc: to stuart@ludwig.ucl.ac.uk (but I'll live
without one).

I tried the following:

1) Updated to DBI 1.19 with no problems
2) Tried -unsuccessfully- to update to DBD::Pg 0.92
3) Read the README and found out the DBD::Pg 0.92 is only compatible with
postgreSQL 6.4.2 onwards
4) Uninstalled DBD::Pg 0.92 and tried -unsuccessfully- to install DBD::Pg
0.89 (the latest version compatible with postgreSQL 6.4.0)
5) Posted post I to dbi-users and pgsql-interfaces
6) Got an answer from Dana suggesting there may be an incompatibility
issue
between newer/current versions of DBI and older versions of DBD::Pg
7) Uninstalled DBI 1.13 and successfully reinstalled DBI 1.02 (dates seem
to suggest that that is the most recent DBI compatible with DBD::Pg 0.89)
8) Tried -unsuccessfully- to install DBD::Pg 0.89

in all cases where the DBD::Pg (0.89 and 0.92) install failed (2,4 and
8),

I get the same error message (of course with a different line number for
0.89 and 0.92):

cfe: Warning 608: ./Pg.h: 24: Undefined the ANSI standard library defined
macro BUFSIZ (4.1.2.1(9))
        cc -c -I/usr/local/pgsql/include -I/usr/local/include/pgsql
-I/usr/include/pgsql -I/usr/local/lib/perl5/site_perl/IP22-irix/auto/DBI
-I/usr/local/lib/perl5/IP22-irix/5.00404/DBI -I/auto/DBI -I/DBI
-D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 30
cfe: Warning 608: ./Pg.h: 24: Undefined the ANSI standard library defined
macro BUFSIZ (4.1.2.1(9))
cfe: Error: dbdimp.c, line 831: Incompatible pointer type assignment
(3.3.16.1, 3.5.4.1(21))
                 val = (((phs->sv)->sv_flags  & 0x00040000 )  ? (( len =
((XPV*)  (phs->sv)->sv_any )->xpv_cur ), ((XPV*)  (phs->sv)->sv_any
)->xpv_pv ) : Perl_sv_2pv (phs->sv, & len)) ;
 ------------------------------------------------------------------------
-------
-------------------------------------------------------------------------
-------
-----------------^
cfe: Error: dbdimp.c, line 831: Type int *  of this argument  is
incompatible with type STRLEN *  of function prototype description
(3.3.16.1)
                 val = (((phs->sv)->sv_flags  & 0x00040000 )  ? (( len =
((XPV*)  (phs->sv)->sv_any )->xpv_cur ), ((XPV*)  (phs->sv)->sv_any
)->xpv_pv ) : Perl_sv_2pv (phs->sv, & len)) ;
 ------------------------------------------------------------------------
-------
-------------------------------------------------------------------------
-------
-----------------^
*** Error code 1 (bu21)

I got this posting from Edmund Mergl (the author of DBD::Pg):

>I don't have access to any IRIX system, so I can only guess,
>what's going wrong. It looks like that the perl XS compiler
>produces code, which is not compatible with the default cc
>on IRIX. Either try to upgrade your perl or re-compile
>perl using gcc.

I have NO idea what a perl XS compiler is or does but I was curious as to
wether anybody had experienced similar dificulties compiling DBD::Pg
under IRIX 5.3 with native cc... problem is I don't have gcc!

Anybody got a workaround??

More system details follow.

Cheers,

Stuart.
Ludwig Institute for Cancer Research
University College London
London, UK.

====

perl, version 5.004_04 built for IP22-irix

Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
  Platform:
    osname=irix, osvers=5, archname=IP22-irix
    uname='irix merlin 5.3 11091812 ip22 mips '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -DLANGUAGE_C'
    ccflags ='-D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000
-DLANGUAGE_C'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=undef
    intsize=4, alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-lmalloc -lsun -lm -lc -lcrypt -lbsd -lPW
    libc=/usr/lib/libc.so, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-KPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Built under irix
  Compiled at Mar 27 1998 17:20:27
  @INC:
    /usr/local/lib/perl5/IP22-irix/5.00404
    /usr/local/lib/perl5
    /usr/local/lib/perl5/site_perl/IP22-irix
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/IP22-irix


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


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

Date: Fri, 23 Jul 1999 09:02:22 GMT
From: mike@fat.dotat.at (Mike Bristow)
Subject: Re: checking if address is active
Message-Id: <slrn7pgbsu.56r.mike@lindt.fat.dotat.at>

On Thu, 22 Jul 1999 21:30:37 GMT, Steve . <syarbrou@nospam.enteract.com> wrote:
>Thanks,  any idea where the lastest versions are kept?  I can't find
>it on perl.com or searching on yahoo.  Thanks.

perl -MCPAN -e shell

you want it to install LWP, so tell it that.

Of course, you could wander over to www.cpan.org and install
it manually. 

-- 
Mike Bristow, Geek-At-Large.                GK/RM0501
one tequila - two tequila - three tequila - FLOOR !!!



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

Date: 23 Jul 1999 08:39:09 GMT
From: iliiiiiiii@aol.com (IlIIIIIIII)
Subject: finding script calling method
Message-Id: <19990723043909.07062.00000433@ng-fy1.aol.com>

if there a way to find how the script was called?

for example: <.img src="/cgi-bin/file.pl"> or if the user typed in
http://www.server.com/cgi-bin/file.pl


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

Date: Fri, 23 Jul 1999 13:57:58 +0500
From: "Faisal Nasim" <swiftkid@bigfoot.com>
Subject: Re: finding script calling method
Message-Id: <7nae4o$grp2@news.cyber.net.pk>

: if there a way to find how the script was called?
:
: for example: <.img src="/cgi-bin/file.pl"> or if the user typed in
: http://www.server.com/cgi-bin/file.pl

You can check by HTTP_REFERER.

but sorry, we deal in only Perl queries here... not CGI :)




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

Date: 23 Jul 1999 09:10:59 GMT
From: lupus@lettere.unipd.it (Paolo Molaro)
Subject: Re: Gtk+ and Perl
Message-Id: <slrn7pgcmc.ul0.lupus@bacco.lettere.unipd.it>

On Tue, 20 Jul 1999 19:32:02 GMT, shawnporter@my-deja.com <shawnporter@my-deja.com> wrote:
> I've started a little website about using Gtk+ and Perl.  I'm very new
> to it myself so it is very basic.
> 
> -> http://rit.net/sporter/gtkplusperl/
> 
> Right now all I've got is a short FAQ and some sample code.  The example
> I give has the C and Perl code that do the same thing, which I think is
> very useful because most Gtk+ documentation is written for C
> programmers.
> 
> Enjoy.
> 
> If you know of any other good resources about using Gtk+ with Perl,
> please let me know.

The version available from the gnome cvs server has a tool for
producing the reference documentation from the source (and special
comments therin).  You may check the result at:

http://www.lettere.unipd.it/~lupus/perl-gtk-ds.html
and
http://www.lettere.unipd.it/~lupus/perl-gtk-ref.html

I'll write soon a small doc with the instructions on how to add
documentation to the sources: meanwhile you can check the code.
Constributions in this area are welcome:-)
Also, I have modified my local copy of the gtk+ C tutorial to conditionally
include examples from languages other than C: if someone has the time to 
convert the examples I can include them and we get a tutorial almost for 
free:-)

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules


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

Date: Fri, 23 Jul 1999 08:38:32 +0100
From: Richard H <rhrh@hotmail.com>
Subject: Re: Help me ..; databases ...
Message-Id: <37981BF8.CC5BC690@hotmail.com>

matt wrote:
> 
> Here is an example of a connection and select statement:
> 
>  #open connection with DB
> $DSN ="your_domain_name";
> if (!($db = new Win32::ODBC("DSN=your_domain_name;"))) {
>  print STDOUT "Error connecting to $DSN\n";
>  print STDOUT "Error: " . Win32::ODBC::Error() . "\n";
>  exit;
> }
> 
> $SqlStatement = "SELECT table_name.field_name
>       FROM table_name;";
> 

Er, am i making a fool of myself, or have you done a typo in the next
bit??

> if ($db->Sql($SqlStatement)) {
>  print "SQL failed- Cannot execute\n";
>     print "Error: ". $db->Error(). "\n";
>     $db->Close();
>     exit;
> }
> $db->Close();
> 
> There are other ways of doing this, this is just how I like doing it :-)

You like doing the SQL and if it returns something, pretending its
failed??? :-), 

Richard H (i hope im right or im going to look v gormless)


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

Date: Fri, 23 Jul 1999 15:06:32 +0100
From: Martin Quensel <martin@adoma.se>
Subject: Re: Help please - running Perl/CGI scripts on MS NT Personal Web Server.
Message-Id: <379876E8.40385C4A@adoma.se>



Nico Zigouras wrote:
> 
> Hi:
> 
> I  know this is also a web server question, but does anyone know if you
> can run CGI sscripts on MS Personal Web Server for NT?  I couldn't find
> any mention of CGI/Perl in the docs, just Microsoft pushing ASP.
No this isent "also" a web server question..it is a webserver question
only..plain and simple.
And the ansver is 42!

Martin Quensel


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

Date: Fri, 23 Jul 1999 14:35:19 -0700
From: Nollekens <info@nollekens.be>
Subject: look for: a script that dectects when a new file arrives in a directory
Message-Id: <3798E017.5B3B@nollekens.be>

look for: a script that dectects when a new file arrives in a directory

Hi,

OS: DOS
PERL FOR DOS

I need to write a script that 
will detect when a new file is written
to a subdirectory. the script then outputs 
the file to my com port.
I tried the following pseudo-code procedure.

for (;;)
{
 open directory
 read dir
 close directory
 
 for each file in dir
 {
  if file does not begins with "."
  {
   system "printcom.bat".
  }
 }
}

the program stops after a while with
the message "out of memory!".
this could be a message that comes from 
the bat file of from perl.

Is this loop system the wrong way to go?

any help is welcome.



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

Date: Fri, 23 Jul 1999 11:15:56 GMT
From: "MMHein" <martin.hein@maxmobil.at>
Subject: mod_perl 1.20 & Apache 1.3.6
Message-Id: <M9Yl3.4325$J5.46399@c01read02-admin.service.talkway.com>

When trying to compile Apache 1.3.6 with configured module mod_perl
1.20, I always receive the error message: unresolved external
`boot_DynaLoader´.

Any ideas?

Thanx,
Martin
--
Posted via Talkway - http://www.talkway.com
Exchange ideas on practically anything (tm).



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

Date: Fri, 23 Jul 1999 09:24:30 -0400
From: "Danny Stern" <dstern@sternweb.net>
Subject: Need help with simple CGI procedure..
Message-Id: <7n9qbu$err$1@autumn.news.rcn.net>

Hello and good day...
I have a personal website that focuses on my hobbies, and I am looking to
have a script that manages a list of players and who collects sports
memorabilia of that player.  I need to know how to do this:
Have the script look for a html comment with the player's name, then insert
a comment at the end if the player's name is not already in one (if no one
else has selected the player yet).  Then it would need to insert the form
input after the comment - if it found the comment or created it.  Basically,
"search for text, create text if it doesn't already exist, and insert form
contents after the text."  This seems relatively simple - but I am
inexperienced with CGI and I can't find anything like this in any of my
books(which seem to have everything else in the world) or online resources.
I would greatly appreciate a response and would give full credit with the
script and on my website(if this means anything to you), if not, I would
just kiss your feet eternally =]

Thanks, this is greatly appreciated.
Danny




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

Date: Thu, 22 Jul 1999 13:43:38 -0800
From: "Chris Lott" <chrisl@muskox.alaska.edu>
Subject: no such file when executing perl script
Message-Id: <7n831p$ga7$1@news.alaska.edu>

Why would a file run fine if I use
perl program.pl

but fail with the error:
": No such file or directory

when I use ./program.pl ?

In the same directory I have a small test script that just outputs a few
lines. That file has the exact same permissions and ownership, but it runs
fine when called either way?

c
--
@who: Chris Lott | chris.lott@uaf.edu | IT Specialist | University of AK
@where: p907.474.6350 | f907.474.6841 | http://itdc.elmer.uaf.edu/chris/
@quote: Philosophy n. A route of many roads leading from nowhere to nothing




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

Date: 23 Jul 1999 13:46:10 GMT
From: fl_aggie@thepentagon.com (I R A Darth Aggie)
Subject: Re: no such file when executing perl script
Message-Id: <slrn7pgsl8.251.fl_aggie@thepentagon.com>

On Thu, 22 Jul 1999 13:43:38 -0800, Chris Lott <chrisl@muskox.alaska.edu>, in
<7n831p$ga7$1@news.alaska.edu> wrote:

+ Why would a file run fine if I use
+ perl program.pl
+ 
+ but fail with the error:
+ ": No such file or directory
+ 
+ when I use ./program.pl ?

The first line of program.pl does not contain the right-path-to-perl.

For instance, your perl might be located in /usr/local/bin/perl, and
the script contains:

#!/usr/bin/perl

which doesn't exist -- no such file or directory...

James


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

Date: Fri, 23 Jul 1999 13:29:33 GMT
From: G&K F <zotje@hotmail.com>
Subject: Opening files in IIS4.0
Message-Id: <7n9qnj$m75$1@nnrp1.deja.com>

Hi,

I am a newbie at perl and trying to figure out how I can read from a
textfile and put it on a html page.  I was working on a unix server and
all was well, but when trying to put it on my company's IIS server, I
can't seem to connect to the textfile, even if I put the file in the
same directory.  Does anyone know what I am doing wrong?
Thanks,
Glenn

#!/usr/local/bin/perl
#
# Program to grab a stock quote from a file
#
open (INFO, "testfile.txt");
@lines = <INFO>;
close (INFO);
$index = $#lines;
$stock = $lines[$index];
print $stock;
print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Stock Ticker</TITLE></HEAD><BODY>\n";
print "<h1>Today's stock value</h1><br><br>";
print "index is \'$stock\'<HR>";
print "</body></html>";

exit;



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


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

Date: 23 Jul 1999 13:21:08 GMT
From: mwang@tech.cicg.ml.com (Michael Wang)
Subject: Re: output of print map ( { unless (/^#/) {} } ("#") );
Message-Id: <7n9q84$n7v$1@news.ml.com>

>Michael Wang (mwang@tech.cicg.ml.com) wrote on MMCLI September MCMXCIII
>in <URL:news:7n7ag7$5re$1@news.ml.com>:
>== What should be the output of the following?
>== 
>== (1) map ( { unless (/^#/) {} } ("#") );
>== (2) print map ( { if (/^#/) {} } ("#") );
>== (3) print map ( { if ( !/^#/) {} } ("#") );
>== 
>== And why? Thanks. 
>== 
>== It is my opinion that neither of the 3 above should produce ANYTHING.
>== but (1) produce "1" which I do not know why. How can I prevent it
>== from produce this unwanted "1". Thanks again. 
>
>What do you mean by "producing"? As given, the map is in void context,
>anything "produced" will be thrown away. And it doesn't have side effects,
>so what exactly is the problem?
 
"producing" means when you run it, what goes to the screen. 

>Now, you might have something else there that captures the result of map,
>a print, or an assignment. Now, map {} will evaluate the block for each
>element of the list, in list context. It looks like the result of "unless
>(/^#/) {}" is 1, if $_ eq '#'. Perhaps not quite the result you expect,
>but you have to admit, "unless (/^#/) {}" is a pretty weird expression.
>
>Abigail

unless (/^#/) {} is legal expression just to demonstrate the problem. 
Whether it looks weird or not is not my concern, and also it is very
subjective. My concern is where is the problem. 

According to your logic, then replacing "unless (/^#/){}"
with "if ( not /^#/ ) {}" or "if (/^#/){}" should also produce "1"
but the latter two do not. Can you tell me why? Thanks. 
-- 
Michael Wang
http://www.mindspring.com/~mwang


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

Date: Fri, 23 Jul 1999 09:12:15 -0700
From: "Marc Simard" <marc@multicorpora.ca>
Subject: perl and java
Message-Id: <WPZl3.634$nb2.47618@wagner.videotron.net>

Hi !
I jus want to know how can i make my perl script write "print" for
javascript line so it cna be inserted in my
web page.
exemple : print "<STYLE type="text/css">"
               print "<!-- A.URLTitle  {text-decoration: none;} -->"

--

Marc Simard
MultiCorpora Inc

marc@multicorpora.ca
www.multicorpora.ca

Tel.: 819 595-5884
Fax : 819 595-5859





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

Date: Fri, 23 Jul 1999 00:47:35 -0700
From: "Megan Payne" <megan@demoroom.com>
Subject: Re: Perl on IIS
Message-Id: <7n97ei$ng6$1@brokaw.wa.com>

Hey, I am a sys admin running IIS 4.0 (I have no choice in the matter). I
also do not know how to install an interpreter. -The one that I have running
on Linux works fine. But hell, I am willing to give it my best  shot. Any
advice?

Megan


>> >  Pay no attention to him, as he is an imposter.  A true sysadmin is
>> >fearless.  A true sysadmin also shuns IIS and kin.
>> >
>
>A true sysadmin.....runs Apache web server....instead!
>





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

Date: 23 Jul 1999 09:45:39 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl on IIS
Message-Id: <37982bb3@newsread3.dircon.co.uk>

Megan Payne <megan@demoroom.com> wrote:
> Hey, I am a sys admin running IIS 4.0 (I have no choice in the matter). I
> also do not know how to install an interpreter. -The one that I have running
> on Linux works fine. But hell, I am willing to give it my best  shot. Any
> advice?
> 

Yes download the Perl for Win32 from <http://www.activestate.com> and
install it - it will set up an entry in the Start Menu which points to the
HTML documentation.  If you have an error whilst installing you may want
to stop IIS - but that is best asked about in 

           comp.infosystems.www.servers.ms-windows

The Win32 Specific FAQ which is part of the installed documentationhas an 
entire section on configuring various Web servers to run Perl programs.

Also you might find: 

    <http://support.microsoft.com/support/kb/articles/q150/6/29.asp>

Useful.  Infact I have discovered there are an increasing number of
knowledgebase articles that are about this :

<http://search.microsoft.com/us/results.asp?nq=TRUE&intCat=7&SName=&SPath=&SCatalog=&Boolean=ALL&qu=Perl+IIS&Finish=Search+Now%21>

(yuck)

/J\
-- 
"William Hague, the world's favourite hairline" - Rory Bremner


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

Date: Fri, 23 Jul 1999 10:52:07 +0200
From: David Hiskiyahu <David.Hiskiyahu@alcatel.be>
Subject: Perl to write on browser window status
Message-Id: <37982D37.E1F3E649@alcatel.be>

I have a Perl script that can takes a while to do its job, which 
may involve reading lots of files.

Is there a way my script could update the browser window status
bar as it progresses, e.g. '10% of files scanned', '20% of files
scanned', ... 'Done'?


-- 
***   David Hiskiyahu, Alcatel SRD, 1 Fr.Wellesplein,  Antwerp  ***
***    Phone/Fax: +32 3 240 7965/9820, private +32 3 225 2712   ***


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

Date: Fri, 23 Jul 1999 15:09:52 +0500
From: "Faisal Nasim" <swiftkid@bigfoot.com>
Subject: Re: Perl to write on browser window status
Message-Id: <7naic1$g744@news.cyber.net.pk>

: I have a Perl script that can takes a while to do its job, which
: may involve reading lots of files.
:
: Is there a way my script could update the browser window status
: bar as it progresses, e.g. '10% of files scanned', '20% of files
: scanned', ... 'Done'?

It operates server side, and it cannot talk to the browser that way....
when you have processed and returned the page, you can virtually
display 10% ... 100% after a particular delay (doesn't have any
meaning though) :)




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

Date: Fri, 23 Jul 1999 13:38:51 +0200
From: David Hiskiyahu <David.Hiskiyahu@alcatel.be>
Subject: Re: Perl to write on browser window status
Message-Id: <3798544B.F495A8D1@alcatel.be>

Faisal Nasim wrote:
> 
> : I have a Perl script that can takes a while to do its job, which
> : may involve reading lots of files.
> :
> : Is there a way my script could update the browser window status
> : bar as it progresses, e.g. '10% of files scanned', '20% of files
> : scanned', ... 'Done'?
> 
> It operates server side, and it cannot talk to the browser that way....
> when you have processed and returned the page, you can virtually
> display 10% ... 100% after a particular delay (doesn't have any
> meaning though) :)

Nasim,

Excuse me if I am talking nonsense here, but ...

Since the script prints out HTML as it progresses, and the
browser shows intermediate results as they arrive, this is
a very common case with slow or long pages - why couldn't 
a piece of HTML arriving on the browser side trigger the update 
of status window?

OK, of course this could be just impossible, not supported
by browsers, etc..

David.


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

Date: 23 Jul 1999 14:29:02 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl to write on browser window status
Message-Id: <37986e1e@newsread3.dircon.co.uk>

David Hiskiyahu <David.Hiskiyahu@alcatel.be> wrote:
> Faisal Nasim wrote:
>> 
>> : I have a Perl script that can takes a while to do its job, which
>> : may involve reading lots of files.
>> :
>> : Is there a way my script could update the browser window status
>> : bar as it progresses, e.g. '10% of files scanned', '20% of files
>> : scanned', ... 'Done'?
>> 
>> It operates server side, and it cannot talk to the browser that way....
>> when you have processed and returned the page, you can virtually
>> display 10% ... 100% after a particular delay (doesn't have any
>> meaning though) :)
> 
> Nasim,
> 
> Excuse me if I am talking nonsense here, but ...
> 
> Since the script prints out HTML as it progresses, and the
> browser shows intermediate results as they arrive, this is
> a very common case with slow or long pages - why couldn't 
> a piece of HTML arriving on the browser side trigger the update 
> of status window?
> 

Perl cannot do it - simple.  A CGI program written in any language has
no access to the browser object model as exposed to, say Javascript,VBScript
or whatever ... Even if you had a CGI Program print out a client side
script - this is likely not to be interpreted until the entire page is
downloaded.   Anyhow I drift off-topic.  You should ask in one of:

   comp.infosystems.authoring.cgi
   comp.infosystems.authoring.html
   comp.lang.javascript

about this.

/J\
-- 
"I can't believe Elton John recorded that song again. Exactly how do you
live your life like a spurgis in the wind?" - Ronnie, Veronica's Closet


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

Date: Fri, 23 Jul 1999 13:55:11 GMT
From: backwards.saerdna@srm.hc (Andreas Fehr)
Subject: Re: Perl to write on browser window status
Message-Id: <379871d7.26173345@news.uniplus.ch>

On Fri, 23 Jul 1999 10:52:07 +0200, David Hiskiyahu
<David.Hiskiyahu@alcatel.be> wrote:

>I have a Perl script that can takes a while to do its job, which 
>may involve reading lots of files.
>
>Is there a way my script could update the browser window status
>bar as it progresses, e.g. '10% of files scanned', '20% of files
>scanned', ... 'Done'?
>

There is a method I saw in the book: CGI Programming with Perl
(from ORA at www.ora.com)
It has to do with animation but is not supported by all browsers
(as of publishing date, maybe different now).

Andreas


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

Date: 23 Jul 1999 09:28:42 GMT
From: Stefaan.Eeckels@ecc.lu (Stefaan A Eeckels)
Subject: Re: POSIX module
Message-Id: <7n9cka$gmu$1@justus.ecc.lu>

In article <slrn7pfl5a.1a1.abigail@alexandra.delanet.com>,
	abigail@delanet.com (Abigail) writes:
> 
> For a module called 'Module::Foo', all you need to do is:
> 
>         man Module::Foo
> 
> Amazing, isn't?
Yeah, but huh, where do I click ;-)

-- 
Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___________________________________________________________________
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exupéry



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

Date: Fri, 23 Jul 1999 14:27:33 +0300
From: Kaimar <kaimar@ut.ee>
Subject: printing in perl
Message-Id: <379851A5.C2D3DF2A@ut.ee>

hey,

how to print out something in perl to a printer, not to a command prompt
or to a file?

--
Regards,

Kaimar




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

Date: 23 Jul 1999 14:34:55 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: printing in perl
Message-Id: <37986f7f@newsread3.dircon.co.uk>

Kaimar <kaimar@ut.ee> wrote:
> hey,
> 
> how to print out something in perl to a printer, not to a command prompt
> or to a file?
> 

On any system worth talking about you can open a printer just like another
file or you can open a pipe to some program that will do the printing
for you ....

For example on Unix:

open(PRINTER,"|/usr/bin/lpr") || die "Cant do printer - $!\n";

print PRINTER "Yabadabadoo\n";

close PRINTER;

On Windows:


open(PRINTER,"LPT1") || die "Cant do printer - $!\n";
print PRINTER "Yabadabadoo\n";

close PRINTER;

Etc  Etc ...

/J\
-- 
"Philippa Forrester, presenter and would-be Smurf" - Howard Stableford,
Tomorrow's World


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

Date: 23 Jul 1999 08:50:10 -0400
From: kent@darwin.eeb.uconn.edu
Subject: Re: programming problem
Message-Id: <wkzp0nv8cd.fsf@darwin.eeb.uconn.edu>

>>>>> "yu152178" == yu152178  <yu152178@my-deja.com> writes:

    yu152178> use Shell;

    yu152178> $foo = echo("howdy", "<funny>", "world"); 
    yul52178> print "$foo";

Works fine for me. What version of Perl are you running?

Kent

-- 
Kent E. Holsinger                Kent@Darwin.EEB.UConn.Edu
                                 http://darwin.eeb.uconn.edu
-- Department of Ecology & Evolutionary Biology          
-- University of Connecticut, U-43                                       
-- Storrs, CT   06269-3043                                               


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

Date: Fri, 23 Jul 1999 15:20:19 +0100
From: Martin Quensel <martin@adoma.se>
Subject: Re: regular expresion needed for checking e-mail adresses
Message-Id: <37987A23.8F45433E@adoma.se>



Andre Probst wrote:
> 
> Hi !
> 
> I need a regular expression which checks e-mail adresses for their
> correctness.
> 
> They should contain "@" and" ." and no disallowed characters besides "_
> - etc."
> 
> How knows the expression ?
> 
> Thank you, Andre

I usually use something like this when going through a HTML page in
search of mailadds

$mail = '([^":\s<>()/;]*@[^":\s<>()/;]*)';

or i go for all <a href tags,

$hrefsearch = '<\s*a\b[^>]+\bhref\s*=\s*(?:["\']?)([^>\s"\']+)';

dont remember where i found the regexps though...(i dident come up with
them myself)

Martin Quensel


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

Date: Fri, 23 Jul 1999 13:53:05 +0200
From: "E. Seifert" <Erich.Seifert@dachau.baynet.de>
Subject: sorting multidim. arrays
Message-Id: <379857A1.A3B65ABA@dachau.baynet.de>

Hi, I've got a problem:

I want to sort a multidimensional array by the first elements of its
subarrays.
How can I do that?

Thanx, Eric

-- 
* Anyone sending unwanted advertising e-mail to this address will be
charged $25 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.
* Hiermit widerspreche ich der Nutzung oder Uebermittlung meiner Daten
fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung gemaess
Paragraph 28 Absatz 3 des Bundesdatenschutzgesetzes.


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

Date: Fri, 23 Jul 1999 13:40:36 +0100
From: Andy Mendelsohn <andy@focus-consulting.co.uk>
To: "E. Seifert" <Erich.Seifert@dachau.baynet.de>
Subject: Re: sorting multidim. arrays
Message-Id: <379862C4.294CC777@focus-consulting.co.uk>

[copied to author]
E. Seifert wrote:
> 
> Hi, I've got a problem:
> 
> I want to sort a multidimensional array by the first elements of its
> subarrays.
> How can I do that?
> 
> Thanx, Eric
> 

This is pretty easy and I'm sure it's in an FAQ section.

#!/usr/bin/perl -w

use strict;

my @a1 = qw(3 6 4 7);
my @a2 = qw(2 2 3 3);
my @a3 = qw(6 1 5 2);
my @a4 = qw(1 2 4 3);
my @a5 = qw(4 1 6 2);
my @array = (\@a1,\@a2,\@a3,\@a4,\@a5);

#assuming a numeric sort

my @sarray = sort { $a->[0] <=> $b->[0] } @array;

foreach (@sarray) {
       print "first element of subarray = ",$$_[0],"\n";
}



Go and look at perlref as well as the FAQ.

hth,
andy


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

Date: Fri, 23 Jul 1999 14:32:52 +0200
From: danny <pcl@dds.nl>
Subject: SQL statements and ODBC
Message-Id: <379860F4.C130FDA5@dds.nl>

Hi,

i'm working with ODBC at the moment (win32)

i got a table named table1
 with 3 fields
        field1
        field2
        field3


)
sql statement
$db->Sql("select * from table1");
is working fine

BUT

$db->Sql("select field1 from table1");
is giving an error

something like : the selected configuration of the sort direction isn't
supported by the operating system

i'm using win95 and is this the error ?

i need help ..

danny


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

Date: Fri, 23 Jul 1999 10:10:15 GMT
From: powersymphony@geocities.com (Marco Cecconi)
Subject: Re: TextArea fields
Message-Id: <37993efe.161147247@news.inferentia.it>

I don't like to state the obvious, but... The problem is, of course
that the ASCII DB interprets the CR as record separators... you'll
need to s/\n/§CR§/g or something before storing and s/§CR§/\n/g after
retriving...
Cheers
Marco Cecconi
Inferentia SpA


On Thu, 22 Jul 1999 22:03:35 GMT, lefkogt.xp@usafa.af.mil wrote:

>How can we use textarea fields in forms so that people can put hard
>carriage returns to separate paragraphs in a textarea field? Everytime
>we do it now it adds extra record(s) per physical carriage return.  We
>are on Unix-flavor server.  Try it at  www.home-bytes.com/stratplan/ .
>Click on Mission Analysis link, notice record count, click Add, enter
>info , enter hard carriage returns (enter key) in first textarea ONLY
>for now.  If you enter say three of them you will see four records were
>generated when you return to the main database screen (look at new
>count).  The program is an iteration of a database (ASCII) program
>built by Brent Michalski from www.webreview.com.  If you need to see
>code let me know and I will email it to you.
>Gary
>gary.lefko@usafa.af.mil
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.



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

Date: Fri, 23 Jul 1999 12:50:59 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: TextArea fields
Message-Id: <37986507.FD86D4CB@home.com>

[posted & mailed]

chris wrote:
> 
> If you are wanting to remove the newline character from the textarea
> input try
> 
> $nolines = join(' ', split(/\n/, $input_from_form));

That's very inefficient.  It's better to modify the scalar inplace than
create a list you don't need.

One way is

    ($nolines = $input_from_form) =~ s/\n/ /g;

but whenever you are changing only one character you should use tr which
is even faster.

    ($nolines = $input_from_form) =~ tr/\n/ /;

perldoc perlop

-- 
Rick Delaney
rick.delaney@home.com


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

Date: Fri, 23 Jul 1999 06:00:53 -0500
From: "Billy N. Patton" <bpatton@asic.sc.ti.com>
Subject: Timed prompt
Message-Id: <7n9hsd$j4j$1@tilde.csc.ti.com>

Does anyone have a module or a script that will prompt a user for
something ( at present Y/N) and wait only N seconds before accepting
a default.

    I've searched CPAN and have been unable to find anything.






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

Date: Fri, 23 Jul 1999 11:19:50 GMT
From: backwards.saerdna@srm.hc (Andreas Fehr)
Subject: Re: Timed prompt
Message-Id: <37984f65.17355485@news.uniplus.ch>

On Fri, 23 Jul 1999 06:00:53 -0500, "Billy N. Patton"
<bpatton@asic.sc.ti.com> wrote:

>Does anyone have a module or a script that will prompt a user for
>something ( at present Y/N) and wait only N seconds before accepting
>a default.
>
>    I've searched CPAN and have been unable to find anything.
>

perldoc -q "character waiting"

" might be changed for your system.


Andreas


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

Date: 23 Jul 1999 14:29:52 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Timed prompt
Message-Id: <37986e50@newsread3.dircon.co.uk>

In comp.lang.perl.misc Billy N. Patton <bpatton@asic.sc.ti.com> wrote:
> Does anyone have a module or a script that will prompt a user for
> something ( at present Y/N) and wait only N seconds before accepting
> a default.
> 
>     I've searched CPAN and have been unable to find anything.
> 

Check out Term::Screen - I think that does it.

/j\
-- 
"The most frightening thing on television since Anthea Turner revealed
she had a sister" - Suggs


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

Date: 23 Jul 1999 12:20:00 GMT
From: bbirthisel@aol.com (Bbirthisel)
Subject: Re: Using GSM modems with perl...
Message-Id: <19990723082000.25873.00000408@ng-bg1.aol.com>

Hi Marco:

>I am writing a series of perl scripts to schedule, and send GSM SMSs through
>a series of com ports.
>Has anything like this been done before? Where can I find some reference or
>source code? I'll gladly donate the results of my efforts to CPAN :)

Com port handling varies significantly by OS. For Windows,
you would use the Win32::SerialPort module. Un*x varieties
can use POSIX.pm for setting parameters (or the FAQ if the
default parameters are ok). There are links to a number of Win32
and linux code examples on my site:
## http://members.aol.com/bbirthisel/alpha.html

-bill
Making computers work in Manufacturing for over 25 years (inquiries welcome)


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

Date: Fri, 23 Jul 1999 13:36:31 GMT
From: "Philip H. Dye" <Philip_Dye@norstanconsult.com>
Subject: Re: waitpid crashes perl
Message-Id: <01bed511$5df12e40$918ee226@phdye-laptop>

Anno Siegel <anno4000@lublin.zrz.tu-berlin.de> wrote in article
<7n7vk1$v60$1@lublin.zrz.tu-berlin.de>...
> Philip H. Dye <Philip_Dye@norstanconsult.com> wrote in
comp.lang.perl.misc:
> >sub reaper
> >{
> >  my $child ;
> >
> >  while ( $child = waitpid(-1,WNOHANG) )
> >  {
> >    $Child_Status { $child } = $? ;
> >  }
> >}
> 
> Where on earth does this code come from?  My copy of the Camel has
> on page 340:
> 
> sub REAPER {
>   $waitedpid = wait;
>   $SIG{CHLD} = \&REAPER; # loathe sysV
> }
> 
> The code you claim is from the same Page is likely to loop forever.

Check the 2nd edition and the second example just after the one you refer
to.

And I did copy that one directly out of the book since my connection to the
client was down at the time.  I've included my complete bug report here
which might clear up some of the questions and doesn't any looping issues.

> you a segfault than a limited number of calls, I still suggest you
> fix your reaper and see if you get better results.  Re-entering
> malloc() is a possibility in a signal handler, but it usually
> is a rare occurrence and non-paranoid programmers tend to clean
> up the occasional core and go on with business.

How about it occurring every time right now.  Review the stack trace below
and you will see that the problem is quite clear.  It is the resolution
that I am concerned with.  I've decided to write a small extension that
will give me access to the c function waitpid() that doesn't call malloc().

What I can't understand is how this hasn't been a serious problem for
developers.  And I wonder why any form of wait was written that could ever
result in a call to malloc().  This would appear to be an serious
oversight.  Perhaps the waitpid code was generated with some generalized
package to incorporate C functions rather than being written by hand ?  And
of course I'd like to see this addressed in the next release.

I'm a consultant and my use of this 'buggy non-standard language' (quoting
co-workers) has been not been well received.  What could have been another
significant commercial project to report has turned into a problem. 
Unfortunately, it took me a while to trace it to this point.

Below is the bug report earlier this week.  No response yet.

Philip

- - - - -

Calling waitpid() from my SIGCHLD signal handler is resulting in a malloc()
which then crashes the program.  Relinking with dmalloc, a debugging
malloc implementation, resulted in the following output and stack trace.

I've tried to ensure that my code doesn't do any dynamic allocation.  I
assume that assignments to existing array elements should not result in
dynamic allocation or call other non-reentrant code.

If I can get around this problem perl will be in production automating
the loading a medium size data warehouse for a global company :)

- - - - -

sub reaper
{
  my $child ;

  while ( ( $child = waitpid ( -1, WNOHANG ) ) > 0 )
  {
    if ( WIFEXITED ( $? ) && defined ( $job_running { $child } ) )
    {
      $job_exits    { $child }  = $? ;
      $job_running  { $child }  = 0 ;
    }
  }
}

- - - - -

Final program lines:

00:02:05 : [ 16:02:37 ] Scanning - 64 jobs pending
00:02:05 : ... Discount_Mstr         Load        Verify count
00:02:06 : ... Discount_Mstr         Load        Done, 20 rows
00:02:06 : ... Discount_Mstr         ETL         Processing data
00:02:06 : debug-malloc library: dumping program, fatal error
00:02:06 :    Error: malloc library has gone recursive (err 11)

- - - - -

Call stack from the core file:

#0  0xd047fd14 in pthread_kill ()
#1  0xffffffff in ?? () from (unknown load module)
#2  0xd047f950 in raise ()
#3  0xd03687ac in abort ()
#4  0x10018e3c in _dmalloc_die ()
#5  0x10018cc8 in dmalloc_error ()
#6  0x100179e4 in check_debug_vars ()
#7  0x10018448 in _loc_malloc ()
#8  0x10018b34 in malloc ()
#9  0x1001298c in Perl_safemalloc (size=24) at util.c:89
#10 0x1000338c in my_safemalloc (size=24) at sv.c:608
#11 0x10006a38 in Perl_sv_upgrade (sv=0x2065559c, mt=6) at sv.c:791
#12 0x10010a40 in Perl_sv_2iv (sv=0x2065559c) at sv.c:1355
#13 0x100bd778 in Perl_pp_waitpid () at pp_sys.c:3167
#14 0x100aec84 in Perl_runops_standard () at run.c:30
#15 0x1002a36c in perl_call_sv (sv=0x206dbb0c, flags=2) at perl.c:1304
#16 0x1004b89c in Perl_sighandler (sig=20) at mg.c:1963
#17 0xd23d9f08 in sslsshandler ()
#18 <signal handler called>
#19 0x10021568 in _fill ()
#20 0x100184f8 in _loc_malloc ()
#21 0x10018b34 in malloc ()
#22 0x1001298c in Perl_safemalloc (size=1518) at util.c:89
#23 0xd2301b5c in dbd_preparse (imp_sth=0x20a42b08,
    statement=0x20a83c08 "Select   s.Stage_Id, s.Name, s.Status, s.State \n
 ,      To_Char(s.Started,'YYYY-Mon-
DD.HH24.Mi.SS') \n  ,      To_Char(s.Last_Updated,'YYYY-Mon-DD.HH24.Mi.SS')
\n  ,      s.Qty_1, s.Qty_2, s.Qty_3
, s.Q"...) at dbdimp.c:517
#24 0xd2306e88 in ora_st_prepare (sth=0x208fb0e0, imp_sth=0x20a42b08,
    statement=0x20a83c08 "Select   s.Stage_Id, s.Name, s.Status, s.State \n
 ,      To_Char(s.Started,'YYYY-Mon-
DD.HH24.Mi.SS') \n  ,      To_Char(s.Last_Updated,'YYYY-Mon-DD.HH24.Mi.SS')
\n  ,      s.Qty_1, s.Qty_2, s.Qty_3
, s.Q"..., attribs=0x0) at oci8.c:208
#25 0xd22fa014 in XS_DBD__Oracle__st__prepare (cv=0x208d75dc) at
Oracle.xsi:201
#26 0x10061f80 in Perl_pp_entersub () at pp_hot.c:2237
#27 0x100aec84 in Perl_runops_standard () at run.c:30
#28 0x1002a36c in perl_call_sv (sv=0x208fb0bc, flags=0) at perl.c:1304

- - - - -



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

Date: Fri, 23 Jul 1999 10:11:58 GMT
From: powersymphony@geocities.com (Marco Cecconi)
Subject: Re: What does this statement mean?
Message-Id: <379a3fc0.161341066@news.inferentia.it>

It is redirecting the STDOUT of mv in @result.
Marco Cecconi
Inferentia SpA


On Thu, 22 Jul 1999 20:35:43 GMT, kkmmperl@my-deja.com wrote:

>Hi,
>  I am a new to PERL.
>  What does the following statement mean?
>
>  @result=`mv $filename $archivedirectory`;
>
>  Is it storing the result of the execution of the move statement in the
>  array ?
>
>Clarification is highly appreciated.
>
>Thanks,
>kkmmperl
>
>
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.



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

Date: 23 Jul 1999 12:31:53 GMT
From: bbirthisel@aol.com (Bbirthisel)
Subject: Re: What is the best way to write data to a com port under DOS.
Message-Id: <19990723083153.25873.00000411@ng-bg1.aol.com>

Hi David:

>Joeri Belis wrote:
>> 
>> What is the best way to write data to a com port under DOS.
>> 
>> the baud rate must be 9600. How can i set this in a perl program
>
>I would recommend Bill Birthisel's Win32::SerialPort module.
>You can get it from CPAN.

But it won't work on "vanilla" MS-DOS. It relies on features
introduced in Win95.

There is a gentleman in Japan who is working on limited COM
port support for the djgpp-built version of Perl - but he has not
yet released results.

-bill

Making computers work in Manufacturing for over 25 years (inquiries welcome)


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

Date: 23 Jul 1999 13:24:30 GMT
From: wolph@merlin.albany.net (r j huntington)
Subject: Re: What is the best way to write data to a com port under DOS.
Message-Id: <7n9qee$nul$1@news.monmouth.com>

Joeri Belis (progressdll@angelfire.com) wrote:
: What is the best way to write data to a com port under DOS.

Print directly to the com port

: the baud rate must be 9600. How can i set this in a perl program

This is a DOS question. Print the appropriate command(s)
directly to the com port.



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

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 234
*************************************


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