[11694] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 5294 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Apr 4 09:05:51 1999

Date: Sun, 4 Apr 99 06:00:19 -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           Sun, 4 Apr 1999     Volume: 8 Number: 5294

Today's topics:
    Re: *** Perl programmer needed for various projects <perlguy@technologist.com>
    Re: assigning variables to results of grep? <gellyfish@gellyfish.com>
        CGI for Online Credit Cards / Local Testing? <info@billyjack.com>
    Re: constructing a list of hashes <gellyfish@gellyfish.com>
    Re: Copy from Perl? <computerguru@mailexcite.com>
    Re: Copy from Perl? bradclawsie@my-dejanews.com
        Does anyone know how to do date/time functions in Perl agniora@usa.net
    Re: Does anyone know how to do date/time functions in P agniora@usa.net
    Re: E-mail from webpage... (M.)
    Re: E-mail from webpage... (M.)
    Re: Getting parent process's environment variable to ch <gellyfish@gellyfish.com>
    Re: Help! <tcooper@nidlink.com>
        HELP: Perl and shell commands <jeuh@ecs.umass.edu>
    Re: How to set the Printer fonts using perl? <indy@nospamdemobuilder.com>
    Re: How to set the Printer fonts using perl? agniora@usa.net
    Re: How to set the Printer fonts using perl? <gellyfish@gellyfish.com>
    Re: Including Perlscripts in SHTML (Server Side Include <gellyfish@gellyfish.com>
    Re: Load file from other server <gellyfish@gellyfish.com>
    Re: LWP and Timeout? <gellyfish@gellyfish.com>
        Oracle DBD work-around <pmercer@verio.net>
    Re: Perl search script <ffchopin@worldnet.att.net>
        Perl/CGI with Frontpage PWS oekilla@aol.com
    Re: Server Side Includes <gellyfish@gellyfish.com>
    Re: Silicon Valley Perl Mongers? <indexfinger@usa.net>
    Re: Silicon Valley Perl Mongers? (David H. Adler)
        Total beginner question <cal@spacemoose.com>
    Re: Total beginner question <gp@gpcentre.net>
    Re: Total beginner question agniora@usa.net
    Re: Total beginner question <dwight@trumbower.com>
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

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

Date: Sun, 04 Apr 1999 06:36:35 -0500
From: Brent Michalski <perlguy@technologist.com>
To: g@just-for-fun.net
Subject: Re: *** Perl programmer needed for various projects
Message-Id: <37074EC3.4522520E@technologist.com>

Greg,

I am curious about the jobs you posted.  I meet all of the
qualifications, you can view my (slightly outdated) resume at the link
in my signature.  It is outdated because I am working at MasterCard
now...

I have also written several articles for WebReview and Perl.com.

What hourly rate are you looking to pay for these jobs and how much work
is there going to be?  My normal rate is $100/hr but if there will be
work on a continuing basis, we may be able to work out a lower rate.

Please contact me if interested.

Brent Michalski
-- 
Java?  I've heard of it, it is what I drink while hacking Perl! -me
+----------------------------------------+
|            Brent Michalski             |
|         -- Perl Evangelist --          |
|    E-Mail: perlguy@technologist.com    |
| Resume: http://www.inlink.com/~perlguy |
+----------------------------------------+


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

Date: 4 Apr 1999 10:38:58 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: assigning variables to results of grep?
Message-Id: <7e7fg3$93$1@gellyfish.btinternet.com>

On Thu, 01 Apr 1999 12:59:18 -0700 Marshall V Pierce wrote:
> I was shocked to find that the following does NOT work:
> 
> ($x,$y,$UserID) = 
> split(':',`grep "49[0-0][0-9][0-9]" /etc/passwd | awk '{ FS=":";print $3
> }' | sort | tail -1`);
> 

I dont know why you are shocked at this behaviour as a quick examination
of the section:

       Quote and Quote-like Operators

in the perlop manpage would have shown you that the backticks interpolate
variables the same as double quotes (unless you use qx'').  Your $3 is
thus being interpolated as (probably) an empty string before the line
is executed.  You should either use qx'' instead of the backticks or
escape the $3 thus: \$3 in order that Perl wont try to interpolate it.

Next time you are surprised by the behaviour of some Perl code you will
almost certainly be rewarded by an examination of the documentation
before you post here.

Of course if all you are trying to is print the highest UID between
49000 and 49099 then this is probably not how you want to be doing it
anyhow:


#!/usr/bin/perl -w

use strict;

my $passwd = '/etc/passwd';

my $range_min = 500;
my $range_max = 599;

my $max_uid = 0;

open(PASSWD,$passwd) || die "cant open $passwd - $!\n";

while(<PASSWD>)
{
   my @pass = split /:/;

   $max_uid = $pass[2] if ( $pass[2] >= $range_min &&
                            $pass[2] <= $range_max &&
                            $pass[2] > $max_uid );
}

close PASSWD;

print $max_uid;

So much nicer than spawning a whole bunch of external programs really.

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


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

Date: Sat, 03 Apr 1999 23:46:45 -0800
From: "Information Services" <info@billyjack.com>
Subject: CGI for Online Credit Cards / Local Testing?
Message-Id: <37078ec4@news1.jps.net>

I've become responsible for getting our website to work with authorize.net.
Rather than have a shopping card we want to set up a simple single page with
the few items we offer. Once the user makes his/her choices they are sent to
a *review* page to confirm their order. If the review is okay, they are sent
on to the Authorize.net system.

My questions:

1. I've written a script to get from order form to review, with totals, but
how do I next go to payment system with required fields? Does the cgi
program I wrote to create the review page also make the review page into a
form itself? (I'm asking because I've tried this and keep getting server
errors.)

2. How do pros test? I keep editing, uploading, changing priveleges,
testing, editing, etc. Is there a better way? Is there a way to test the
scripts locally on a Mac for those times when I'm not online?

Thanks much!

Frank Laughlin


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

Date: 4 Apr 1999 10:53:27 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: constructing a list of hashes
Message-Id: <7e7gb7$9v$1@gellyfish.btinternet.com>

On Fri, 02 Apr 1999 20:21:46 GMT hojo wrote:
> 
>> > Allow me to correct my statements.  The program works.	With the -wT on
> it
>> > states the following: Use of uninitialized value at ./p1 line 15. It
>> > complains, but runs anyway.  I really asked the question in the interests of
>> > clean programming.  Thanks.
> 
> 
> 
> Here is the program:
> #!/usr/bin/perl -wT
> #
> ###################################
> use strict;
> ###################################
> my @test;
> my $tnew = {};
> print "\n######Begin######";
> $test[81]=$tnew;
> print "\n$test[81]{27} ---\n";
> $test[81]{27}++;
> print "\n$test[81]{27} ---\n";
> print "\n######End######";
> 
> 
> Here is the output:
> 
> 
> Use of uninitialized value at ./p1 line 10.

Er yes but the warning is not cause by the incrementing of the $variable
it is caused by you trying to print the previously unitialized $test[81]{27}
if you dont print it you wont get the error or alternatively you can
explicit inintialize it to 0 however the incrementing just does the right
thing to undefined scalars anyhow.

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


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

Date: Sun, 4 Apr 1999 04:16:59 -0400
From: "Computer Guru Consulting" <computerguru@mailexcite.com>
Subject: Re: Copy from Perl?
Message-Id: <923213938.760.99@news.remarQ.com>

I understand..and I'm using my own account......I program in Java, and use
OO, but do not know the theory behind it, which pisses me off....

--
Computer Guru Consulting
Bringing your business to the world
http://www.cguru.com
Bob Trieger wrote in message <7e6cu3$ogt$1@birch.prod.itd.earthlink.net>...
|"Computer Guru Consulting" <cguru@hotpop.com> wrote:
|o>Hmmm....I figured a system call would work....alhough I don't know
|o>modules....I've done very well w/o them :)
|o>Modules are something I just can't grasp....just like any OOP, I can't
grasp
|o>it...I can do C, but not C++, And I always choke on the OOP concepts of
Java
|o>as well.....Thanks for your help
|
|Ask the computer guru whose account you are using to tutor you.
|
|
|You don't have to know all of the inner workings of OO to use the modules.
|Most of them come with great documentation on how to use them. Not using
the
|modules provided is like not driving because you don't under gas
combustion.
|
|Bob Trieger
|sowmaster@juicepigs.com
|
|"Contrary to popular belief, man can live on Ramen Noodles alone"
|




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

Date: Sun, 04 Apr 1999 09:16:07 GMT
From: bradclawsie@my-dejanews.com
Subject: Re: Copy from Perl?
Message-Id: <7e7akk$7l2$1@nnrp1.dejanews.com>

In article <923213938.760.99@news.remarQ.com>,
  "Computer Guru Consulting" <cguru@hotpop.com> wrote:
> I understand..and I'm using my own account......I program in Java, and use
> OO, but do not know the theory behind it, which pisses me off....

You may want to take a look at comp.object, or another OO-related group.
Be forewarned that mapping some OO concepts on to perl requires a fairly good
understanding of references (see: perldoc perlref), and maybe a leap of faith.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: Sun, 04 Apr 1999 06:56:50 GMT
From: agniora@usa.net
Subject: Does anyone know how to do date/time functions in Perl
Message-Id: <7e72ff$1kg$1@nnrp1.dejanews.com>

I looked in the FAQ and the CPAN, but the modules i need seem to be for Unix
only, but im running perl for NT, does anyone know what module to use and
where to get them from?

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: Sun, 04 Apr 1999 07:01:47 GMT
From: agniora@usa.net
Subject: Re: Does anyone know how to do date/time functions in Perl
Message-Id: <7e72op$1o2$1@nnrp1.dejanews.com>

i am mainly looking for some function that would take a date formatted string
as input and return the day for that date.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: Sun, 04 Apr 1999 08:20:13 GMT
From: pub @ alma.ch (M.)
Subject: Re: E-mail from webpage...
Message-Id: <1103_923214013@mi-note.mediaprofil.ch>




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

Date: Sun, 04 Apr 1999 08:23:13 GMT
From: pub @ alma.ch (M.)
Subject: Re: E-mail from webpage...
Message-Id: <1104_923214193@mi-note.mediaprofil.ch>

On Sat, 03 Apr 1999 23:14:14 +0200, Henrik Widenfors <pt98hwi@student.hk-r.se> wrote:
> Hi 
> 
> I4m interested in sending a e-mail from my webpage. 
> I have looked at FormMail and noticed that I need the program
> "sendmail". 
> 

> * What would you recommend me to use if working with a Windows based
> Server(Script + mailprogram MUST be freeware)? 
> 

Use CGI.pm to parse your form data, and a Perl module to handle the mailing, so your script will run on any platform.

Look at <http://alma.ch/perl/mail.htm> for a description of Mail::Sendmail and for links to other modules like Net::SMTP and Mail::Sender.



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

Date: 4 Apr 1999 12:12:39 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Getting parent process's environment variable to change when running a perl script
Message-Id: <7e7kvn$ep$1@gellyfish.btinternet.com>

On Wed, 31 Mar 1999 10:34:45 +0200 Philip Newton wrote:
> 
> I once saw some code that did outrageous things to modify its parent's
> environment under MS-DOS (chaining up PSP's and following strange
> pointers, or maybe starting at the address contained in an interrupt
> vector, or something). Probably wouldn't work under NT's memory
> protection and even if it did, I don't remember where I saw it. I rather
> doubt you can do such things under NT.
> 

You cant even do it with DOS programs running inside windows 3.1 without
causing a GPF.

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


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

Date: Sat, 03 Apr 1999 20:20:48 -0800
From: Tom Cooper <tcooper@nidlink.com>
Subject: Re: Help!
Message-Id: <3706E8A0.87FE5FB5@nidlink.com>

Jeremy:
You might try a form that looks like this.
this should preserve the white space.  
It works using CGI.pm and a call to param("one");
best of luck,
Tom
<html>
<title>A simple form</title>
<form action="/cgi-bin/form-parms.pl" method="post">

 <select name="one">
                                               
<option value=" perl "> perl
<option value=" c++ "> c++
</select>

<input type="submit"
 value="Submit" >
                                             
</form>
</html>

jros2956@my-dejanews.com wrote:
> 
> I have a bit of a conundrum.  Here's my problem.  I am interfacing a Sybase
> database with Perl.  I have paper titles (for example "test") that I have the
> user pick out of a select box.  My problem is the data I was given has titles
> that are identical except for a space, for example " Internet Protocol"
> and "Internet Protocol"  When I pull the titles out of my form using the $in
> operator, it apparently chops out the space. I need that space however
> otherwise I can't tell which paper it is.  Any suggestions?
> 
> Jeremy Rosenberg
> 
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own


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

Date: Sat, 3 Apr 1999 23:01:13 -0500
From: Jeongseon Euh <jeuh@ecs.umass.edu>
Subject: HELP: Perl and shell commands
Message-Id: <Pine.LNX.3.96.990403224903.10280A-100000@vsp2.ecs.umass.edu>

Hi everyone,

I'm trying to control program execution with shell commands, such as
jobs, stop, and bg. So far I couldn't get it to work with Perl.
What I'm trying to do is 
	1) run my programs in background which are written in C
	2) run a Perl script to control each program's execution.
           Sometimes I need to stop a program and run it again after a
           while.
