[6458] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 83 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Mar 10 17:47:31 1997

Date: Mon, 10 Mar 97 14:00:22 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 10 Mar 1997     Volume: 8 Number: 83

Today's topics:
     Re: [Q] Perl in win3.11? (Ric Harwood)
     Re: Basic $ENV questions <proach@cais.com>
     Re: Basic $ENV questions <tchrist@mox.perl.com>
     Re: Chopping lines? (Ollivier Robert)
     Does Llama book really cover perl 5? Yes! (Topher Eliot)
     Re: Does Llama book really cover perl 5? Yes! (brian d foy)
     how to include all the modules in the search path <jwu@g-net.net>
     How to quote a package name? <chris@ripe.net>
     Re: How to quote a package name? <tchrist@mox.perl.com>
     Re: libwww & Win32: When does Perl Win32 become _really (Christopher Russo)
     lsdj (Webfirst)
     Parsing a form with enctype=multipart <ltorres@campus.ruv.itesm.mx>
     Re: Parsing a form with enctype=multipart (Honza Pazdziora)
     Perl "strict" usage (Luigi Mattera)
     Re: Perl "strict" usage <tchrist@mox.perl.com>
     Re: Perl "strict" usage (Luigi Mattera)
     Perl uudecoder - for Web NNTP server (Kevin)
     Re: Q: order of switches -i.bak -w <rootbeer@teleport.com>
     Re: RAND/SRAND query (Brian L. Matthews)
     Recurrence of variable, pct and count (Carl Payne)
     Re: Recurrence of variable, pct and count (Nathan V. Patwardhan)
     Re: Regex searches in all files (or selected files) in  (Jeffrey)
     Re: running Perl on IIS 2.0 <Michael.Armstrong@bankamerica.com>
     simple tutorial on writing perl cgi for NT (Webfirst)
     Re: Sort question (Brian L. Matthews)
     Sort, System() problem. <rcastill@icix.net>
     Re: Sybase Compile Problem <mpeppler@mbay.net>
     test (Robert Sebesta)
     Re: Who makes more $$ - Windows vs. Unix programmers? (Rich James)
     Re: Who makes more $$ - Windows vs. Unix programmers? (Robert Buxbaum)
     Re: Win32::Registry (I R A Aggie)
     Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: Mon, 10 Mar 1997 19:40:33 GMT
From: ric@discoveryinternational.com (Ric Harwood)
Subject: Re: [Q] Perl in win3.11?
Message-Id: <33242243.728030@news.demon.co.uk>

In comp.lang.perl.misc, on 3 Mar 1997 21:16:31 GMT
ilya@math.ohio-state.edu (Ilya Zakharevich), wrote:

cc: by mail.

<SNIP>
>Do not. Run either perl_, or the executable you created above.

Thanks. I have re-created the deleted files, and heyhey! it works, At
least in a dos box.

Thanks for all your help.

Now all I need to do is get the program working <g>.
Can you tell me if your port includes POSIX? Or whether I can add it?

Thanks again and Regards,
Ric.

-- 
"Big whorls have little whorls that feed on their velocity, 
and little whorls have lesser whorls and so on to viscosity."
                                          -- L.F.Richardson
PGP id:0766ABE5  http://www.discoveryinternational.com/ric/


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

Date: 10 Mar 1997 16:01:44 GMT
From: "Peter W. Roach" <proach@cais.com>
Subject: Re: Basic $ENV questions
Message-Id: <01bc2d6b$da39c160$c74bb0cf@proach>

Tom,
Re: "There aren't any more.  I promise.." I am not so sure. I am running
PERL on Win95 to run CGI scripts for Microsoft Personal Web Server. When I
try this routine in a CGI script called via the server, I only get the
environment variables already referenced by the program. If I don't
reference $ENV{'HTTP_USER_AGENT'}, for instance, then that variable is not
listed by the "foreach" routine. Strange! Any ideas?
	Cheers,
		Peter Roach
-- 
----------
-- proach@cais.com --

