[7286] in Perl-Users-Digest
Perl-Users Digest, Issue: 911 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Aug 23 17:07:15 1997
Date: Sat, 23 Aug 97 14:00:24 -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 Sat, 23 Aug 1997 Volume: 8 Number: 911
Today's topics:
Re: Anyone know a good tutorial? <rootbeer@teleport.com>
Re: Assinging values of HASH in to Array <rootbeer@teleport.com>
Re: associative array question <rootbeer@teleport.com>
Re: Broken Pipe piping to sendmail <rootbeer@teleport.com>
Re: Building a (very?) complex data structure.... (Abigail)
Re: Constants in Perl (was Re: Help: Perl) (Jeremy D. Zawodny)
Error creating files <amerar@unsu.com>
Re: Error in Perl <rootbeer@teleport.com>
help - perl format command <fillault@w3.org>
help displaying a large number with commas randy.paries@avex.com
Re: Help on Final Exam (Perl class) <merlyn@stonehenge.com>
Re: HELP: Running Perl-CGI scripts in UNIX <rootbeer@teleport.com>
Re: How can I make this CGI script work <rootbeer@teleport.com>
Re: include tags <rootbeer@teleport.com>
info2www for gzipped files? (Jerry LeVan)
Re: Intermittent form data transfer delays <rootbeer@teleport.com>
Re: Need WIN32's alternative for rename() (plz) <gwhassan@prodigy.net>
Re: NNTPClient Module (Jeremy D. Zawodny)
Re: Novice scratches head <rootbeer@teleport.com>
Re: package wants outer subs <rootbeer@teleport.com>
Re: PERL & WinNT <gwhassan@prodigy.net>
Re: Perl 5 client/server <rootbeer@teleport.com>
Re: Perl and Web Server Side Includes - "REMOTE_HOST" <rootbeer@teleport.com>
Re: Perl Conference presentations on paper? (Nathan V. Patwardhan)
Re: reading a gz file <rootbeer@teleport.com>
Re: Searching for an email administaion group <rootbeer@teleport.com>
Re: Setting subject in emails (Jeremy D. Zawodny)
Re: Shell Parameter Expansion - HELP!! <rootbeer@teleport.com>
Re: using variable as file name <rootbeer@teleport.com>
Re: Wanted: list of known bugs <rootbeer@teleport.com>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 23 Aug 1997 12:06:18 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Jacob Share <jshare1@po-box.mcgill.ca>
Subject: Re: Anyone know a good tutorial?
Message-Id: <Pine.GSO.3.96.970823120430.19088W-100000@julie.teleport.com>
On 19 Aug 1997, Jacob Share wrote:
> Newsgroups: comp.lang.perl, comp.lang.perl.misc
If your news administrator still carries comp.lang.perl, please let him
or her know that that newsgroup has not existed since 1995. If you
have such an outdated newsgroup listing, you are probably missing out
on many other valid newsgroups as well. You'll be doing yourself and
many others a favor to use only comp.lang.perl.misc (and other valid
Perl newsgroups) instead.
> I'm looking for a good perl tutorial preferably with emphasis on CGI but
> not necessarily.
How about the Llama book?
http://www.ora.com/catalog/lperl2/noframes.html
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/
------------------------------
Date: Sat, 23 Aug 1997 13:43:23 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Ajitesh Das <ajiteshd@wiproge.med.ge.com>
Subject: Re: Assinging values of HASH in to Array
Message-Id: <Pine.GSO.3.96.970823134201.19088t-100000@julie.teleport.com>
On Fri, 22 Aug 1997, Ajitesh Das wrote:
> Is there any way to assign values ( NOT KEYS ) in to an array.
> @my_array = some_buildin_function_gets_values( %my_Hash );
> let me know if there is any
Yes, there is a builtin function like that, and if you search through the
perlfunc(1) manpage for 'values' you'll find it soon enough. 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/
------------------------------
Date: Sat, 23 Aug 1997 12:33:44 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Patrick O'Lone <polone@sanasys.com>
Subject: Re: associative array question
Message-Id: <Pine.GSO.3.96.970823123125.19088b-100000@julie.teleport.com>
On Tue, 19 Aug 1997, Patrick O'Lone wrote:
> open(FILE,">filename.txt");
Don't forget to check the return value from open.
> format FILESIZES=
Was that supposed to be FILE instead of FILESIZES?
> $oldhandle = select(OUTPUT);
Or was that supposed to be FILE?
> foreach(keys @count) {
Not in a million years. :-)
--
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/
------------------------------
Date: Sat, 23 Aug 1997 13:33:16 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Ian Kallen <spidaman@well.com>
Subject: Re: Broken Pipe piping to sendmail
Message-Id: <Pine.GSO.3.96.970823133134.19088p-100000@julie.teleport.com>
On 21 Aug 1997, Ian Kallen wrote:
> I'd like to bulletproof code that exiting when there's a problem piping
> to sendmail.
Me, too! :-)
> Instead of just leaving me with "Terminated: Broken Pipe" when it's
> iterating through its loop of sendmail tasks, I'd like to be informed of
> what the problem is and have the script procede to the next loop
> iteration. Anybody have nay code examples that work around stuff like
> that?
Method one: Use a module instead of sendmail.
Method two: Use $SIG{PIPE} = 'IGNORE'; and check the return value from
close.
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/
------------------------------
Date: Sat, 23 Aug 1997 20:39:21 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Building a (very?) complex data structure....
Message-Id: <EFDw1L.Lww@nonexistent.com>
Toutatis (toutatis@remove.this.toutatis.net) wrote on 1453 September 1993
in <URL: news:<toutatis-ya023180002308970954020001@news.euro.net>>:
++ In article <5tlhdj$7rg$2@nntp2.ba.best.com>, Zenin <zenin@best.com> wrote:
++
++ > [posted & mailed]
++ (You probably did not remove the spamtrap from the emailaddress.)
++ > Toutatis <toutatis@remove.this.toutatis.net> wrote:
++ > > I am trying to build a sorted data structure, just like directories, in
++ a single
++ > > reference, but without any luck so far.
++ > > my $data = {"food-fruit-apple" => $object1,
++ > > "food-meat-pork" => $object2,
++ > > "food-meat" => $object3,
++ > > "clothing" => $object4};
++ > >snip<
++
++ <cut>
++ > ## Or probably better done as...
++ >
++ > my $data = {};
++ > $data->{food}{fruit}{apple} = $object1;
++ > $data->{food}{meat}{pork} = $object2;
++ > ## $data->{food}{meat} = $object3; ## Don't do this (see below)
++ > $data->{clothing} = $object4;
++ >
++ > Notice that "food-meat => $object" is not there. The first use of
++ > food-meat is a reference to a hash that contains pork. If you were
++
++ Thank you for trying to help, but allowing to store objects halfway
++ the datastructure is crucial. Just like a directory structure on a file-
++ system can have subdirectories and files in it.
$data->{food}{fruit}{apple}{$object1} = 1;
$data->{food}{meat}{pork}{$object2} = 1;
$data->{food}{meat}{$object3} = 1;
$data->{clothing} = 1;
Of course, your code needs to distinguish based on the type of either
the keys or the values - but that's what you often do in directories too.
Abigail
--
perl5.004 -wMMath::BigInt -e'$^V=new Math::BigInt+qq;$^F$^W783$[$%9889$^F47$|88768$^W596577669$%$^W5$^F3364$[$^W$^F$|838747$[8889739$%$|$^F673$%$^W98$^F76777$=56;;$^U=$]*(q.25..($^W=@^V))=>do{print+chr$^V%$^U;$^V/=$^U}while$^V!=$^W'
------------------------------
Date: Sat, 23 Aug 1997 18:01:15 GMT
From: jzawodn@wcnet.org (Jeremy D. Zawodny)
Subject: Re: Constants in Perl (was Re: Help: Perl)
Message-Id: <33ff2502.515250340@news.bgsu.edu>
[original author automagically cc'd via e-mail]
On 22 Aug 1997 14:19:01 -0700, mcravit@best.com (Matthew Cravit)
wrote:
>In article <5tkqjf$5f5@news-central.tiac.net>,
>Mike Stok <mike@stok.co.uk> wrote:
>The other way you can do this is to take advantage of the fact that
>subroutines without a return statement return the last thing they
>evaluated. So, you could do something like this:
>
> sub PI { 3.14159; }
> sub SENDMAIL { "/usr/sbin/sendmail"; }
>
> print "Pi = ", PI, "\n";
> print "Sendmail lives in \"", SENDMAIL, "\".\n";
>
>This will print out:
>
>Pi = 3.14159
Of course, you can also use references to do something similar:
my $PI = \3.14159...;
Then $PI is a reference to that constant value. Perl will flag any
attempt to change it as a run-time error (or maybe compile-time... I
haven't thought that thru all the way)...
Jeremy
---
Jeremy D. Zawodny
WCNet Technical Geek & Web Stuff
<URL:http://www.wcnet.org/~jzawodn/>
"That's an example of how Perl can bring school yard cruelty to new heights."
-- Jon Orwant at the 1st Annual Perl Conference
------------------------------
Date: Sat, 23 Aug 1997 13:51:57 -0500
From: Arthur Merar <amerar@unsu.com>
Subject: Error creating files
Message-Id: <33FF314D.DAF@unsu.com>
I have a script that is supposed to create some files during it's
process. When I run the script from the shell, everything works fine.
but when I invoke it from the browser, it dies trying to create the
file??
What do the rights need to be on the directory? Right now I have them
set at 755......What else could it be besides the rights? I mean, it I
open the file for output and it does not exist, then perl should create
it, right?
--
Thanks,
Arthur
amerar@unsu.com
http://www.unsu.com
------------------------------
Date: Sat, 23 Aug 1997 13:21:43 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: "Andrew D. Arenson" <arenson@hen.imgen.bcm.tmc.edu>
Subject: Re: Error in Perl
Message-Id: <Pine.GSO.3.96.970823132033.19088m-100000@julie.teleport.com>
On 21 Aug 1997, Andrew D. Arenson wrote:
> open(INPUT,$file);
Always check the return value from open. 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/
------------------------------
Date: Sat, 23 Aug 1997 15:26:37 -0400
From: Pierre Fillault <fillault@w3.org>
Subject: help - perl format command
Message-Id: <33FF396C.52A163C3@w3.org>
Dear gurus,
I was just wondering if one of you ever managed to get the format
command to work for building html forms ?
What I am trying to print in an html page uses a format like this one:
format INFORMATION_TOP=
Delete: Email: Name: Login:
------- ----------- ----------------- ------------
.
format INFORMATION =
@* @<<<<<<<<<<<<<<< @<<<<<<<< @<<<<<<<<<<<<<<
$del_box, $email, $name,
$login
.
where $del_box is some html stuff
$del_box= "<input type=\"checkbox\" name=\"erase$cpt_people\"
value=\"$login\">";
It seems that Perl does like @* at the beginning of a format line. It
messes up everything.
I'd greatly appreciate some help on this subject.
Thanks a lot.
Pierre Fillault (fillault@w3.org)
------------------------------
Date: Sat, 23 Aug 1997 13:01:18 -0600
From: randy.paries@avex.com
To: paries@advicom.net
Subject: help displaying a large number with commas
Message-Id: <872359131.18266@dejanews.com>
Hello,
I need help...
I have a number 12300000.00
I would like to display it like 12,300,000.00
I am looking for a clean way instead of a for loop counting char positions
Any suggestions
thanks
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
------------------------------
Date: 23 Aug 1997 12:28:04 -0700
From: Randal Schwartz <merlyn@stonehenge.com>
To: Mike Elliott <mre@emerald.compata.com>
Subject: Re: Help on Final Exam (Perl class)
Message-Id: <8cu3gg4s3f.fsf@gadget.cscaper.com>
>>>>> "Mike" == Mike Elliott <mre@emerald.compata.com> writes:
Mike> I'm going to be teaching a ten-week Programming in Perl class next
Mike> year, and I'd like to make the Final Exam a Perl project. As this is
Mike> University Extension, I can't expect more than perhaps 30 to 40 total
Mike> hours (per student) expended on it spread out over the quarter.
Mike> What I'm looking for are suggestions as to what the problem should be.
Mike> Besides the time constraint mentioned above, it should be something
Mike> which is relatively platform independent -- that is, I think I have to
Mike> accommodate bone-heads who insist on using Microsoft operating
Mike> systems.
Help Malcolm port the Compiler/Threads to NT.
:-)
print "Just another Perl hacker," # but not what the media calls "hacker!" :-)
## legal fund: $20,990.69 collected, $186,159.85 spent; just 373 more days
## before I go to *prison* for 90 days; email fund@stonehenge.com for details
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
------------------------------
Date: Sat, 23 Aug 1997 12:23:15 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: James East <james@abgroup.demon.co.uk>
Subject: Re: HELP: Running Perl-CGI scripts in UNIX
Message-Id: <Pine.GSO.3.96.970823122248.19088a-100000@julie.teleport.com>
On Wed, 20 Aug 1997, James East wrote:
> I get the script code when I click the submit button.
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 the perl.com web pages. Hope
this helps!
http://www.perl.com/perl/
http://www.perl.com/perl/faq/
http://www.perl.com/perl/faq/idiots-guide.html
--
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/
------------------------------
Date: Sat, 23 Aug 1997 12:47:24 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: "I. John Misiris" <jmisiris@de.ibm.com>
Subject: Re: How can I make this CGI script work
Message-Id: <Pine.GSO.3.96.970823124705.19088f-100000@julie.teleport.com>
On Wed, 20 Aug 1997, I. John Misiris wrote:
> Subject: How can I make this CGI script work
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 the perl.com web pages. Hope
this helps!
http://www.perl.com/perl/
http://www.perl.com/perl/faq/
http://www.perl.com/perl/faq/idiots-guide.html
--
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/
------------------------------
Date: Sat, 23 Aug 1997 12:59:26 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Ed Vander Bush <temp.ed.vanderbush@bentley.com>
Subject: Re: include tags
Message-Id: <Pine.GSO.3.96.970823125759.19088h-100000@julie.teleport.com>
On Wed, 20 Aug 1997, Ed Vander Bush wrote:
> Can I print a include tag in a dynamicly generated web page is this
> possible?
Yes. Whether it does what you want, though, may depend upon what you want
it to do. Hint: Check the docs and FAQs about such tags; they're not in
the Perl docs. 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/
------------------------------
Date: 23 Aug 1997 14:52:51 -0400
From: levan@eagle.eku.edu (Jerry LeVan)
Subject: info2www for gzipped files?
Message-Id: <5tnbi3$v33$1@eagle.eku.edu>
Ahhh, after being down all summer the newsfeed has been
reactivated :)
There exists a "info2www" gateway that is supposed to
man the gnu info pages to hyperlinked html. Regretably
it pukes if the files end with "gz".
We have enough of the gz'ed files so that unpacking
the rascals is not an option.
Has anybody "enhanced" the info2www gateway to work with
gzipped info files ( or knows another hunk'o software
that will do the job?
--Jerry
levan@eagle.eku.edu
------------------------------
Date: Sat, 23 Aug 1997 11:58:05 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Nadeem Bhatti <bhatti@cableinet.co.uk>
Subject: Re: Intermittent form data transfer delays
Message-Id: <Pine.GSO.3.96.970823115629.19088V-100000@julie.teleport.com>
On Mon, 18 Aug 1997, Nadeem Bhatti wrote:
> For some reason the program just hangs after the form has been
> submitted.
Sounds like a bug. Have you tried debugging the program? CGI.pm lets you
do this quite easily. 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/
------------------------------
Date: Sat, 23 Aug 1997 15:08:47 -0500
From: Greg Hassan <gwhassan@prodigy.net>
To: mbosley@games-online.com
Subject: Re: Need WIN32's alternative for rename() (plz)
Message-Id: <33FF434E.F238E740@prodigy.net>
mbosley wrote:
> Hi all,
>
> Do I have the syntax wrong? If I do:
>
> rename "$filename","$filename.old" || die "error, rename died";
if one method doesn't work, there are always a zillion other ways to
do it in perl.
Maybe do a copy and then unlink.
-Greg
--
===============================================================
Greg Hassan, The Independent Solution (CGI,Java,SQL,Perl...)
http://www.hassan.com/, 1-701-235-3239
===============================================================
Need a cool gift? http://www.hassan.com/cooie/
Or Add your url to all of the Search Engines for FREE:
http://www.hassan.com/superlinkadder/
===============================================================
------------------------------
Date: Sat, 23 Aug 1997 17:58:51 GMT
From: jzawodn@wcnet.org (Jeremy D. Zawodny)
Subject: Re: NNTPClient Module
Message-Id: <33ff23c6.514934847@news.bgsu.edu>
[original author automagically cc'd via e-mail]
On 22 Aug 1997 18:00:42 GMT, "Sergio Stateri Jr"
<serginho@mail.serve.com> wrote:
>Hi ! I'm learning to use NNTPClient module, and in Win32 always's ok
>(running a script in Win'95 DOS). I connect a news server and view the help
>results command). But, in NT under Peer Web Service, I don't see anything.
You don't see anything?
Try adding some debugging code to your script and see how far it gets.
Maybe a few:
print "I made it *this* far...<BR>\n";
lines thrown in will help you figure out where things are going.
>The $server->help() method doesn't return anything. What's hapenning ? Is
>it possible to use this module under Web environment ?
It should be possible to use it under a "Web" (I think you mean CGI)
environment.
I use if from cron on a Unix system, which is similar in someways to a
CGI environment, without any trouble.
I'd suggest that it's a simple CGI problem which isn't related
directly to NNTP.pm.
Check out the Idiot's Guide to Solving Perl/CGI Problems at:
http://perl-com.songline.com/CPAN-local/doc/FAQs/cgi/idiots-guide.html
Jeremy
---
Jeremy D. Zawodny
WCNet Technical Geek & Web Stuff
<URL:http://www.wcnet.org/~jzawodn/>
"That's an example of how Perl can bring school yard cruelty to new heights."
-- Jon Orwant at the 1st Annual Perl Conference
------------------------------
Date: Sat, 23 Aug 1997 13:37:54 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: "Andrew C. Risehnoover" <qball@ti.com>
Subject: Re: Novice scratches head
Message-Id: <Pine.GSO.3.96.970823133521.19088r-100000@julie.teleport.com>
On Thu, 21 Aug 1997, Andrew C. Risehnoover wrote:
> > > if ($x == 100000) {
> Another trick you can try is 'casting' $x. before the compare, add in
> this line:$x*=1;
> This will force perl to look at it like a number.
The numeric equality comparison always forces perl to look at $x like a
number (or did I misunderstand you?). 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/
------------------------------
Date: Sat, 23 Aug 1997 13:17:33 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Per Kistler <kistler@inf.ethz.ch>
Subject: Re: package wants outer subs
Message-Id: <Pine.GSO.3.96.970823131607.19088l-100000@julie.teleport.com>
On Thu, 21 Aug 1997, Per Kistler wrote:
> What can I do, that my perl package can execute functions
> from the calling script and also use it's variables?
I think you mean subroutines in a module, rather than package. Try passing
functions and variables by reference as parameters, or storing the
references in the module's package global variables. Good luck!
--
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/
------------------------------
Date: Sat, 23 Aug 1997 15:40:35 -0500
From: Greg Hassan <gwhassan@prodigy.net>
To: "Jeremy D. Zawodny" <jzawodn@wcnet.org>
Subject: Re: PERL & WinNT
Message-Id: <33FF4AC3.113FC3BF@prodigy.net>
Jeremy D. Zawodny wrote:
> >> What should we do in order to make to script work?
> >
> >if it works on another server and you get that error, I would say
> that
> >you
> >don't have perl setup correctly on your server. Do you have other
> >perl scripts running in that directory with the ext. .pl?
>
> I beg to differ. It sounds like a permissions problem to me.
>
> Isn't that what the error message sounds like?
>
I would suggest you rethink. The directory is set toexecute only so
when they try to load a file that has no association,
what will NT try to do? It can't execute it, so it will just try to
display it i.e. read.
I have found that simple permission problems don't happen on NT
as most people never know how to mess with them.
> >if not then you should problem just go to activeware's web site
> >and redownload their version of perl.
>
> FYI, ActiveWare is now ActiveState.
>
thanks, thats good to know.
-Greg
--
===============================================================
Greg Hassan, The Independent Solution (CGI,Java,SQL,Perl...)
http://www.hassan.com/, 1-701-235-3239
===============================================================
Need a cool gift? http://www.hassan.com/cooie/
Or Add your url to all of the Search Engines for FREE:
http://www.hassan.com/superlinkadder/
===============================================================
------------------------------
Date: Sat, 23 Aug 1997 12:36:46 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Karl-Ake Eriksson <karl-ake.eriksson@edt.ericsson.se>
Subject: Re: Perl 5 client/server
Message-Id: <Pine.GSO.3.96.970823123523.19088c-100000@julie.teleport.com>
On Wed, 20 Aug 1997, Karl-Ake Eriksson wrote:
> I have tried to return the output of a Unix command by backticking it
> (e.g. `/usr/bin/date`).
$date = localtime; # Much faster!
> For all variations of this the server terminates
> with a core dump when trying to execute the Unix command.
If there's a core dump from Perl, that's a bug. Run perlbug to report it.
Thanks!
--
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/
------------------------------
Date: Sat, 23 Aug 1997 13:15:41 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: "Thomas M. Blanchard" <tmblanchard@mar.lmco.com>
Subject: Re: Perl and Web Server Side Includes - "REMOTE_HOST"
Message-Id: <Pine.GSO.3.96.970823131258.19088k-100000@julie.teleport.com>
On Tue, 19 Aug 1997, Thomas M. Blanchard wrote:
> Is there a very simple Perl script that will display the CGI variable
> "REMOTE_HOST" on a web page?
print "Content-type: text/plain\n\n$ENV{REMOTE_HOST}\n";
Is that all you needed? 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/
------------------------------
Date: 23 Aug 1997 18:35:00 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Perl Conference presentations on paper?
Message-Id: <5tnagk$d14@fridge-nf0.shore.net>
Honza Pazdziora (adelton@fi.muni.cz) wrote:
: I will be coming to the U.S. this week, unfortunately few days late to
: catch the Perl Conference. Will there be any publication with the
: presentations from Perl Conference? I would really like to bring
Clay Irving and I will be preparing something concrete in hopes that
we'll get something on-line by next weekend. You can contact us via
email if you have any questions.
--
Nathan V. Patwardhan
nvp@shore.net
------------------------------
Date: Sat, 23 Aug 1997 13:39:50 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: David Smits <bb@b-b.nl>
Subject: Re: reading a gz file
Message-Id: <Pine.GSO.3.96.970823133843.19088s-100000@julie.teleport.com>
On 22 Aug 1997, David Smits wrote:
> Is there a possibility to read in a gz file with out unpacking it first.
Sure; just open it and start reading. Of course, you're getting the data
in its compressed form that way. If you want it uncompressed, check the
modules list on CPAN. 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/
------------------------------
Date: Sat, 23 Aug 1997 13:26:25 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Mark Worsdall <jaydee@worsdall.demon.co.uk>
Subject: Re: Searching for an email administaion group
Message-Id: <Pine.GSO.3.96.970823132430.19088o-100000@julie.teleport.com>
On Thu, 21 Aug 1997, Mark Worsdall wrote:
> Subject: Searching for an email administaion group
> I am looking for a news group that will have info on email,
Maybe you want comp.mail.* ? Good luck!
--
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/
------------------------------
Date: Sat, 23 Aug 1997 18:04:57 GMT
From: jzawodn@wcnet.org (Jeremy D. Zawodny)
Subject: Re: Setting subject in emails
Message-Id: <33ff25b0.515424581@news.bgsu.edu>
[original author automagically cc'd via e-mail]
On 23 Aug 1997 16:07:55 GMT, Dan_Margalit@brown.edu (Dan_Margalit)
wrote:
>Dear Perl group,
> Can anyone tell me how to send an email with a specific subject from
>perl?
Sure, you can send mail with the Net::SMTP module.
>For example, when I receive an automatically sent email from one of my
>web sites, I want to know whether it is a tutor application, a student
>questionnaire, etc... so it would be nice if I could just put this in the
>subject of the automatic email and then have it filtered by my email program.
> Please email me (juggler@brown.edu) if you can help, as I do not
>frequent this newsgroup. Thank you very much.
Gee, Dan. If you don't even bother to come back and check what people
have said in response to your question, what's the point of us helping
you? One of the biggest benefits of newsgroups like this is that a
large group of people can potentially be helped by the discussion
following a question that one like yourself posts.
However, if you've made it clear to us that you don't really read this
group, and only see it as a Help Desk, it's a bit of a let down...
In any case, you've got this via e-mail as well as via news, should
you decide to read it there.
Regards,
Jeremy
---
Jeremy D. Zawodny
WCNet Technical Geek & Web Stuff
<URL:http://www.wcnet.org/~jzawodn/>
"That's an example of how Perl can bring school yard cruelty to new heights."
-- Jon Orwant at the 1st Annual Perl Conference
------------------------------
Date: Sat, 23 Aug 1997 13:51:40 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: kcc <kccole@lucent.com>
Subject: Re: Shell Parameter Expansion - HELP!!
Message-Id: <Pine.GSO.3.96.970823134956.19088u-100000@julie.teleport.com>
On Fri, 22 Aug 1997, kcc wrote:
> How can I check within "foo" whether the user has entered the
> asterick character as an argument to the perl program, since the shell
> automatically does file/pathname expansion before execution of the
> program???
You can't. :-) The shell doesn't give you any way to access to the text
of the original command line. Instead, ask your users to read their
shell's docs on how to quote special characters. 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/
------------------------------
Date: Sat, 23 Aug 1997 13:09:36 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Ed Vander Bush <temp.ed.vanderbush@bentley.com>
Subject: Re: using variable as file name
Message-Id: <Pine.GSO.3.96.970823130730.19088j-100000@julie.teleport.com>
On Thu, 21 Aug 1997, Ed Vander Bush wrote:
> Subject: using variable as file name
>
> I retreive a variable from my database and then set it to a variable
That's nice. :-)
> How can I
> Normal content type and headers
I don't know. How would anybody normal those? :-)
> print "<!--#include virtual="$var1.htm"-->\n";
That's not syntactically correct. Consider using qq() instead.
> It won't parse the data...
Even if you fix the syntax, print isn't going to parse anything. 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/
------------------------------
Date: Sat, 23 Aug 1997 12:40:38 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: m.trautwein@syllogic.nl
Subject: Re: Wanted: list of known bugs
Message-Id: <Pine.GSO.3.96.970823123850.19088d-100000@julie.teleport.com>
On Wed, 20 Aug 1997, Marten Trautwein wrote:
> Does anyone out there known where I can find a up-to-date list of known
> bugs and undocumented features for Perl 5?
Any known bugs should be documented in the release notes or in perltrap;
if you find one which isn't in those, please run perlbug to report it.
Undocument features aren't documented anywhere. :-) 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/
------------------------------
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 911
*************************************