I use tcsh for my linux box. Any help wiil be appreciated.
Thanks.

Jeongseon Euh
==========================
E-Mail: jeuh@ecs.umass.edu



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

Date: Sun, 04 Apr 1999 03:11:12 GMT
From: "Indy Singh" <indy@nospamdemobuilder.com>
Subject: Re: How to set the Printer fonts using perl?
Message-Id: <kLAN2.832$oQ2.4928@news.rdc1.on.wave.home.com>

If you are using a Win32 system you can format your page as HTML, then use
the code fragment below to print the file.

Indy


if (-e "$ENV{'WINDIR'}/System32/mshtml.dll") {
    $dll = "$ENV{'WINDIR'}/System32/mshtml.dll";
} else {
    $dll = "$ENV{'WINDIR'}/System/mshtml.dll";
}

#note: can't use this to print multiple files
system("rundll32.exe $dll,PrintHTML $outfile");
unlink $outfile;





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

Date: Sun, 04 Apr 1999 06:37:17 GMT
From: agniora@usa.net
Subject: Re: How to set the Printer fonts using perl?
Message-Id: <7e71au$os$1@nnrp1.dejanews.com>

In article <7e4std$1gd$1@gellyfish.btinternet.com>,
  Jonathan Stowe <gellyfish@gellyfish.com> wrote:
> On Sat, 03 Apr 1999 06:40:48 GMT smnayeem@my-dejanews.com wrote:
> > what i mean is if there is any way that i can use perl to change the default
> > font of the printer and use/access any of the other built-in fonts. I am
using
> > a HP6MP printer.
>
> You gets out the manual for your printer and looks up the appropriate
> codes to cause the printer to change the font.  The printer that you have
> supports Postscript so you will probaby want to be outputting that.
>
> A way that I use that is printer independent is to output nroff marked up
> text and post-process that with some troff-alike before printing usually
> in a pipe.  But I guess that you're going to say that you are NT and dont
> have the ability to do that - well its to the manuals.
>
> I did start work on a module in my last job that would have made this easier
> but I left the job before I finished and I dont have a printer here.
>
> /J\
> --
> Jonathan Stowe <jns@gellyfish.com>
> Some of your questions answered:
> <URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
> Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
>
Jonathan, do u think u can get me in touch with someone who might be still
working on that module from ur last job?

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: 4 Apr 1999 11:01:04 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: How to set the Printer fonts using perl?
Message-Id: <7e7gpg$a4$1@gellyfish.btinternet.com>

On Sun, 04 Apr 1999 06:37:17 GMT agniora@usa.net wrote:
> In article <7e4std$1gd$1@gellyfish.btinternet.com>,
>   Jonathan Stowe <gellyfish@gellyfish.com> wrote:
>>
>> I did start work on a module in my last job that would have made this easier
>> but I left the job before I finished and I dont have a printer here.
>>
> Jonathan, do u think u can get me in touch with someone who might be still
> working on that module from ur last job?
> 