Tom Christiansen <tchrist@mox.perl.com> wrote in article
<5fo1rv$co6$8@csnews.cs.colorado.edu>...
>  [courtesy cc of this posting sent to cited author via email]
> 
> In comp.lang.perl.misc, 
>     ebabin@cyberenet.net (Eddie Babin) writes:
> :: foreach $key (sort keys %ENV) {
> ::    print OUTFILE $ENV{$key},"\n";
> :: }
> 
> :Thanks for your help.  This gave some of the environment variables.
> :How can I access the rest?
> 
> There aren't any more.  I promise.
> 
> --tom
> -- 
> 	Tom Christiansen	tchrist@jhereg.perl.com
> "Espousing the eponymous /cgi-bin/perl.exe?FMH.pl execution model is like

> reading a suicide note -- three days too late."
> 	    --Tom Christiansen <tchrist@mox.perl.com>
> 


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

Date: 10 Mar 1997 16:44:18 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Basic $ENV questions
Message-Id: <5g1dp2$lc8$1@csnews.cs.colorado.edu>

 [courtesy cc of this posting sent to cited author via email]

In comp.lang.perl.misc, 
    "Peter W. Roach" <proach@cais.com> writes:
:Re: "There aren't any more.  I promise.." I am not so sure. I am running
:PERL on Win95 to run CGI scripts for Microsoft Personal Web Server. When I
:try this routine in a CGI script called via the server, I only get the
:environment variables already referenced by the program. If I don't
:reference $ENV{'HTTP_USER_AGENT'}, for instance, then that variable is not
:listed by the "foreach" routine. Strange! Any ideas?

Yup, a bug in the port.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com


    "It's later than you don't think." --Larry Wall


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

Date: 10 Mar 1997 17:04:33 GMT
From: roberto@eurocontrol.fr (Ollivier Robert)
Subject: Re: Chopping lines?
Message-Id: <5g1ev1$s4t$3@polaris.eurocontrol.fr>

    [courtesy cc of this posting sent to cited author via email]

In article <5fhrko$hbi@work2.e-z.net>,
Ted Timmons <tedder@e-zone.e-z.net> wrote:
> I'd like to chop long lines so that they are around 70 characters. I
> don't need to worry about long/short line pairs (from having, say,
> 90-character lines) because of the application.

Why don't you try Text::Wrap (available on CPAN) ?

Module          Text::Wrap      (MUIR/modules/Text-Tabs+Wrap-97.011701.tar.gz)


Text::Wrap(3)    Perl Programmers Reference Guide   Text::Wrap(3)


NAME
       Text::Wrap - line wrapping to form simple paragraphs

SYNOPSIS
               use Text::Wrap

               print wrap($initial_tab, $subsequent_tab, @text);

               use Text::Wrap qw(wrap $columns);

               $columns = 132;

DESCRIPTION
       Text::Wrap::wrap() is a very simple paragraph formatter.
       It formats a single paragraph at a time by breaking lines
       at word boundries.  Indentation is controlled for the
       first line ($initial_tab) and all subsquent lines
       ($subsequent_tab) independently.  $Text::Wrap::columns
       should be set to the full width of your output device.

-- 
Ollivier ROBERT   -=- Eurocontrol EEC/TS -=-   Ollivier.Robert@eurocontrol.fr
Usenet Canal Historique


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

Date: 10 Mar 1997 19:05:17 GMT
From: eliot@kern1.dg.com (Topher Eliot)
Subject: Does Llama book really cover perl 5? Yes!
Message-Id: <ELIOT.97Mar10140517@kern1.dg.com>

   Is there really a Llama for Perl 5? I bought mine recently and it's the 
   Perl 4 version.

I have the new one. ISBN 1-56592-149-6.  $40 or so.
I also have the old one, so I'm sure the new one is new.  It even says
"Covers Perl 5" on the front cover, and "second edition" inside.

Having spent a bunch of time using just the Llama book(s), I am now reading
the camel book, and so far have found it worthwhile.  I would recommend it
as a starting point.

