[7958] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1585 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jan 5 20:07:14 1998

Date: Mon, 5 Jan 98 17:00:19 -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, 5 Jan 1998     Volume: 8 Number: 1585

Today's topics:
     (no subject) <toehlerking@ptc.com>
     Capturing STDERR on NT (Todd O'Connor)
     Re: CGI Bin Locked????? HAY-ELP!! (Sean O'Dwyer)
     DBI installation problems on NT <igor@iprint.com>
     DBI on NT installation problems <igor@iprint.com>
     file globbing  <Rosie@dozyrosy.demon.co.uk>
     Re: Help with passing parameters in URL's please <rootbeer@teleport.com>
     Re: Help with passing parameters in URL's please (William Byrd)
     Re: I'm new and apparently I suck, help me please. <rootbeer@teleport.com>
     Re: Integrating perl's regex functionss into other pack (Ilya Zakharevich)
     Re: Lexical scope and embedded subroutines. <rootbeer@teleport.com>
     Re: perl is c worsened (was: Re: word wrap routine) <NerveGas@nospam.com>
     Perl sort( ) Argument Passing Problem <michael.jones@EBay.Sun.COM>
     Re: require not working <rootbeer@teleport.com>
     Re: Review of CGI/Perl book <craig@cgi-perl.com>
     Re: Review of CGI/Perl book (brian d foy)
     Re: Search and replace questions <koos_pol@bigfoot.com>
     Seeking CGI Perl programmer <netsolutions@axs-group.com>
     Re: strangest Q you've seen regarding storing entire bi <jdporter@min.net>
     Re: strangest Q you've seen regarding storing entire bi <NerveGas@nospam.com>
     Re: strangest Q you've seen regarding storing entire bi <mwilliam@duncan.cs.utk.edu>
     Re: Using shell aliases from within Perl scripts, quest <*@qz.to>
     Web Server testing tool - lost URL (Mark J Hewitt)
     Re: Web Server testing tool - lost URL (brian d foy)
     Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: Mon, 05 Jan 1998 16:41:06 -0600
From: Todd Oehlerking <toehlerking@ptc.com>
Subject: (no subject)
Message-Id: <34B16182.13662D59@ptc.com>

I am having trouble installing Perl on a Sun Machine running Solaris
5.5.1.  I get the following message when running "make":

mn-knuckle% make
make: Warning: Both `makefile' and `Makefile' exist
`sh  cflags libperl.a miniperlmain.o`  miniperlmain.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a perl.o`  perl.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a malloc.o`  malloc.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a gv.o`  gv.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a toke.o`  toke.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a perly.o`  perly.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a op.o`  op.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a regcomp.o`  regcomp.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a dump.o`  dump.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a util.o`  util.c
   CCCMD =  cc -DPERL_CORE -c  -O
"util.c", line 1110: va_start: argument mismatch
"util.c", line 1182: va_start: argument mismatch
"util.c", line 1239: va_start: argument mismatch
"util.c", line 1296: va_start: argument mismatch
`sh  cflags libperl.a mg.o`  mg.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a hv.o`  hv.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a av.o`  av.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a run.o`  run.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a pp_hot.o`  pp_hot.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a sv.o`  sv.c
   CCCMD =  cc -DPERL_CORE -c  -O
"sv.c", line 3503: va_start: argument mismatch
"sv.c", line 4163: va_start: argument mismatch
"sv.c", line 4185: va_start: argument mismatch
`sh  cflags libperl.a pp.o`  pp.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a scope.o`  scope.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a pp_ctl.o`  pp_ctl.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a pp_sys.o`  pp_sys.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a doop.o`  doop.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a doio.o`  doio.c
   CCCMD =  cc -DPERL_CORE -c  -O
"/usr/include/sys/unistd.h", line 167: macro _PC_LAST redefines previous
macro at "/usr/ucbinclude/unistd.h", line 89
`sh  cflags libperl.a regexec.o`  regexec.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a taint.o`  taint.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a deb.o`  deb.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a universal.o`  universal.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a globals.o`  globals.c
   CCCMD =  cc -DPERL_CORE -c  -O
`sh  cflags libperl.a perlio.o`  perlio.c
   CCCMD =  cc -DPERL_CORE -c  -O
"perlio.c", line 647: va_start: argument mismatch
"perlio.c", line 42: warning: improper pointer/integer combination: op
"="
"perlio.c", line 619: warning: improper pointer/integer combination: op
"="
rm -f libperl.a
ar rcu libperl.a perl.o malloc.o gv.o toke.o perly.o op.o regcomp.o
dump.o util.o mg.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o
pp_sys.o doop.o doio.o regexec.o taint.o deb.o universal.o globals.o
perlio.o
sh: ar: not found
*** Error code 1
make: Fatal error: Command failed for target `libperl.a'
mn-knuckle%

Any help would be appreciated.

--

Todd Oehlerking
Application Engineer Manager
8500 Normandale Lk. Blvd
Suite 660
Minneapolis, MN
Tel. (612) 820-0026
Fax  (612) 820-0046
E-mail toehlerking@ptc.com
WWW: http://www.ptc.com





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

Date: Mon, 05 Jan 1998 15:14:02 -0800
From: toconnor@adobe.com (Todd O'Connor)
Subject: Capturing STDERR on NT
Message-Id: <toconnor-0501981514020001@c-47-135.corp.adobe.com>


I am having a hard time capturing STDERR on NT 4.0. Has anyone found a way
to do this with Perl? I have a test that produces a lot of output and want
to capture all STDOUT and STDERR to a logfile for reviewing. There is the
chance that STDERR could scroll off the screen and I wouldn't know it.


Thanks, 
Todd
toconnor@adobe.com


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

Date: Mon, 05 Jan 1998 17:20:54 -0500
From: sean@dcdX.net (Sean O'Dwyer)
Subject: Re: CGI Bin Locked????? HAY-ELP!!
Message-Id: <sean-0501981720540001@p3.ts7.newyo.ny.tiac.com>

Thanks folks, for the replies. I don't have a shell account so I can't put
your suggestions into practice, but I'm learning all the same. (I'm
working on a Mac and using Anarchie to xfer files to my www and cgi dirs
on a virtual server.)

Sean


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

Date: Mon, 05 Jan 1998 15:53:19 +0000
From: igor <igor@iprint.com>
Subject: DBI installation problems on NT
Message-Id: <34B101EF.2A06@iprint.com>

I am trying to install DBI 0.90 on NT 4.0, perl5.004_04.
I run nmake after "perl makefile.pl" and getting the following error:

DBI.def : error LNK 2001 : unresolved external symbol _boot_DB
DBI.def : error LNK 2001 : unresolved external symbol _boot_DB
blib\arch\auto\DBI\DBI.lib : fatal error LNK 1120 : 2 unresolved
externals
LINK : fatal error LNK1141 : faluire during build of export file
NMAKE : fatal error U1077 : 'link' return code '0x25'



 .. and so on.

Am I using a wrong distribution of DBI or I can get away by modifying
DBI.def (or somem other) file contents or what do those errors mean?

Thanks.

Ior Pozdnyakov.


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

Date: Mon, 05 Jan 1998 15:18:34 +0000
From: igor <igor@iprint.com>
Subject: DBI on NT installation problems
Message-Id: <34B0F9CA.4AA@iprint.com>

I am trying to install DBI 0.90 on NT 4.0, perl5.004_04.
I run nmake after "perl makefile.pl" and getting the following error:

DBI.def : error LNK 2001 : unresolved external symbol _boot_DB
DBI.def : error LNK 2001 : unresolved external symbol _boot_DB
blib\arch\auto\DBI\DBI.lib : fatal error LNK 1120 : 2 unresolved
externals
LINK : fatal error LNK1141 : faluire during build of export file
NMAKE : fatal error U1077 : 'link' return code '0x25'

 .. and so on.

Am I using a wrong distribution of DBI or I can get away by modifying
some file contents or what do those errors mean?

Thanks.

Ior Pozdnyakov.


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

Date: Mon, 5 Jan 1998 22:50:18 +0000
From: Rosemary I H Powell <Rosie@dozyrosy.demon.co.uk>
Subject: file globbing 
Message-Id: <kFXpFAAqOWs0Ews2@dozyrosy.demon.co.uk>

I have an exising script which selects a set of image files to build up
a list on a web page; for each image I have a corresponding smaller
"icon" version. File names look like this: 

Valcard1.gif, Valcard2.gif, Valicon1.gif, Valicon2.gif, Gencard1.gif,
Gencard2.gif, Gencard3.gif, Genicon1.gif, Genicon2.gif, Genicon3.gif...

The first three letters of the file name come from a value (Gen, Val
etc) selected via a form on a web page. This is then built up into the
image prefix (Gencard, Genicon) in the script.

My current script has built-in values to set the total number of images
that are to be processed for each different prefix, and these are used
to increment the numerical part of the file names, but I need to modify
the script if I increase or decrease the number of available images. So
I want to do a wildcard selection of the image files instead. The
following script is a first attempt at this way of doing it, and it does
what I want, but is there a better/more elegant/compact way of going
about it?

e.g. Can I combine these two while...defined... bits?  
# $card_prefix = "Gencard"; 
while (defined ($card = glob ("$card_prefix*.*")) ){
   @card_list = (@card_list, $card);
   }
 
# $icon_prefix = "Genicon"; 
while (defined ($icon = glob ("$icon_prefix*.*")) ){
   @card_icons = (@card_icons, $icon);
   } 

Can I do something neater for the next two lines:
foreach $card (@card_list) { 
   $icon = shift(@card_icons); 
 
   print <<"card_order_form";
          <A HREF="$virtcard_image_dir\\$card">
          <IMG SRC="$virtcard_image_dir\\$icon"></A>
          <INPUT TYPE="RADIO" $checked NAME="chosen_card"
          VALUE="$virtcard_image_dir\\$card"><BR> 
card_order_form

   $checked = "";  
 
   }

Output looks like:
<A HREF="G:\Images\Virtual Cards\Gencard1.gif">
<IMG SRC="G:\Images\Virtual Cards\Genicon1.gif"></A>
<INPUT TYPE="RADIO" CHECKED NAME="chosen_card"
VALUE="G:\Images\Virtual Cards\Gencard1.gif"><BR>
 
<A HREF="G:\Images\Virtual Cards\Gencard2.gif">
<IMG SRC="G:\Images\Virtual Cards\Genicon2.gif"></A>
<INPUT TYPE="RADIO"  NAME="chosen_card"
VALUE="G:\Images\Virtual Cards\Gencard2.gif"><BR>
 
<A HREF="G:\Images\Virtual Cards\Gencard3.gif">
<IMG SRC="G:\Images\Virtual Cards\Genicon3.gif"></A>
<INPUT TYPE="RADIO"  NAME="chosen_card"
VALUE="G:\Images\Virtual Cards\Gencard3.gif"><BR>

etc.... 


With thanks, 
Rosemary
-------------------------------------------------------------------
| Rosemary I.H.Powell  EMail: Home: rosie@dozyrosy.demon.co.uk    |
|                             Work: r.i.h.powell@rl.ac.uk         |
|                       http://www.netlink.co.uk/users/dozyrosy/  |
|                       http://www.dozyrosy.demon.co.uk/          |
-------------------------------------------------------------------


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

Date: Mon, 5 Jan 1998 14:49:27 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Vaughn Fox <vfox@nbnet.nb.ca>
Subject: Re: Help with passing parameters in URL's please
Message-Id: <Pine.GSO.3.96.980105144910.3896I-100000@user1.teleport.com>

On Mon, 5 Jan 1998, Vaughn Fox wrote:

> Subject: Help with passing parameters in URL's please

When you're having trouble with a CGI program in Perl, you should first
look at the please-don't-be-offended-by-the-name Idiot's Guide to solving
such problems. It's available on CPAN. Hope this helps!

   http://www.perl.com/CPAN/
   http://www.perl.org/CPAN/
   http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html
   http://www.perl.org/CPAN/doc/manual/html/pod/

-- 
Tom Phoenix           http://www.teleport.com/~rootbeer/
rootbeer@teleport.com  PGP   Skribu al mi per Esperanto!
Randal Schwartz Case:  http://www.rahul.net/jeffrey/ovs/
              Ask me about Perl trainings!



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

Date: Tue, 06 Jan 1998 01:14:45 GMT
From: wcb4@erols.com (William Byrd)
Subject: Re: Help with passing parameters in URL's please
Message-Id: <68rqld$ovi$1@winter.news.erols.com>

On Mon, 5 Jan 1998 14:49:27 -0800, Tom Phoenix <rootbeer@teleport.com>
wrote:

>On Mon, 5 Jan 1998, Vaughn Fox wrote:
>
>> Subject: Help with passing parameters in URL's please
>
>When you're having trouble with a CGI program in Perl, you should first
>look at the please-don't-be-offended-by-the-name Idiot's Guide to solving
>such problems. It's available on CPAN. Hope this helps!
>
>   http://www.perl.com/CPAN/
>   http://www.perl.org/CPAN/
>   http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html
>   http://www.perl.org/CPAN/doc/manual/html/pod/
>
>-- 
>Tom Phoenix           http://www.teleport.com/~rootbeer/
>rootbeer@teleport.com  PGP   Skribu al mi per Esperanto!
>Randal Schwartz Case:  http://www.rahul.net/jeffrey/ovs/
>              Ask me about Perl trainings!
>



folks this may be a valid perl question after all. I too have had some
problem with perl script sthat try to access files that have spaces
int he names (valid on mac and win32 systems)

I tried to make a scritp that would take one huge captured newsgroup
file (seperated internally by Subject: as the fist line of each
posting and *EOF* as the end line for each posting. I had it open the
file, begin by searching for the Subject: header in the line, if it
foundit, take the substring after Subject: and make it the title of a
file and copy the contents of that message into it. I then wanted the
script to call txt2html.pl to convert these into html pages and it
bombed whenever the file name contained a space. I could have the
script write a batch file to rename the files, substituting _ for the
space and then running txt2html, and then run that externally, but I
could never get it to access the filename with the spaces in it. This
is exactly the problem that we are seeing here.

The answer I came up with was "it just can't be done" so I had it
write the .bat file and then ran it and that did exactly what I
wanted, rename the file from things like "one upon a time.txt" to
"once_upon_a_time" and it worked like a charm, but I could not even
have the original perl script look at thefiles with underlines 

I realize now I should have done the substitution when I wrote the
files, but the dividing part was written a few weeks before the
routine to call txt2html and had been used extensively by then, so I
had to write another perl script to create a bat file which renamed
the files to not have spaces in it. 

I am guessing that because of Perl's UNIX heritage it cann;t cope with
file names with spaces in it regardless of the underlying platform's
filesystem, am I correct in this assumption?

wcb4@erols.com



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

Date: Mon, 5 Jan 1998 16:30:06 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: "S.B." <that1guy@primenet.com>
Subject: Re: I'm new and apparently I suck, help me please.
Message-Id: <Pine.GSO.3.96.980105162653.3896Q-100000@user1.teleport.com>

On 5 Jan 1998, S.B. wrote:

> Subject: I'm new and apparently I suck, help me please.

Please check out this helpful information on choosing good subject
lines. It will be a big help to you in making it more likely that your
requests will be answered.

    http://www.perl.com/CPAN/authors/Dean_Roehrich/subjects.post

[ That's not to say that I didn't like the subject line, though. :-) ]

> I get a server error and have checked the logs, the error is:
> Premature end of script.

When you're having trouble with a CGI program in Perl, you should first
look at the please-don't-be-offended-by-the-name Idiot's Guide to solving
such problems. It's available on CPAN. 

   http://www.perl.com/CPAN/
   http://www.perl.org/CPAN/
   http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html
   http://www.perl.org/CPAN/doc/manual/html/pod/

> I am using cgi-lib.pl to parse the incoming data.  

You should probably use CGI.pm (or a similar module) instead. Among other
advantages, you can use CGI.pm to debug from the command line.

> open (OUT,">%in{'inumber'}.data");

Even when your script is "just an example" (and perhaps especially in that
case!) you should _always_ check the return value after opening a file.

> print OUT "inumber:%in{'inumber'}\n";

That may not do what you think.

Hope this helps!

-- 
Tom Phoenix           http://www.teleport.com/~rootbeer/
rootbeer@teleport.com  PGP   Skribu al mi per Esperanto!
Randal Schwartz Case:  http://www.rahul.net/jeffrey/ovs/
              Ask me about Perl trainings!



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

Date: 5 Jan 1998 22:58:40 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Integrating perl's regex functionss into other packages
Message-Id: <68roj0$t0f$1@mathserv.mps.ohio-state.edu>

[A complimentary Cc of this posting was sent to Eli the Bearded 
<*@qz.to>],
who wrote in article <qz$9801051540@qz.little-neck.ny.us>:
> Robert Waldstein <wald@envy.mh.lucent.com> wrote:
> Well I've used the sample code from perlembed(1) to use perl regular
> expressions from C. With a shared libperl it did not increase the
> executible size by much, nor the resident memory. Is that good enough?
> 
> I'd not trust the raw C interface to remain stable enough for ease of
> use in another package, at least not until it is documented that it
> will remain stable for such purposes.

Perl came out of age a long time ago.  Now a lot of effort is applied
to keep it backward-compatible.  So *most probably* pregcomp() and
pregexec() will stay 

Note that with newer Perls you will not get all the bells and whistles
from these interfaces, since they are just *bridges* to more powerful
entry points - and these more powerful versions are used directly from
Perl now.

Ilya


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

Date: Mon, 5 Jan 1998 14:54:33 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Steve Goldstein <steveg_nospam@gcg.com>
Subject: Re: Lexical scope and embedded subroutines.
Message-Id: <Pine.GSO.3.96.980105145051.3896K-100000@user1.teleport.com>

On Mon, 5 Jan 1998, Steve Goldstein wrote:

> sub What_is_the_temp
> {
>     my $param =  shift;
>     print "Outside it is $param.\n";
> 
>     embeddedsub();
>     return;
> 
>     sub embeddedsub
>     {
>         print " Inside it is always $param.\n";
>         return;
>     }
> }

Each time you call What_is..., it gets a new my() variable called $param. 
But the $param in embeddedsub is the one from the first call; it's neither
regenerated with each new call nor somehow connected to the latest or
current invocation of What_is.... Hope this helps!

-- 
Tom Phoenix           http://www.teleport.com/~rootbeer/
rootbeer@teleport.com  PGP   Skribu al mi per Esperanto!
Randal Schwartz Case:  http://www.rahul.net/jeffrey/ovs/
              Ask me about Perl trainings!



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

Date: Mon, 05 Jan 1998 12:00:45 -0700
From: NerveGas <NerveGas@nospam.com>
Subject: Re: perl is c worsened (was: Re: word wrap routine)
Message-Id: <34B12DDD.6A68@nospam.com>

Kuntal Daftary wrote:
> 
> Eli the Bearded wrote:
> 
> > That little bit of code produces an entire ascii art movie -- the
> > intended effect being planar cross-sections of a shaded sphere,
> > the actual effect looking more like a bomb, notwithstanding.
> 
> i would like to have a look at this code, if someone has it

   here you go:

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main(i,j,k,l){
for(i=-12;i<13;i++,printf("\e[H")){for(l=141596885
;l>8;l>>=4)p(97-(l>>22)+(l&15));for(j=-12;j<12;){for(k=j+12?-12:
-6;12>k;)p((l=k*k+++i*i+j*j)<144?(l=sqrt(l))[".,:;iIJYVSOM"]:32)
;j++<11?p(10):0;}}puts("Elijah: #@qz.to");}p(m){printf("%c",m);

}


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

Date: Mon, 05 Jan 1998 11:44:04 -0800
From: MICHAEL JONES <michael.jones@EBay.Sun.COM>
Subject: Perl sort( ) Argument Passing Problem
Message-Id: <34B13804.57390ED9@EBay.Sun.COM>

Hi,

I have two questions relating to Perl sort functions.  I am trying to
write
a module file that incorporates sort functions used in other scripts in
a
package.

I would like to call the external subroutine like

foreach $i ( sort External_Module->sort_subroutine ( keys %HASH ) ) {

    ...

}

I have the following problems:

1) When calling an external subroutine, the first argument passed to the
   subroutine is the module name (i.e. 'External_Module').  This seems
   to mess up the $a, $b arguments that sort passes to the sorting sub-
   routine.

2) I would like to pass a reference to the hash to the sorting
subroutine
   so I could sort on more than just the key, but I can't find a way to
   pass this reference without messing up $a and $b.

Any suggestions on how to make this work would be greatly appreciated.

Thank you,

Michael Jones
___________________________________________________________________________

 Michael V. Jones                      Sun Microsystems, Milpitas
Facility
 Component Supply Engineer             1421 California Circle,
UMIL01-125
 LSI Logic ASIC Devices	               Milpitas, CA 95035

 michael.jones@ebay.sun.com	(408) 276-0837		fax (408) 276-0746
___________________________________________________________________________


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

Date: Mon, 5 Jan 1998 16:25:52 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Mark <gt2863a@acmey.gatech.edu>
Subject: Re: require not working
Message-Id: <Pine.GSO.3.96.980105162537.3896P-100000@user1.teleport.com>

On 5 Jan 1998, Mark wrote:

> Okay I am hitting a NT server and the script is "not working" in the
> fact that it simply returns "Document contains no data"

When you're having trouble with a CGI program in Perl, you should first
look at the please-don't-be-offended-by-the-name Idiot's Guide to solving
such problems. It's available on CPAN. Hope this helps!

   http://www.perl.com/CPAN/
   http://www.perl.org/CPAN/
   http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html
   http://www.perl.org/CPAN/doc/manual/html/pod/

-- 
Tom Phoenix           http://www.teleport.com/~rootbeer/
rootbeer@teleport.com  PGP   Skribu al mi per Esperanto!
Randal Schwartz Case:  http://www.rahul.net/jeffrey/ovs/
              Ask me about Perl trainings!



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

Date: Mon, 05 Jan 1998 16:52:30 -0600
From: Craig Patchett <craig@cgi-perl.com>
Subject: Re: Review of CGI/Perl book
Message-Id: <884040408.252968967@dejanews.com>

In article <comdog-2412971936170001@news.panix.com>,
  comdog@computerdog.com (brian d foy) wrote:
>
> i was *very* surprised to see that Randal had "endorsed" this book, and
> when i asked him about it later he told me that the publisher had taken
> that quote out of context.
>
> "for the record", Randal said a lot more than the publisher is willing
> to admit. it's sad that a publisher would have to resort to such tactics
> rather than relying on the content to stand for itself.  it's even worse
> that an author would need to do the same.

I have the full text of Randal's endorsement and can assure you that the
quote is not taken out of context. (And will gladly post the full
endorsement if you need me to.) I have no need or desire to fabricate
endorsements and, in fact, argued with the publisher that a quote from
WebDeveloper.com should appear on the cover of the book rather than
Randal's since they better represented the target audience of the book.

The CGI/Perl Cookbook is currently the best selling CGI (and Perl) book
at Amazon.com. It is not because the book is perfect (the issue of bugs,
most of which were introduced during last-minute changes requested by the
technical editor...my fault, not his...has already been addressed in this
newsgroup), nor because Randal endorsed it, and certainly not because it
represents the be-all to end-all of CGI books. It simply fills a niche
that targets a very large number of Web developers, the needs of whom few
others seem to want to acknowledge or address. (As is evidenced by the
fact the much-maligned Matt's Script Archive receives over a million hits
a month.)

Craig

----------------------------------------------------------------------
Craig Patchett                                   The CGI/Perl Cookbook
craig@cgi-perl.com                               http://cgi-perl.com
----------------------------------------------------------------------

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet


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

Date: Mon, 05 Jan 1998 18:54:02 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Review of CGI/Perl book
Message-Id: <comdog-ya02408000R0501981854020001@news.panix.com>
Keywords: from just another new york perl hacker

In article <884040408.252968967@dejanews.com>, craig@cgi-perl.com posted:

>In article <comdog-2412971936170001@news.panix.com>,
>  comdog@computerdog.com (brian d foy) wrote:
>>
>> i was *very* surprised to see that Randal had "endorsed" this book, and
>> when i asked him about it later he told me that the publisher had taken
>> that quote out of context.
>>
>> "for the record", Randal said a lot more than the publisher is willing
>> to admit. it's sad that a publisher would have to resort to such tactics
>> rather than relying on the content to stand for itself.  it's even worse
>> that an author would need to do the same.
>
>I have the full text of Randal's endorsement and can assure you that the
>quote is not taken out of context. 

read Randal's comments yourself.  it would be a very difficult task to
assure me that the quote was not taken out of context when Randal has
already publically demonstrated that it was:

   Subject:      Re: the skinny on my() vs local() -  thanks to all
   From:         Randal Schwartz <merlyn@stonehenge.com>
   Date:         1997/12/07
   Message-ID:   <8cpvn8io5w.fsf@gadget.cscaper.com>
   Newsgroups:   comp.lang.perl.misc

-- 
brian d foy                                  <comdog@computerdog.com>
Fifth Avenue Disaster! <URL:http://computerdog.com/brian/fire/>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>


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

Date: Mon, 05 Jan 1998 11:11:46 +0100
From: Koos Pol <koos_pol@bigfoot.com>
Subject: Re: Search and replace questions
Message-Id: <34B0B1E2.790F@bigfoot.com>

Pete Holsberg wrote:
> 
> I have a file that has lines like this:
> 
> <FONT SIZE=+1>AC 106 Office Accounting I 3</FONT>
> <FONT SIZE=+1>EG 222 Literature II 3</FONT>
> 
> etc.
> 
> I would like to change them to:
> 
> <FONT SIZE=+1><a href="/cgi-bin/pick.cgi?AC106">AC 106</a> Office Accounting I 3</FONT>
> <FONT SIZE=+1><a href="/cgi-bin/pick.cgi?EG222">EG 222</a> Literature II 3</FONT>
> 

[snipped]

I have a recursive search and replace script. It can replace blocks of
text. It can span multiple lines if necessary (for use with HTML).
I use it to maintain our intranet pages. 
Email me a dummy message with a subject of 'request: blockchange.pl' for
my autoresponder.

-- 
Koos Pol
----------------------------------------------------------------------
S.C. Pol                                           tel: +31 20 3116122
PC Systems Administrator                   email: Koos_Pol@bigfoot.com
Compuware Europe                 PGP public key available upon request

      A little inaccuracy sometimes saves tons of explanation.
                        -- H. H. Munroe


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

Date: Mon, 05 Jan 1998 15:52:13 -0800
From: AxS/Group <netsolutions@axs-group.com>
Subject: Seeking CGI Perl programmer
Message-Id: <34B1722D.53512DE6@axs-group.com>

Were a web-site development company in Thousand Oaks, CA, and are
seeking the services of a CGI Perl programmer.  Experience in converting
form data to formats readable by contact management software (such as
Act, Maximizer, Goldmine) is helpful.

Interested persons, please e-mail your resume with fee requirements to
netsolutions@axs-group.com.  No phone calls please.


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

Date: Mon, 05 Jan 1998 17:10:25 -0500
From: John Porter <jdporter@min.net>
Subject: Re: strangest Q you've seen regarding storing entire binary file as a hex dump in a varaible.
Message-Id: <34B15A51.AA7@min.net>

William Byrd wrote:
> 
> Okay folks, This is probably the strangest thing you've ever seen
> This is stricly conjecture on my part, so someone stop me if I am
> completely off the deepend (If I'm just nuts, let me go on, but stop
> me at the deep end)
> anyone ever done anything this crazy? will it work? anyone got any
> ideas? 

Of course it will work. I have done this exact thing.
Why do you think this is such a crazy thing to do?  Haven't you
tried it yet?  Don't freak out, just try it.  It works.

John Porter
jporter@logicon.com


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

Date: Mon, 05 Jan 1998 12:07:13 -0700
From: NerveGas <NerveGas@nospam.com>
Subject: Re: strangest Q you've seen regarding storing entire binary file as a hex dump in a varaible.
Message-Id: <34B12F61.4AC0@nospam.com>

> Okay folks, This is probably the strangest thing you've ever seen
> anyone want to do with a perl script.

  Actually, no, it's not.  it gets asked quite frequently in
comp.infosystems.www.authoring.cgi, and you can't do it.


> I want a perl script to generate an html page, simple enough, but I
> also want the perl script to generate a graphic on the page so that no
> external file would be needed for the graphic itself.

   Can't do it.  The browser will request an HTML page, and then the
serve will return it.  The brwoser *then* looks at the HTML, and
requests the graphic *file* from the server, and there won't be a file
for the server to serve.  (Ikes, that was a horrible sentence).  the
closest you can come would be to convert the entire page into one large
graphic, and simply load the graphic instead of an HTMl page, but that's
a lot of hoops.

> Seems like a
> waste, but I would eventually like to compile this program so no one
> sees the source, but the graphic is included.

   If you want it compiled, why are you writing it in Perl?  C would be
an obvious choice for that.

> This is stricly conjecture on my part, so someone stop me if I am
> completely off the deepend (If I'm just nuts, let me go on, but stop
> me at the deep end)

  You're not off the deep end, you're just trying what a million people
have wanted to do, but can't.  : )

 
NerveGas


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

Date: 05 Jan 1998 19:41:03 -0500
From: Myles Barrett Williams <mwilliam@duncan.cs.utk.edu>
Subject: Re: strangest Q you've seen regarding storing entire binary file as a hex dump in a varaible.
Message-Id: <lc67nymo2o.fsf@duncan.cs.utk.edu>

wcb4@erols.com (William Byrd) writes:
> I want a perl script to generate an html page, simple enough, but I
> also want the perl script to generate a graphic on the page so that no
> external file would be needed for the graphic itself. Seems like a

Presently there is no way to include an image bodily in an HTML
document.  The only proposal that's even similar is RFC 2111
(unimplemented), which allows a document and its associated images to
be packaged in a single mail message.

> waste, but I would eventually like to compile this program so no one
> sees the source, but the graphic is included.

Compiling a program that generates an HTML page doesn't have any
effect on the page.  I don't really understand what you mean here.

Myles Williams


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

Date: 5 Jan 1998 23:39:57 GMT
From: Eli the Bearded <*@qz.to>
Subject: Re: Using shell aliases from within Perl scripts, question.
Message-Id: <qz$9801051832@qz.little-neck.ny.us>

Philip R Ventura <pventura@cs.buffalo.edu> wrote:
> I have several aliases setup in my .cshrc file.  The shell I use is

Um, alright.

> tcsh.  I am trying to write a Perl script which will be able to use

Probably should be using a .tcshrc then, but anyway.

> the aliases defined in the .cshrc file simply calling them, but to no
> avail.  When I run something like the following:

Perl is not csh or tcsh. It has a different syntax. You are going to
find this a futile effort, I think.

>    print <<`EOC`;
> alias
> EOC
> 
> My aliases are not shown.  What do I need to do?

Replace all your aliases with perl scripts?

Elijah
------
replacing your login shell with perl would be an interesting effort, too.


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

Date: Mon, 05 Jan 1998 20:08:35 GMT
From: mjh@elsabio.demon.co.uk (Mark J Hewitt)
Subject: Web Server testing tool - lost URL
Message-Id: <34b13a12.3510633@news.demon.co.uk>

I recently saw a perl-based web server testing tool announced, but despite
searches of my local news cache, with deja news and with altavista, I can't
seem to find it again.  I'd be very grateful if some kind soul could remind
me of the URL please.
-- 
Mark J. Hewitt        at home         mjh@elsabio.demon.co.uk


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

Date: Mon, 05 Jan 1998 18:57:22 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Web Server testing tool - lost URL
Message-Id: <comdog-ya02408000R0501981857220001@news.panix.com>
Keywords: from just another new york perl hacker

In article <34b13a12.3510633@news.demon.co.uk>, mjh@elsabio.demon.co.uk posted:

>I recently saw a perl-based web server testing tool announced, but despite
>searches of my local news cache, with deja news and with altavista, I can't
>seem to find it again.  I'd be very grateful if some kind soul could remind
>me of the URL please.

do you know what this particular tool does?  i know of several web 
server testing thingys.  perhaps you are thinking of my HTTPeek or
Nick Kew's CG-eye?

   <URL:http://computerdog.com/httpeek/>
   <URL:http://www.htmlhelp.com/tools/cg-eye/>

if those weren't the ones of which you were thinking, perhaps you could
give a few more clues?

-- 
brian d foy                                  <comdog@computerdog.com>
Fifth Avenue Disaster! <URL:http://computerdog.com/brian/fire/>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.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 1585
**************************************

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