No. That is no-one will be working on it (or I very much doubt it).  I
do actually intend to do some work along this line at some stage.  Of course
if someone would buy me a nice Laser Printer ;-}

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


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

Date: 4 Apr 1999 11:42:30 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Including Perlscripts in SHTML (Server Side Includes)
Message-Id: <7e7j76$ej$1@gellyfish.btinternet.com>

On 29 Mar 1999 23:39:11 GMT Lars Plessmann wrote:
> I've got a problem in including Perl Scripts into a SHTML file.
> On windows 95 it works correctly, but on my Linux and on other UNIX
> Systems it doesn't work :-(
> That's my SHTML file (I saved it as "haupt.shtml"):

<snip totally irrelevant HTML>

> Why doesn't the #include tags work? Even the #exec tag does not work.


Perl doesnt have an '#include tag' nor an '#exec tag' I think you are asking
in the wrong group.

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


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

Date: 4 Apr 1999 11:33:20 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Load file from other server
Message-Id: <7e7im0$eg$1@gellyfish.btinternet.com>

On Sat, 3 Apr 1999 20:37:51 +0200 ccd wrote:
> How can I load a file from an other server with a perl cgi script?
> 

The LWP modules.

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


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

Date: 4 Apr 1999 11:32:35 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: LWP and Timeout?
Message-Id: <7e7ikj$ed$1@gellyfish.btinternet.com>