Topher Eliot                           Data General Unix Core Development
(919) 248-6371                                        eliot at dg-rtp.dg.com
Obviously, I speak for myself, not for DG.
Visit misc.consumers.house archive at http://www.geocities.com/Heartland/7400
"I like to get the chicks messy."  
	-- Peter, age 4, on why he likes the barnyard-scene cereal bowl.


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

Date: Mon, 10 Mar 1997 15:23:11 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Does Llama book really cover perl 5? Yes!
Message-Id: <comdog-1003971523110001@nntp.netcruiser>

In article <ELIOT.97Mar10140517@kern1.dg.com>, eliot@dg-rtp.dg.com wrote:

>    Is there really a Llama for Perl 5? I bought mine recently and it's the 
>    Perl 4 version.
> 
> I have the new one. ISBN 1-56592-149-6.  $40 or so.

that's strange.  why would a new Llama book have the same ISBN as the
second edition of "Programming Perl", which is the *Camel* book?

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


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

Date: Mon, 10 Mar 1997 14:09:50 -0500
From: Jason Hsi Wu <jwu@g-net.net>
Subject: how to include all the modules in the search path
Message-Id: <33245C7E.3E56@g-net.net>

Hello perl programmers:

I am new to Perl.
I have written a script that has "require" to use other library. When I
ran it, it says it can't find the required library.

I am sure I have to set some kind of path. Can someone tell me what
Pathname has to be set?? (I tried LD_LIBRARY_PATH, and it didn't work)

thanks,


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

Date: 10 Mar 1997 17:52:57 +0100
From: Chris Fletcher <chris@ripe.net>
Subject: How to quote a package name?
Message-Id: <whybbvu1sm.fsf@office.ripe.net>

I would like to use a package name of something like

  package Foo::bar-baz;

The compiler doesn't like this - it really wants a simple word.

Is there anyway of quoting the package name or do I have to map the hypen to
an underscore?

Ta.

Chris.


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

Date: 10 Mar 1997 19:03:20 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: How to quote a package name?
Message-Id: <5g1lto$sb8$1@csnews.cs.colorado.edu>

 [courtesy cc of this posting sent to cited author via email]

In comp.lang.perl.misc, 
    Chris Fletcher <chris@ripe.net> writes:
:I would like to use a package name of something like
:
:  package Foo::bar-baz;
:
:The compiler doesn't like this - it really wants a simple word.
:
:Is there anyway of quoting the package name or do I have to map the hypen to
:an underscore?

Nope.  A package name must be an identifier.  A minus is not allowed in
an identifier.

--tom

PS: Randal, no symbol-table hacking allowed; you'll only confuse the
    ppoor boy. :-)
-- 
	Tom Christiansen	tchrist@jhereg.perl.com


At MIT the server is the unit of invention.  --Rob Pike


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

Date: 10 Mar 1997 15:38:56 GMT
From: crusso@mit.edu (Christopher Russo)
Subject: Re: libwww & Win32: When does Perl Win32 become _really_ usable?
Message-Id: <5g19ug$f68@senator-bedfellow.MIT.EDU>

In article <5fv6ir$3fa@fridge-nf0.shore.net>, nvp@shore.net says...
>
>Michael Schilli (mschilli@blacksun.com) wrote:
>
>: a little story how I tried to get libwww running on Win95:

>There's supposed to be a port of libwww "special-made" for Win32, but 
>I've not seen it or tried it as of yet.
>


No need for that - read the instructions below.  I've made the necessary files 
available on our server at 

ftp://cogen.mit.edu/software/perl/libwww-win32-fix.zip

I've e-mailed it to several people already, and so far everyone's been able to 
get it to work.

Chris Russo
crusso@mit.edu

==========

This file contains the files necessary for running LWP/libwww under
Activeware's port of Perl for Win32 5.003 or higher.

1) Get and install Perl for Win32 version 5.003 build 303
or higher from www.activeware.com.  5.001 will not work with
this procedure!

2) Get the libwww distribution from www.sn.no/libwww-perl and copy
the files into the corresponding subdirectories in your PERLLIB
directory.  You can't run the makefile on Win32.  Copy the LWP.pm 
file directly into the PERLLIB directory.  

3) Unzip this distribution (which you've presumably already done) 
copy all of the *.al files into the corresponding directories
in your PERLLIB\auto tree.  You shouldn't have to overwrite anything 
to do this.  

4) Open the file UserAgent.pm in a text editor, and change the line

	'use_alarm'   => 1,

to

	'use_alarm'   => 0,

and close and save the file.

5) To verify installation, try this simple script:

use LWP::Simple;
$doc = get "http://www.yahoo.com/";
print $doc;

If you have any other questions, feel free to e-mail me.

23 February 1997
Chris Russo
crusso@mit.edu
http://web.mit.edu/crusso/www/



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

Date: 10 Mar 1997 19:30:40 GMT
From: webfirst@intr.net (Webfirst)
Subject: lsdj
Message-Id: <5g1nh0$hua@news.intr.net>

sorry


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

Date: Mon, 10 Mar 1997 13:13:44 -0600
From: Luis Torres <ltorres@campus.ruv.itesm.mx>
Subject: Parsing a form with enctype=multipart
Message-Id: <33245D68.1610@campus.ruv.itesm.mx>

Hi, anyone know if there's a difference between parsing a form with
enctype = multipart and one without enctype? I tried to parse the form
contents with the sub I was using before and now with multipart I dont
get any data!

Any help will be useful

L.T.


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

Date: Mon, 10 Mar 1997 19:59:47 GMT
From: adelton@fi.muni.cz (Honza Pazdziora)
Subject: Re: Parsing a form with enctype=multipart
Message-Id: <adelton.858023987@aisa.fi.muni.cz>

Luis Torres <ltorres@campus.ruv.itesm.mx> writes:

> Hi, anyone know if there's a difference between parsing a form with
> enctype = multipart and one without enctype? I tried to parse the form
> contents with the sub I was using before and now with multipart I dont
> get any data!
> 
> Any help will be useful

You should really try to

use CGI; or use CGI::*;

Hope this helps.

--
------------------------------------------------------------------------
 Honza Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/
                   I can take or leave it if I please
------------------------------------------------------------------------


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

Date: 10 Mar 1997 18:30:51 GMT
From: mattera@ssga.ssb.com (Luigi Mattera)
Subject: Perl "strict" usage
Message-Id: <5g1k0r$m5i@svna0001.clipper.ssb.com>

  I recently added the keywords "use strict" into my perl code, and
appended "my" to the front of all my variables.  Now this is
supposedly used to make debugging easier, but for some reason my
program has slowed down by a factor of three or so.  Each independant
little program I am writing also exhibits slowdown as well.  Does the
strict variable usage create inherent slowdown?  I may keep them in
while I debug it but I really need the speed back.



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

Date: 10 Mar 1997 19:25:26 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl "strict" usage
Message-Id: <5g1n76$sb8$2@csnews.cs.colorado.edu>

 [courtesy cc of this posting sent to cited author via email]

In comp.lang.perl.misc, mattera@ssga.ssb.com (Luigi Mattera) writes:
:  I recently added the keywords "use strict" into my perl code, and
:appended "my" to the front of all my variables.  Now this is
:supposedly used to make debugging easier, but for some reason my
:program has slowed down by a factor of three or so.  Each independant
:little program I am writing also exhibits slowdown as well.  Does the
:strict variable usage create inherent slowdown?  I may keep them in
:while I debug it but I really need the speed back.

That's quite odd.  lexicals are 10% faster than globals.
You've done something else here.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com


I just hate to be pushed around by some fucking machine. - Ken Thompson, on the i960


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

Date: 10 Mar 1997 20:05:23 GMT
From: mattera@ssga.ssb.com (Luigi Mattera)
Subject: Re: Perl "strict" usage
Message-Id: <5g1pi3$55i@svna0001.clipper.ssb.com>

Tom Christiansen (tchrist@mox.perl.com) wrote:

: That's quite odd.  lexicals are 10% faster than globals.
: You've done something else here.

  I was surprised by the slowdown myself.  I had timed my script for