On Sat, 03 Apr 1999 20:05:53 +0200 Frank de Bot wrote:
> Is there a way to set manual the timeout time if you are using LWP?
> 

I guess you missed the bit in the LWP::UserAgent documentation where it
describes this.

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


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

Date: Sun, 04 Apr 1999 03:12:37 -0500
From: pat mercer <pmercer@verio.net>
Subject: Oracle DBD work-around
Message-Id: <37071EF5.1805@verio.net>

Does anyone have a better way to do this ...

  For the Oracle driver, the 'fetchrow_hashref' method returns
table column names in UPPERCASE.  Is there a way to return the
column names in lowercase?

  Currently, to convert the column names from UPPER to lowercase,
I do the following ...

---
$hash_ref = $sth->fetchrow_hashref;

my ( $lc_key, $uc_key );

foreach $uc_key ( keys( %$hash_ref ) )
{
  $lc_key = lc( $uc_key );
  $hash_ref->{$lc_key} = $hash_ref->{$uc_key};
  delete $hash_ref->{$uc_key};
}
---

  Yuck.  I assign the hash values to the lowercase key
names and then delete the uppercase key values.  There's
got to be a better way to do this.

  If anything, is there a simple and elegant one-liner that'll
convert hash keys from upper to lowercase?

Thanks,

-pat mercer


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

Date: Sun, 4 Apr 1999 01:20:06 -0500
From: "Jason Simms" <ffchopin@worldnet.att.net>
Subject: Re: Perl search script
Message-Id: <7e70p3$i1o$1@mtinsc01.worldnet.att.net>

Using the File::Find module, all of the chdir's are handled for you.  Here
is a snippet of a script I use that may show you an example of how it works:

#!/usr/bin/perl -w

use File::Find;

print "Please enter a directory: ";