each execution list and it went from around 50 seconds to execute to
around 2 minutes 20 seconds.  Does using "my" multiple times on a
single variable cause slowdown?  I combined them all to be certain,
but perhaps my slowdown was indicated by a poor test run of my
program.


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

Date: Mon, 10 Mar 97 19:13:11 GMT
From: swarts@razorlogic.com (Kevin)
Subject: Perl uudecoder - for Web NNTP server
Message-Id: <5g1mfa$mit@alder.northcoast.com>

I'm looking for some source code that will take an entire document, and on the 
fly find a uuencoded file, and decode it.

Take the source from the file below:

From: me@me.com
Subject: test.jpg (1/1)
Date: 8 Mar 1997 18:02:44 GMT


BEGIN --- CUT HERE --- Cut Here --- cut here --- test.jpg

begin 644 test.jpg
M_]C_X``02D9)1@`!`@$`2`!(``#_[0$T4&AO=&]S:&]P(#,N,``X0DE-`^T`
M`````!``2`````$``0!(`````0`!.$))30/S```````(```````````X0DE-
M)Q````````H``0`````````".$))30/U``````!(`"]F9@`!`&QF9@`&````
M```!`"]F9@`!`*&9F@`&```````!`#(````!`%H````&```````!`#4````!
M`"T````&```````!.$))30/X``````!P``#_________________________
M____`^@`````_____________________________P/H`````/__________
M__________________\#Z`````#_____________________________`^@`
M`#A"24T$!@```````@`"_^X`#D%D;V)E`&2``````?_;`(0`#`@("`D(#`D)
M#!$+"@L1%0\,#`\5&!,3%1,3&!$,#`P,#`P1#`P,#`P,#`P,#`P,#`P,#`P,
-Z_\`6DEY*DG?:A__V1]2
`
end
END --- CUT HERE --- Cut Here --- cut here --- test.jpg

I would guess that the code would have to look for the 'begin' string, and 
extract the name from the header as well. Then read the information all the 
way until it finds end. Then it takes the file and runs it through uudecoder 
which is on the shell. And since the files won't always have a attachment, it 
should allow it to go through even though.

The end file could be sent within the document per what it's extension is, 
i.e. if a .jpg, .jpeg, .gif, then put it in an <IMG SRC=""> tag. If it's an 
avi, .mpeg, .mov, then it would be embeded. If it's an .exe, .com, .bat, etc. 
then it could be saved locally, and the allow a link to it within the output.

Any help appreciated. And the end code will be free. It will be a web based 
real usenet device. It can read the nntp flow, and output it to web users. The 
nntp code is already done, write if you want it.

TIA,
Kevin


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

Date: Mon, 10 Mar 1997 11:51:23 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Bernhard Wagner <bwagner@claude>
Subject: Re: Q: order of switches -i.bak -w
Message-Id: <Pine.GSO.3.95q.970310114215.22489O-100000@kelly.teleport.com>

On 9 Mar 1997, Bernhard Wagner wrote:

> I use perl 5.003 and have this problem:
> When I use the switch -i.bak, the following switches (e.g. -w) are
> ignored by perl. When I use -w -i.bak in this order, I get the error:
> Unrecognized switch: - -i.bak.
> Am I doing sth. wrong or is it worth to invoke perlbug?

I'm not sure, but your system or shell may be doing something with the
extra switches. (Are these on the command line, or on the #! line at the
top of the script? Some systems allow only one switch after #!.) Try
combining them as -wi.bak and see what you get.

Another idea is to see whether the file reported by 'which perl' is really
the perl binary. Perhaps it's really a script which invokes perl, although
I don't know why it should be. (If somebody did that to invoke perl at a
non-standard location, they probably should have used a symlink instead.)

Hope this helps!

-- Tom Phoenix        http://www.teleport.com/~rootbeer/
rootbeer@teleport.com   PGP  Skribu al mi per Esperanto!
Randal Schwartz Case:     http://www.lightlink.com/fors/



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

Date: 10 Mar 1997 10:10:57 -0800
From: blm@halcyon.com (Brian L. Matthews)
Subject: Re: RAND/SRAND query
Message-Id: <5g1irh$6on$1@halcyon.com>

In article <5g0r5r$j2e$1@mathserv.mps.ohio-state.edu>,
Ilya Zakharevich <ilya@math.ohio-state.edu> wrote:
|> I don't know, sub rand { 0; } is pretty bad as far as randomness goes,
|> although it's pretty fast. :-)
|I think if you try benchmarking it agains the builtin one you would be
|badly surprised (but I did not try it).

I didn't try it either, but I wouldn't be surprised if the overhead of
calling a subroutine is much larger than that of calling a builtin
function. When I said "pretty fast", I was speaking of the "random
number generator" itself. Of course, no matter how slow or fast it is,
it's still not very random. :-)

Brian
-- 
Brian L. Matthews				Illustration Works, Inc.
	For top quality, stock commercial illustration, visit:
		  http://www.halcyon.com/artstock


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

Date: 10 Mar 1997 12:07:15 -0700
From: cpayne@xmission.xmission.com (Carl Payne)
Subject: Recurrence of variable, pct and count
Message-Id: <5g1m53$g27$1@xmission.xmission.com>

This is a security alarm report:

10MAR97:11:38:15:01 FTDOOR:KEYP1 DAVEL ENTRY GRANTED
10MAR97:11:42:25:16 ARCHV1:PALM1 LINDA ENTRY GRANTED
10MAR97:11:48:21:31 FRIDGE:RETIN DAVEL ENTRY GRANTED

(naturally, this is fake)

What I want to do is be able to take this report and figure
out what these evil employees are doing first thing in the
morning.

In the above example, Dave visited the Jolt Fridge 10 minutes
after he arrived at work.  I'd like to know:

- what percentage of people do this
- listed by employee name, where do these people go FROM the ftdoor
- listed by employee name, where do they go after that

I can do the total percentages based on destination and employee,
but I can't figure out how to track the employee's second stop,
their third or fourth.  I can count how many times each destination
was visited, but not how many times each employee visited it, and
I can count the percentage of employees that use each destination,
(100% use the front door, 75% use the FRIDGE, etc), but not what
percent each destination is a 2cd, 3rd or 4th stop.

Any ideas?


Carl

-- 

	Opportunity only knocks once
	In my case, it also leaves a flaming bag of dog crap on the porch


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

Date: 10 Mar 1997 19:27:07 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Recurrence of variable, pct and count
Message-Id: <5g1nab$n2o@fridge-nf0.shore.net>

Carl Payne (cpayne@xmission.xmission.com) wrote:

: What I want to do is be able to take this report and figure
: out what these evil employees are doing first thing in the
: morning.
[snip]

Wow.

: Any ideas?

Yes, please trust your employees, unless you have a reasonable belief
that they are stealing from you.  Why do you have everything in the
office generating security reports, anyways?  Including the fridge?
What's a jolt fridge?  For jolt cola?  Not a flame, but your note 
sounds a wee bit paranoid.  :-)

--
Nathan V. Patwardhan
nvp@shore.net



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

Date: 10 Mar 1997 18:02:57 GMT
From: jfriedl@tubby.nff.ncl.omron.co.jp (Jeffrey)
To: David Parkhurst <parkhurs@indiana.edu>
Subject: Re: Regex searches in all files (or selected files) in a directory
Message-Id: <JFRIEDL.97Mar11030257@tubby.nff.ncl.omron.co.jp>


[mail and post]

David Parkhurst <parkhurs@indiana.edu> wrote:
|> I'd like to use regex to search all *.txt files (say) in a particular 
|> directory that match some pattern.  I'm working in Windows95, and I'm a 

You might find my 'search' program useful.
It's at
	http://enterprise.ic.gc.ca/~jfriedl/perl

Jeffrey
----------------------------------------------------------------------------
Jeffrey Friedl <jfriedl@ora.com> Omron Corp, Nagaokakyo, Kyoto 617 Japan
See my Jap<->Eng dictionary at http://www.wg.omron.co.jp/cgi-bin/j-e
O'Reilly's Regular Expression book: http://enterprise.ic.gc.ca/~jfriedl/regex/


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