chomp($dir = <STDIN>);

# test if the directory exists

opendir(DIR, "$dir") || die "Invalid path? Please verify.: $!";

# use the find function from File::Find, which starts
# from the directory entered and executes (in this case)
# the search subroutine on each file in the tree

find(\&search, $dir);

sub search {

# print the name of the file - simple, but you get the idea
# File::Find puts the name of the file into $_ - read the
# docs for a complete list of what it does

print "$_\n";
}

print "Done!\n";

# END SCRIPT

Anyway, hope this helps.  You can perform, in your subroutine, a validation
routine to "weed out" the files you dont't want.  For instance, use index()
to check for various file extensions to include/exculde, or regular
expressions on $_ or $File::Find::name (which contains the name as well as
the path) for more complex testing mechanisms.

Jason Simms

> I am trying to write a perl search script that lists files, opens them and
> searches their contents. I seem to
>  be having trouble with this section of
> code which cds into the base directory and does an ls to see what files
are
> in there:
>
>
>    chdir($basedir);
>    foreach $file (@files) {
>       $ls = `ls $file`;
>      etc.
>
> but the script only ever sees this sort of structure
> /www/cgi-bin/ww....etc....co.uk
>
> instead of /home/joe/...etc
>
> and is therefore failing because it cannot cd to the directory. What can I
> do about
> this?
> Thanks in advance.





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

Date: Sat, 03 Apr 1999 21:31:55 -0800
From: oekilla@aol.com
Subject: Perl/CGI with Frontpage PWS
Message-Id: <5WCN2.4482$LX.1702230@WReNphoon3>

How do I run a cgi script with Microsoft Personal Web Server. Does PWS
support Perl? I've created a perl cgi and placed it in the CGI-BIN folder.
It works from the Dos command when I run it but I get the good ol' 500
Server Error when run from IE4. Anyone Please.



   -**** Posted from remarQ, Discussions Start Here(tm) ****-
http://www.remarq.com/ - Host to the the World's Discussions & Usenet


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

Date: 4 Apr 1999 12:31:13 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Server Side Includes
Message-Id: <7e7m2h$hg$1@gellyfish.btinternet.com>

On 1 Apr 1999 23:24:33 GMT Lars Plessmann wrote:
> 
> that are the error messages in the error_log:
> 
> Unquoted string "false" may clash with future reserved word at
> /server/domain/cgi-bin/preise.pl line 28.
> Name "main::name" used only once: possible typo at
> /server/domain/cgi-bin/preise.pl line 11.
> Argument "false" isn't numeric in eq at /server/domain/cgi-bin/preise.pl
> line 28.
> 
> 

Doris is on holiday.

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


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

Date: Sun, 04 Apr 1999 07:51:53 GMT
From: "IndexFinger.com" <indexfinger@usa.net>
Subject: Re: Silicon Valley Perl Mongers?
Message-Id: <tSEN2.163$zE3.4447@typhoon.nycap.rr.com>

Any groups in Austin, TX?


--
==================================================
BigTalker - http://www.bigtalker.com
Bulletin board software - faster than the UBB




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

Date: 4 Apr 1999 05:29:07 -0400
From: dha@panix.com (David H. Adler)
Subject: Re: Silicon Valley Perl Mongers?
Message-Id: <slrn7gec72.s0v.dha@panix.com>

On Sun, 04 Apr 1999 07:51:53 GMT, IndexFinger.com <indexfinger@usa.net> wrote:
>Any groups in Austin, TX?

Yup.

<http://www.bybent.com/apm/>


-- 
David H. Adler - <dha@panix.com> - http://www.panix.com/~dha/
In the silence that followed, Homer was heard to mutter,
"Mmmm... context- dependent semantics..."
	- Darrin Edwards in c.l.p.m.


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

Date: Sun, 04 Apr 1999 13:18:31 +0900
From: Cal Bond <cal@spacemoose.com>
Subject: Total beginner question
Message-Id: <3706E817.3522@spacemoose.com>

Hi-

I've been just trying to alter pre-made perl scripts to refernece files
in my page etc, but it seems as soon as I open them up with a text
editor and resave them with the same name (blah.pl, etc.) I get a 
'Premature end of script headers' error from my webpage using them. 
I've just been using notepad to edit them - should I be using another
text editor or am I just doing somehing really stupid?
  Thanks...

Cal Bond


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

Date: Sat, 03 Apr 1999 21:42:35 -0700
From: Philip Gabbert <gp@gpcentre.net>
Subject: Re: Total beginner question
Message-Id: <030419992142357548%gp@gpcentre.net>


What's going on is that Notepad is converting the Line breaks to PC
line breaks.. 
I would suggest maybe UUEdit to edit your perl scripts, or you can use
WordPad.. 
The reson I suggested UUEdit cause it will color code your text for
Perl Script, and HTML, also it understands Unix Line breaks..
I Set all my programs for Web Development on my Mac, and PC to default
to Unix line breaks..

Have fun.. ;-)