Date: Mon, 10 Mar 1997 10:32:45 -0800
From: "Michael C. Armstrong" <Michael.Armstrong@bankamerica.com>
Subject: Re: running Perl on IIS 2.0
Message-Id: <332453CD.6714@bankamerica.com>

Brian Cohen wrote:
> 
> Hi!
> 
> I was wondering if anyone knows how to setup a perl script properly so IIS
> 2.0 will actually run the thing.  I've put the perl scripts in a cgi-bin
> and clicked on the execute button but nothing happens.
> 
> If anyone does know I would appreciate the advice.
> 
> Regards,
> 
> Michael
> audible@fox.nstn.ca

Check out the book, "PC Magazine, Perl 5.0 CGI Web Pages for Windows NT"
by Jonathan Hagey from ZD Press. It discusses what you need to know.

In particular, you don't use /cgi-bin -- you use /scripts under
/inetpub. There are a number of other and considerations, including
installation under Win95, if you care.


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

Date: 10 Mar 1997 19:33:04 GMT
From: webfirst@intr.net (Webfirst)
Subject: simple tutorial on writing perl cgi for NT
Message-Id: <5g1nlg$hua@news.intr.net>

my subject line asks the question.
I am looking for a simple way to setup
cgi using perl on windows nt. I keep getting the
error 500 server error
Message
CGI OUTPUT  from c:/website/cgi-shl/script.pl contained no blank
line separating header and data.

I have no idea what this means. the script.pl just
contains

print "hello world\n";


thanks
sanjay
spatel@webfirst.com
please cc me if you can, thanks



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

Date: 10 Mar 1997 00:17:17 -0800
From: blm@halcyon.com (Brian L. Matthews)
Subject: Re: Sort question
Message-Id: <5g0g2d$pk5$1@halcyon.com>

In article <viet-0903971752340001@dal36-08.ppp.iadfw.net>,
 <viet@airmail.net> wrote:
|How do I sort a list with elements: ("Dec96", "Nov96", "Jan97", "Feb97",
|...) so that the latest the newest (Feb97) would come out first? I checked
|a technique called Schwartian Transform but could not figure out how to
|make it work with my list.

It will work, but because the Greeks and Romans didn't have the foresight
to name the months in alphabetical order, you have to convert the month
abbreviations into something sortable, probably using a pair of hashes:

%sortableMonths = ( 'Jan' => '00', ... 'Dec' => '11');
%sortedMonths = reverse %sortableMonths;

Then use them in the maps in the transform.

Brian
-- 
Brian L. Matthews				Illustration Works, Inc.
	For top quality, stock commercial illustration, visit:
		  http://www.halcyon.com/artstock


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

Date: Mon, 10 Mar 1997 15:51:05 -0500
From: Ramon Castillo <rcastill@icix.net>
Subject: Sort, System() problem.
Message-Id: <33247439.4A81@icix.net>

I need help and other eyes to figure out what is wrong with something so
simple like this.

I'm using Perl5 on Solaris 2.x

Im trying to sort a file within a perl script.

If I do this from the shell it works fine

sort +1n -t:: -o output.file input.file

but

when run the script

system("sort +1n -t:: -o output.file input.file");

The error mess. is 
sort: invalid use of command line options.

I already tried -t\:\:

any idea what it could be.

RC


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

Date: Mon, 10 Mar 1997 07:49:42 -0800
From: Michael Peppler <mpeppler@mbay.net>
To: Chris Tyner <cctyner@eos.ncsu.edu>
Subject: Re: Sybase Compile Problem
Message-Id: <33242D96.1A58@mbay.net>

Chris Tyner wrote:
> 
> I have bit of a problem trying to compile the Sybase 2.07 module
> due to some missing lib files.  I am working on Linux and was
> wondering if someone can point me in the right direction to download
> the files.  Makefile.PL output is as follows:
> 
> /tmp/sybperl-2.07># perl Makefile.PL
> Writing Makefile for Sybase::BCP
> Warning (will try anyway): No library found for -ltli
> Writing Makefile for Sybase::CTlib
> Warning (will try anyway): No library found for -lsybdb
> Warning (will try anyway): No library found for -ltli
> Writing Makefile for Sybase::DBlib
> Writing Makefile for Sybase::Sybperl
> Writing Makefile for Sybase