PS: you can find HTML editors at: http://www.tucows.com/

In article <3706E817.3522@spacemoose.com>, Cal Bond
<cal@spacemoose.com> wrote:

> Hi-
> 
> I've been just trying to alter pre-made perl scripts to refernece files
> in my page etc, but it seems as soon as I open them up with a text
> editor and resave them with the same name (blah.pl, etc.) I get a 
> 'Premature end of script headers' error from my webpage using them. 
> I've just been using notepad to edit them - should I be using another
> text editor or am I just doing somehing really stupid?
>   Thanks...
> 
> Cal Bond


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

Date: Sun, 04 Apr 1999 06:34:39 GMT
From: agniora@usa.net
Subject: Re: Total beginner question
Message-Id: <7e715v$li$1@nnrp1.dejanews.com>

In article <030419992142357548%gp@gpcentre.net>,
  Philip Gabbert <gp@gpcentre.net> wrote:
>
> What's going on is that Notepad is converting the Line breaks to PC
> line breaks..
> I would suggest maybe UUEdit to edit your perl scripts, or you can use
> WordPad..
> The reson I suggested UUEdit cause it will color code your text for
> Perl Script, and HTML, also it understands Unix Line breaks..
> I Set all my programs for Web Development on my Mac, and PC to default
> to Unix line breaks..
>
> Have fun.. ;-)
>
> PS: you can find HTML editors at: http://www.tucows.com/
Philip,
I checked the tucow site, and i searched for UUEdit there, but it cant seem to
find it. Do u think u can email me a copy of it.
Thanks.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: Sun, 4 Apr 1999 08:27:29 -0400
From: "Dwight Trumbower" <dwight@trumbower.com>
Subject: Re: Total beginner question
Message-Id: <923228852.526339@proxy2.bigplanet.com>

Try http://www.idmcomp.com/products/index.html

Dwight
<agniora@usa.net> wrote in message news:7e715v$li$1@nnrp1.dejanews.com...
> In article <030419992142357548%gp@gpcentre.net>,
>   Philip Gabbert <gp@gpcentre.net> wrote:
> >
> > What's going on is that Notepad is converting the Line breaks to PC
> > line breaks..
> > I would suggest maybe UUEdit to edit your perl scripts, or you can use
> > WordPad..
> > The reson I suggested UUEdit cause it will color code your text for
> > Perl Script, and HTML, also it understands Unix Line breaks..
> > I Set all my programs for Web Development on my Mac, and PC to default
> > to Unix line breaks..
> >
> > Have fun.. ;-)
> >
> > PS: you can find HTML editors at: http://www.tucows.com/
> Philip,
> I checked the tucow site, and i searched for UUEdit there, but it cant
seem to
> find it. Do u think u can email me a copy of it.
> Thanks.
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own




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

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


Administrivia:

Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing. 

]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body.  Majordomo will then send you instructions on how to confirm your
]subscription.  This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.

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

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