Sybase has not ported DBlibrary to Linux. You can only build the
CTlib module. Edit CONFIG and set DBLIBVS=0, and unset EXTRA_LIBS,
and rebuild.

Michael
-- 
Michael Peppler, Data Migrations Inc.
mpeppler@mbay.net or mpeppler@bix.com



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

Date: 10 Mar 1997 16:40:33 GMT
From: rws@sneffels.uccs.edu (Robert Sebesta)
Subject: test
Message-Id: <5g1di1$lv@harpo.uccs.edu>

RS



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

Date: Mon, 10 Mar 1997 17:36:22 GMT
From: jamesr@remove_this.bscc2.agw.bt.co.uk (Rich James)
Subject: Re: Who makes more $$ - Windows vs. Unix programmers?
Message-Id: <3324463f.1057298164@news.axion.bt.co.uk>

On Sun, 9 Mar 1997 13:32:11 -0800, brtaylor   @   qtpi.lakewood.ca.us
("Bob Taylor") wrote:


>I would recommend learning BOTH. Why put all your eggs in one basket?

Hell, I'd recommend learning the Novell API too...
There are fewer products out there, and the market's just as large...

Rich


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

Date: Mon, 10 Mar 1997 15:31:42 -0500
From: bux@bway.net (Robert Buxbaum)
Subject: Re: Who makes more $$ - Windows vs. Unix programmers?
Message-Id: <bux-1003971531430001@dial261.bway.net>

In article <w7sp23ahvw.fsf@mud.imperium.net>, Mark Lehrer
<edge@mud.imperium.net> wrote:

>futureprog@bridge.net.NOSPAM.PLEASE (Future Programmer) writes:
>
>> Unix appeals more to me and is more advanced technically, but I am
>> afraid that it is losing the market share to Windows 95. I want to be in
>> the consulting field.
>
>If you're going to be a consultant, you need to understand both
>systems and where they fit in to the picture.  Different companies
>will use different solutions.
>
>In general, I'd say that Windows work is easier to find because more
>companies use it, but there are also more people with Windows skills
>so you won't necessarily make as much.  A good Unix programmer can
>make a killing, but the work is harder to find...

Here in nyc.food we're pretty well fed up with programmers who must
respond to trolls and cannot trim the newsgroups to include only those
that might be remotely connected wityh the subject at hand.  After seeing
all these exceptionally stupid replies misdirected to nyc.food, I can only
wonder how computing got so far in so little time with such programmers,
but then again what the hell do I know about the morons who respond to
Eunuchs and Windoze, I work in a Mac environment.  

Why don't you all get a dose of self respect and cut nyc.food from your
replies to this dumb thread if you must allow yourself to fall for this
bait.  

This message is about the inablitlity of programmers and other computer
illiterates to  responds responsibly o=in newsgroups.  It belongs in this
newsgroup.  I have trimmed the header to remove all froups to which this
message might be offtopic.

-- 
<http://www.bway.net/~bux/>
Food, wine, and travel in France and New York City
revised 4 March 1997 *  Basque Coast report revised and completed    


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

Date: Sun, 09 Mar 1997 11:43:00 -0500
From: fl_aggie@hotmail.com (I R A Aggie)
Subject: Re: Win32::Registry
Message-Id: <fl_aggie-ya02408000R0903971143010001@news.fsu.edu>

In article <01bc2c45$416a91c0$1a4281ce@zonetemp.dns.microsoft.com>, "David
Williamson" <drwill@loginet.com> wrote:

[posted && cc'd]

+ Does anyone know where I can find this module?  Where can I go to find
+ modules not included with the usual PERL install?

Get thee to CPAN! <url:http://www.perl.com/CPAN/>

James

-- 
Consulting Minster for Consultants, DNRC

To cure your perl CGI problems, please look at:
<url:http://www.perl.com/perl/faq/idiots-guide.html>


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

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

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