[18826] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 994 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat May 26 18:05:35 2001

Date: Sat, 26 May 2001 15:05:09 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <990914709-v10-i994@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Sat, 26 May 2001     Volume: 10 Number: 994

Today's topics:
    Re: Base 6 sieve. (Anno Siegel)
    Re: CGI and printing vars <godzilla@stomp.stomp.tokyo>
    Re: dbi, fork and ipc-shareable - having problems (Anno Siegel)
    Re: getting a web page from secure URL nobull@mail.com
    Re: hash array <pne-news-20010526@newton.digitalspace.net>
    Re: Help a script to prompt to input and have those inp (Anno Siegel)
        How to send mail with PostFix and Linux <tmartin1@telocity.com>
    Re: NET::SMTP <tony_curtis32@yahoo.com>
    Re: NET::SMTP nobull@mail.com
    Re: of the TWO perl-debugging books, which best? (Anno Siegel)
    Re: of the TWO perl-debugging books, which best? <uri@sysarch.com>
    Re: of the TWO perl-debugging books, which best? (Anno Siegel)
    Re: parsing perl again (Peter Scott)
        PDF Files <b-sept@gmx.de>
    Re: PDF Files (Monte)
    Re: PDF Files <bart.lateur@skynet.be>
        Perl Compilers <peter.reid2000@ntlworld.com>
        perl cookies (Hans)
        Perl developers journal site? <steffi@shell8.ba.best.com>
    Re: Perl syntax for multilevel hash (Mark Jason Dominus)
        Send email without sendmail configured <tmartin1@telocity.com>
    Re: Send email without sendmail configured <tmartin1@telocity.com>
    Re: Send email without sendmail configured <godzilla@stomp.stomp.tokyo>
    Re: SET-UP (free) (Bob Moose)
    Re: setting priority from perl on linux (Anno Siegel)
        typeglob (resend) <Anonymous_Account>" <remailer@xganon.com>
        typeglob <Anonymous_Account>" <remailer@xganon.com>
        use Time::localtime; inside require packages <neo@accesscable.net>
    Re: use Time::localtime; inside require packages <joe+usenet@sunstarsys.com>
    Re: What modules are being used? (Anno Siegel)
    Re: Who's Going to the Perl Conference in San Diego thi (Tad McClellan)
    Re: wml content type error with CGI <peter@wastholm.com>
    Re: wwwboard.pl - Taint and Use Strict <trondmm-usenet@crusaders.no>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: 26 May 2001 15:41:29 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: Base 6 sieve.
Message-Id: <9eoir9$54h$1@mamenchi.zrz.TU-Berlin.DE>

According to Benjamin Goldberg  <goldbb2@earthlink.net>:
> Anno Siegel wrote:
> [snip] We know by how much the next number is incremented
> > > (2 * $n and 4 * $n (results that could have been cached)), but
> > > there's a linear relationship between the skips in numbers and the
> > > skips in
> > 
> > Well, linear it isn't but it's certainly one-to-one since it's
> > strictly monotonous.
> 
> Shouldn't that be monotonic, not monotonous?
> It it were monotonous, we wouldn't be interested :)

Gee, you're picking up ancient posts.

Thanks for the correction, I'll have to keep that in mind.  My first
language (German) has only one word for both notions.

Anno


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

Date: Sat, 26 May 2001 09:02:08 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: CGI and printing vars
Message-Id: <3B0FD380.CD68CE33@stomp.stomp.tokyo>

Benjamin Goldberg wrote:
 
> Godzilla! wrote:
> > Todd Smith wrote:

(snipped)

> Anyway, here's my 26 line program.
 
(snipped)


Not enough arguments for map at test1.pl line 6, near "->Vars;"
syntax error at test1.pl line 14, near "->start_html {"
Execution of test1.pl aborted due to compilation errors.

**



There exists a distinct difference between code I post and
code you post.

My posted code always works. Your posted code rarely works.


Godzilla!


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

Date: 26 May 2001 20:35:52 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: dbi, fork and ipc-shareable - having problems
Message-Id: <9ep438$eos$2@mamenchi.zrz.TU-Berlin.DE>

According to Uri Guttman  <uri@sysarch.com>:
 
[good stuff snipped]
 
> i would stay away from threads. they have issues with stability and i
> would think that would get worse with dbi in the picture.

"Perl, the land where angels fear to thread"

Anno


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

Date: 26 May 2001 15:47:38 +0100
From: nobull@mail.com
Subject: Re: getting a web page from secure URL
Message-Id: <u91ypcdv5h.fsf@wcl-l.bham.ac.uk>

ps@siteindia.com (Prad S) writes:

> I want to get a web page and save the content from a secure URL. I am
> able to successfuly save from a normal URL and one with authentication
> also but not with https,

See the README.SSL that comes with LWP for instuctions of what else
you need to install to get HTTPS support in LWP.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


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

Date: Sat, 26 May 2001 19:54:45 +0200
From: Philip Newton <pne-news-20010526@newton.digitalspace.net>
Subject: Re: hash array
Message-Id: <tlqvgtglo65v7tcro6qbqupdlehbofet07@4ax.com>

On Sat, 26 May 2001 05:10:05 GMT, Gisle Aas <gisle@ActiveState.com>
wrote:

> You can also get that number with code like this:
> 
>   $size = do { local $hash{x} = 1; (split "/", %hash)[1] };

Unless the hash happened to be "full", and your addition of the key 'x'
caused it to double its buckets?

Cheers,
Philip
-- 
Philip Newton <nospam.newton@gmx.li>
That really is my address; no need to remove anything to reply.
If you're not part of the solution, you're part of the precipitate.


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

Date: 26 May 2001 19:43:28 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: Help a script to prompt to input and have those input add or append certain lines in a text file
Message-Id: <9ep110$ati$2@mamenchi.zrz.TU-Berlin.DE>

According to Lou Moran  <lmoran@wtsg.com>:
> On 23 May 2001 10:02:49 -0500, Tony Curtis <tony_curtis32@yahoo.com>
> wrote wonderful things about sparkplugs:
> 
> SNIP
> >
> >> I would I go about writting a perl script to do that I
> >> think you are a perl programmer it would not be so hard
> >> to write this script.
> >
> >Eh? :-)
> >
> 
> Translation
> 
> I would go about writing this script to do this but I am not a Perl
> programmer (I am a Sys Admin) but I think this would be easy for a
> Perl programmer to write this script (for me.)

Since you are frank about it, let me be too:  If we did this, we
would be giving away work that other people, or even the very same
people, get paid for.  This rarely happens in real life.

Anno


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

Date: Sat, 26 May 2001 14:47:59 -0500
From: "Tommy Martin" <tmartin1@telocity.com>
Subject: How to send mail with PostFix and Linux
Message-Id: <7JTP6.11806$ce.8592062@newsrump.sjc.telocity.net>

I need to send simple emails from perl scripts on a linux box. Is there some
simple sample code somewhere I can look at or can anyone point me in the
right direction.

Please disreguard the previous post of mine. I was not sure what mail
program was installed on that machine.

Tommy





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

Date: 26 May 2001 10:09:15 -0500
From: Tony Curtis <tony_curtis32@yahoo.com>
Subject: Re: NET::SMTP
Message-Id: <87zoc0gnac.fsf@limey.hpcc.uh.edu>

>> On Sat, 26 May 2001 16:15:06 +0200,
>> Peter Ruester <Peter.Ruester@t-online.de> said:

> Hi, I would like to send a Email with an attached file.
> Is it possible with the module NET::SMTP

Mime::Lite is probably what you want.

Net::SMTP describes how to connect to an email system, not
what is in the email (which is what you want to
manipulate).

> A sample is very welcome.

I'll fill it up in a minute (ewww! :-)

hth
t
-- 
Just reach into these holes.  I use a carrot.


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

Date: 26 May 2001 16:00:31 +0100
From: nobull@mail.com
Subject: Re: NET::SMTP
Message-Id: <u9y9rkcfzk.fsf@wcl-l.bham.ac.uk>

Peter Ruester <Peter.Ruester@t-online.de> writes:

> I would like to send a Email with an attached file.
> Is it possible with the module NET::SMTP

As I pointed out when this question was asked last week your question
is analagous to asking "How do I use a postbox to mail an envelope
containing a CD?".  SMTP cares very little what is inside the message.

Look into the MIME modules.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


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

Date: 26 May 2001 17:37:15 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: of the TWO perl-debugging books, which best?
Message-Id: <9eopkb$9gf$1@mamenchi.zrz.TU-Berlin.DE>

According to Uri Guttman  <uri@sysarch.com>:
> >>>>> "DC" == David Combs <dkcombs@panix.com> writes:
> 
>   DC> There are TWO perl debugging books:
>   DC> .  "Debugging Perl" by Martin Brown (Osbourne/McGraw Hill)
> 
>   DC> .  CSBOOK: Why, yes: "Perl Debugged," by Peter Scott and Ed
>   DC> Wright.  Addison-Wesley, 2001.
> 
>   DC> Which of the two is the best?
> 
> i have not seen the brown book...

I have just read the first 60 of its 400+ pages, and I don't think
I'll read much more.  Look at this piece of science fiction:

    The statement

        if ( $a == $b )

    will work fine if both values are numerical.  If they are textual,
    Perl compares the logical value of the two strings, which is always
    true.  This process might seem confusing, but even the undefined
    value resolves to true when comparing numerically.

_Debugging Perl_ by Martin Brown, p. 38.

Next to the explicit falsehoods (three in a paragraph), it is easy
to overlook that he calls a statement what is only part of one and
uses the variables $a and $b which are best avoided, especially
in a book about debugging Perl. (A few pages later he correctly
warns against their use.)

Now, claiming what is evidently wrong isn't really typical of what
I've seen.  The slippage of concepts (from "numeric" to "logical"
in this case) is however typical, and therefore it is often hard
to nail down what he is actually saying to the point of deciding
whether it is right or wrong.  Only a page later, he calls the
"&&" and "||" operators "comparison operators", and for pages
explaining the working of the Perl parser, he goes on about "lines"
of Perl code where he obviously means "Perl statements", except
for a few cases which indeed only make sense for lines.

Conclusion so far:  The author doesn't think very clearly.  If his
muddled thinking gets him in trouble, he isn't above making things
up to explain what he doesn't understand.  He doesn't know Perl
well enough to realize when this leads him to statements that are
blatantly false.  The book has to be met with distrust.

Anno


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

Date: Sat, 26 May 2001 17:45:19 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: of the TWO perl-debugging books, which best?
Message-Id: <x7ofsg0ztc.fsf@home.sysarch.com>

>>>>> "AS" == Anno Siegel <anno4000@lublin.zrz.tu-berlin.de> writes:

  DC> There are TWO perl debugging books:
  DC> .  "Debugging Perl" by Martin Brown (Osbourne/McGraw Hill)
  >> 
  >> i have not seen the brown book...

  AS> I have just read the first 60 of its 400+ pages, and I don't think
  AS> I'll read much more.  Look at this piece of science fiction:

  AS> Conclusion so far:  The author doesn't think very clearly.  If his
  AS> muddled thinking gets him in trouble, he isn't above making things
  AS> up to explain what he doesn't understand.  He doesn't know Perl
  AS> well enough to realize when this leads him to statements that are
  AS> blatantly false.  The book has to be met with distrust.

what bothers me is that he isn't totally clueless like the authors of
the countless horrible perl books out there. but he isn't connected to
the perl community so he doesn't get tech reviews from people who can
help. the best perl publishers (3 now, o'reilly, manning and
addison-wesley) all use the community to help with their books. so why
doesn't brown? is it osborne/mcgraw hill's problem?

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info:     http://www.sysarch.com/perl/OOP_class.html


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

Date: 26 May 2001 18:17:25 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: of the TWO perl-debugging books, which best?
Message-Id: <9eorvl$ati$1@mamenchi.zrz.TU-Berlin.DE>

According to Uri Guttman  <uri@sysarch.com>:
> >>>>> "AS" == Anno Siegel <anno4000@lublin.zrz.tu-berlin.de> writes:
> 
>   DC> There are TWO perl debugging books:
>   DC> .  "Debugging Perl" by Martin Brown (Osbourne/McGraw Hill)
>   >> 
>   >> i have not seen the brown book...
> 
>   AS> I have just read the first 60 of its 400+ pages, and I don't think
>   AS> I'll read much more.  Look at this piece of science fiction:
> 
>   AS> Conclusion so far:  The author doesn't think very clearly.  If his
>   AS> muddled thinking gets him in trouble, he isn't above making things
>   AS> up to explain what he doesn't understand.  He doesn't know Perl
>   AS> well enough to realize when this leads him to statements that are
>   AS> blatantly false.  The book has to be met with distrust.
> 
> what bothers me is that he isn't totally clueless like the authors of
> the countless horrible perl books out there. but he isn't connected to
> the perl community so he doesn't get tech reviews from people who can
> help. the best perl publishers (3 now, o'reilly, manning and
> addison-wesley) all use the community to help with their books. so why
> doesn't brown? is it osborne/mcgraw hill's problem?

I think the book might have become a quite useful book about debugging
in general, perhaps touching on several languages not excluding Perl.
The author is obviously a professional (muddled thinking notwithstanding)
and may have worthwhile things to say.  Perhaps someone thought a book
about Perl debugging would sell more copies, let the author bite it off,
never mind what he can chew.  This is a situation that could make an
author consciously or subconsciously avoid contact with the Perl community,
having an idea about the amount of re-writing a serious review would
entail.

Anno


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

Date: Sat, 26 May 2001 16:06:31 GMT
From: peter@PSDT.com (Peter Scott)
Subject: Re: parsing perl again
Message-Id: <bwQP6.83840$q51.562485@news1.gvcl1.bc.home.com>

In article <9emoh0$4u9$1@towncrier.cc.monash.edu.au>,
 damian@cs.monash.edu.au (Damian Conway) writes:
>Curiously, I have a talk at TPC5 that is relevant 

Here we go again...

-- 
Peter Scott
http://www.perldebugged.com


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

Date: Sat, 26 May 2001 19:06:43 +0200
From: "Bernhard Sept, BHS Schulungen" <b-sept@gmx.de>
Subject: PDF Files
Message-Id: <9eontk$a8b$02$1@news.t-online.com>

Hi there,
I have to create pdf files on the Server side - I will / have to use PERL as
language.
Are there any tool out there to help me on that subject?

Have a nice day
Bernd




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

Date: Sat, 26 May 2001 19:10:49 GMT
From: montep@about.com (Monte)
Subject: Re: PDF Files
Message-Id: <3b0fff40.52326591@news.hal-pc.org>

On Sat, 26 May 2001 19:06:43 +0200, "Bernhard Sept, BHS Schulungen"
<b-sept@gmx.de> wrote:

>Hi there,
>I have to create pdf files on the Server side - I will / have to use PERL as
>language.
>Are there any tool out there to help me on that subject?
>
>Have a nice day
>Bernd
>

Check out ClibPDF.  Do a search.  I know they are the basis for most
'on-the-fly" pdfs on the net.  I use their C library.  I do not
remember whether they have a direct perl mod or lib, but you can
incorporate the C code in perl anyway.

g'Luk
Computers are basically very fast idiots.
if your gonna spam.....admin@loopback, $LOGIN@localhost, $LOGNAME@localhost, $USER@localhost, $USER@$HOST, -h1024@localhost, root@mailloop.com root@localhost, postmaster@localhost, admin@localhost


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

Date: Sat, 26 May 2001 20:30:47 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: PDF Files
Message-Id: <9h40ht0g9tbmr36bq3f0i0pjpmjbqties1@4ax.com>

Bernhard Sept, BHS Schulungen wrote:

>I have to create pdf files on the Server side - I will / have to use PERL as
>language.
>Are there any tool out there to help me on that subject?

Have you checked CPAN?

	<http://search.cpan.org/search?mode=module&query=pdf>

-- 
	Bart.


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

Date: Sat, 26 May 2001 16:02:41 GMT
From: Peter Reid <peter.reid2000@ntlworld.com>
Subject: Perl Compilers
Message-Id: <1103_990892961@peterrei>

Does anyone know of any decent FREEWARE compilers that will take a Perl script and compile it into a standalone .exe? URLs would be good. Email them to me as my 
computer is dodgy and I can't always connect to the newsgroup.

Thanks,

Peter

peter.reid2000@ntlworld.com



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

Date: 26 May 2001 14:26:21 -0700
From: h.born@fh-aargau.ch (Hans)
Subject: perl cookies
Message-Id: <8d27eb70.0105261326.37f4647a@posting.google.com>

Hi there, 

     I definetly need a hand with perl and cookies.
     I wrote two very small skripts but wasn't retrieving the cookie back.
     Skript one sets a cookie (this works just fine, I also checked the cookies.txt
     on the client and the entry is there, this shows me the cookie has been placed).
     But retrieving the cookie back, with skript two, doesn't work, the value is always
     empty.

     What am I doing wrong? Can somebody please help me out? I appreciate it!


     skript one (set the cookie):

     #!/usr/bin/perl
     # cookie1

     use strict;
     use CGI qw/:standard/;
     use CGI::Cookie;


     my $CGIquery = CGI::new();

     my $id = "7";
     my $exp='+1d';
     my $your_cookie = new CGI::Cookie(
             -name=>'dva',
             -value=>"6676",
             -expires=>$exp
             
             );

     print $CGIquery->header(-cookie=>$your_cookie);

     print "cookie set";

     $CGIquery->end_html();

     skript two (retrieve the cookie):

     #!/usr/bin/perl
     # cookie2

     use strict;
     use CGI qw/:standard/;
     use CGI::Cookie;


     my $CGIquery = CGI::new();

     my $retreived_cookie = cookie('dva');

     print $CGIquery->header();

     print "cookie content: $retreived_cookie";

     $CGIquery->end_html();


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

Date: Sat, 26 May 2001 16:37:39 GMT
From: Robert Nicholson <steffi@shell8.ba.best.com>
Subject: Perl developers journal site?
Message-Id: <yl3zoc0kqwc.fsf@shell8.ba.best.com>

I'm looking for the wap code in this months issue.

I want to study it more and perhaps change it  

I'm looking for two things.

1. code like this that can scan my IMAP folder'd email

2. a JTidy like program that can make HTML well formed so I can parse
it like XML. Looking to take some HTML content and make it available
via WAP.


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

Date: Sat, 26 May 2001 21:20:36 GMT
From: mjd@plover.com (Mark Jason Dominus)
Subject: Re: Perl syntax for multilevel hash
Message-Id: <3b101e23.74a$2fd@news.op.net>

In article <u97kz4dvne.fsf@wcl-l.bham.ac.uk>,  <nobull@mail.com> wrote:
>BTW: You could simply join the 3 values into a single delimited
>string using the implicit join:
>
>$hash{order()}++;

That doesn't.  What you wrote calls order() in scalar context.

Only literal comma causes an implicit join.

-- 
@P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{
@p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f^ord
($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print


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

Date: Sat, 26 May 2001 14:03:24 -0500
From: "Tommy Martin" <tmartin1@telocity.com>
Subject: Send email without sendmail configured
Message-Id: <r3TP6.11662$ce.8544707@newsrump.sjc.telocity.net>

I am looking for a way to modify some simple perl source and add an email
notification. There is a mail package configured on that machine but I don't
know what it is. The sendmail samples I found don't work because senmail is
not configured and it doesn't know what smtp server to use to send.

I am looking for something really simple and I am sort of new to perl. I
tried the following code and it fails. Is there a way to tell it a smtp
server to use?

The html file is correct and the cgi is called just no sendmail option.

Tommy

-----------------
#!/usr/bin/perl
use CGI;

my $query    = new CGI;
my $sendmail = "/usr/sbin/sendmail -t";
my $reply_to = "Reply-to: foo@bar.org";
my $subject  = "Subject: Confirmation of your submission";
my $content  = "Thanks for your submission.";
my $to       = $query->param('send_to');
my $file     = "subscribers.txt";

unless ($to) {
  print $query->header;
  print "Please fill in your email and try again";
}

open (FILE, ">>$file") or die "Cannot open $file: $!";
print $to,"\n";
close(FILE);

my $send_to  = "To: ".$query->param('send_to');

open(SENDMAIL, "|$sendmail") or die "Cannot open $sendmail: $!";
print SENDMAIL $reply_to;
print SENDMAIL $subject;
print SENDMAIL $to;
print SENDMAIL "Content-type: text/plain\n\n";
print SENDMAIL $content;
close(SENDMAIL);

print $query->header;
print "Confirmation of your submission will be emailed to you.";





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

Date: Sat, 26 May 2001 14:13:54 -0500
From: "Tommy Martin" <tmartin1@telocity.com>
Subject: Re: Send email without sendmail configured
Message-Id: <ddTP6.11687$ce.8553554@newsrump.sjc.telocity.net>

Ahh... Ha... It appears that system is using something called PostFix. Any
help with that is appreciated..

Tommy

"Tommy Martin" <tmartin1@telocity.com> wrote in message
news:r3TP6.11662$ce.8544707@newsrump.sjc.telocity.net...
> I am looking for a way to modify some simple perl source and add an email
> notification. There is a mail package configured on that machine but I
don't
> know what it is. The sendmail samples I found don't work because senmail
is
> not configured and it doesn't know what smtp server to use to send.
>
> I am looking for something really simple and I am sort of new to perl. I
> tried the following code and it fails. Is there a way to tell it a smtp
> server to use?
>
> The html file is correct and the cgi is called just no sendmail option.
>
> Tommy
>
> -----------------
> #!/usr/bin/perl
> use CGI;
>
> my $query    = new CGI;
> my $sendmail = "/usr/sbin/sendmail -t";
> my $reply_to = "Reply-to: foo@bar.org";
> my $subject  = "Subject: Confirmation of your submission";
> my $content  = "Thanks for your submission.";
> my $to       = $query->param('send_to');
> my $file     = "subscribers.txt";
>
> unless ($to) {
>   print $query->header;
>   print "Please fill in your email and try again";
> }
>
> open (FILE, ">>$file") or die "Cannot open $file: $!";
> print $to,"\n";
> close(FILE);
>
> my $send_to  = "To: ".$query->param('send_to');
>
> open(SENDMAIL, "|$sendmail") or die "Cannot open $sendmail: $!";
> print SENDMAIL $reply_to;
> print SENDMAIL $subject;
> print SENDMAIL $to;
> print SENDMAIL "Content-type: text/plain\n\n";
> print SENDMAIL $content;
> close(SENDMAIL);
>
> print $query->header;
> print "Confirmation of your submission will be emailed to you.";
>
>
>




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

Date: Sat, 26 May 2001 12:22:12 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Send email without sendmail configured
Message-Id: <3B100264.72CF4F6A@stomp.stomp.tokyo>

Tommy Martin wrote:
 
> Ahh... Ha... It appears that system is using something called PostFix.
> Any help with that is appreciated..


http://www.postfix.org/faq.html

Godzilla!


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

Date: 26 May 2001 09:10:55 -0700
From: yogibearxx@bobmoose.com (Bob Moose)
Subject: Re: SET-UP (free)
Message-Id: <4ec914b1.0105260810.353118ec@posting.google.com>

Well, Goodbye,

 Can Anybody ELSE do it?


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

Date: 26 May 2001 16:01:38 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: setting priority from perl on linux
Message-Id: <9eok12$657$1@mamenchi.zrz.TU-Berlin.DE>

According to David Ball  <dball@bnb-lp.com>:
> On 25 May 2001 13:01:47 GMT, anno4000@lublin.zrz.tu-berlin.de (Anno
> Siegel) wrote:
> 
> >According to David Ball  <dball@bnb-lp.com>:
> >> On Thu, 24 May 2001 11:58:52 +0000 (UTC), abigail@foad.org (Abigail)
> >> wrote:
> >> 
> >> >David Ball (dball@bnb-lp.com) wrote on MMDCCCXXII September MCMXCIII in
> >> ><URL:news:h53mgtk7tpkcr8baq78mpl8r8qpuj3hcap@4ax.com>:
> >> >@@  
> >> >@@  Do you know of any scripts that will build an index of html pages
> >> >@@  and then search it from a CGI ?
> >> >
> >> >
> >> >Yes.
> >> >
> >> >
> >> >Please use a web search to find such programs. Discussing of such programs
> >> >(which have nothing to do with Perl) don't belong in this group, just
> >> >like discussing your favourite brand of toilet paper doesn't.
> >> 
> >> Gee, you mean discussing perl scripts doesn't belong in a perl
> >> newsgroup. That's just plain stupid Abigail.
> >
> >Watch out whom you call stupid.  It may make *you* look stupid.
> 
> *chuckle*
> 
> >Discussion of "any scripts that will build an index of html pages..."
> >has nothing to do with Perl and is off topic.  Not to mention that
> >you didn't ask for discussion but how to find such a script.  That's
> >off topic as well.  Use a search engine.  So long.
> >
> >Anno
> 
> If you read the original post I made, you'll see that the remark
> abigail objected to was made in response to something else in the
> thread.

You must know Abigail very well.  I'll leave that for her to decide
(though I doubt she cares).

> I've looked for scripts using search engines, but didn't find
> anything suitable. The ones I found either cost too much or are too
> limited. 

So?  That makes it on-topic?

> The name of this newsgroup is "comp.lang.perl.misc"... As a usenet
> admin, I don't see anything wrong with posting such a question. The

I don't know what "usenet admin" is, but being one should enable you
to find the description text that goes with c.l.p.misc.  It reads
"The Perl language in general".  No word in your query has anything
to do with the Perl language, whatever you may think about the
relationship between Perl and CGI.

> only mistake I made was expecting someone here to be helpful instead
> of being a jerk.

Your primary mistake was an all too common one:  You went to the
wrong newsgroup with your question.  Not accepting this makes you
the jerk.

Anno


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

Date: Sat, 26 May 2001 15:39:49 -0500
From: "Public <Anonymous_Account>" <remailer@xganon.com>
Subject: typeglob (resend)
Message-Id: <111953895b6cbdae5c9f0d9f6e195db9@anon.xg.nu>

It appears that the last time I tried to send this it got cut off
so here goes another try.

The following program calls a function which returns a list of
refs to arrays and then prints the arrays.  It seems to work;
however, the strange thing is that if I simply reverse the order
of the two print statements (i.e. cut out the first and place it
after the second) then it no longer works.  

	(*a,*b) = f();
	print 



---
This message did not originate from the Sender address above.
It was posted with the use of anonymizing software at 
http://anon.xg.nu
---




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

Date: Sat, 26 May 2001 10:28:04 -0500
From: "Public <Anonymous_Account>" <remailer@xganon.com>
Subject: typeglob
Message-Id: <436f1aca8fbe3f12882104c3d7f6f488@anon.xg.nu>

<PRE>
The following program calls a function which returns a list of
refs to arrays and then prints the arrays.  It seems to work;
however, the strange thing is that if I simply reverse the order
of the two print statements (i.e. cut out the first and place it
after the second) then it no longer works.  

	(*a,*b) = f();
	print 



---
This message did not originate from the Sender address above.
It was posted with the use of anonymizing software at 
http://anon.xg.nu
---




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

Date: Sat, 26 May 2001 17:08:57 -0300
From: "News" <neo@accesscable.net>
Subject: use Time::localtime; inside require packages
Message-Id: <E%TP6.241562$Z2.2694626@nnrp1.uunet.ca>

I called use Time::localtime; not in my main script but a script that I
require "time.cgi".  For some reason this causes my script to work off and
on in which it will crash every second or third time I use it.  So instead I
stuck use Time::localtime; inside the main script and now everythings fine.
Does anyone understand what is happening here?  Can you not use packages
inside a script you require?  Why would it work off and on if at all?

Thanks,
Chad




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

Date: 26 May 2001 17:54:58 -0400
From: Joe Schaefer <joe+usenet@sunstarsys.com>
Subject: Re: use Time::localtime; inside require packages
Message-Id: <m3bsofrd1p.fsf@mumonkan.sunstarsys.com>

"News" <neo@accesscable.net> writes:

> I called use Time::localtime; not in my main script but a script that
> I require "time.cgi".  For some reason this causes my script to work
> off and on in which it will crash every second or third time I use it.
> So instead I stuck use Time::localtime; inside the main script and now
> everythings fine. Does anyone understand what is happening here?  Can
> you not use packages inside a script you require?  Why would it work
> off and on if at all? 

There is a well known glitch in the Time::localtime package that causes
your motherboard battery to leak acid if the module is compiled at an
inopportune moment.  You must use "use", and not "require", to avoid
corrosion- but this is all perfectly explained in the module's 
documentation.  See

  % perldoc Time::localtime

for details.

On a less obnoxious note, why not show the relevant portion of
your main script and the "time.cgi" script that actually makes
use of localtime()? My guess is that you aren't aware of the 
important compile-time effects of that package:

  % perl -wle 'use     Time::localtime; print localtime;'
  Time::tm=ARRAY(0x815d7f8)
  % perl -wle 'require Time::localtime; print localtime;'
  17401726410161451

-- 
Joe Schaefer    "Common sense is the collection of prejudices acquired by age
                                          eighteen."
                                               --Albert Einstein


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

Date: 26 May 2001 20:13:59 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: What modules are being used?
Message-Id: <9ep2q7$eos$1@mamenchi.zrz.TU-Berlin.DE>

[posted and mailed]

According to Terry Gliedt  <tpg@umich.edu>:
> I'm working on a rather large project which eventually I'd like to make
> available to other sites. I have the problem of trying to accurately list all
> the modules being used by my code. I know what modules I had to install as I
> wrote the code, but what I don't know is what modules I (or someone else) had
> installed earlier which were used by my code.
> 
> Simply put, for a given Perl script, what are all the modules (and the version)
> used?
> 
> I have this vague recollection that somewhere I saw some code which would simply
> list what was used, but I can't recall enough details. Can someone refresh my
> poor memory? 

"perldoc perlvar" can, if you look for %INC.

You will see that this hash contains an entry for each module that
has been loaded, plus information about where it was found in the
file system.

Note that this is not equivalent to the set of modules your program
will ever use under any circumstances.  There are ways to decide
at run time (well, often compile time) which modules to load and
which to leave alone.

It also doesn't address the subject of version numbers.  I think
the standard is to deposit a version string in the variable $VERSION
in the module's package, but not every module does this.  I am also
not quite up-to-date about the format of a version string.  Maybe
someone can fill in?

> Please also copy me directly on your response, less I miss your reply. TIA

Okay.  In return, please limit your line length to 72 characters or so.

Anno


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

Date: Sat, 26 May 2001 11:47:46 -0400
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Who's Going to the Perl Conference in San Diego this year?
Message-Id: <slrn9gvk12.18j.tadmc@tadmc26.august.net>

brian d foy <comdog@panix.com> wrote:
>In article <ywWO6.4580$r61.35931@typhoon.sonic.net>, "Dave" 
><djm@spamfree.mcoe.k12.ca.us> wrote:
>
>> http://conferences.oreilly.com/perl/
>> 
>> 
>> I'm going and perhaps might wanna hook up with some of you guys, provided
>> you arnt mental...
>
>isn't that at the same time and place as the Damian Conference?
                   ^^^^^^^^^^^^^^^^^^^

You might say that they are superimposed.


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


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

Date: Sat, 26 May 2001 16:13:14 GMT
From: Peter Wastholm <peter@wastholm.com>
Subject: Re: wml content type error with CGI
Message-Id: <3B0FD530.443A8B01@wastholm.com>

Krusty wrote:
> 
> I'm running a cgi, try to get WML page to come up.  I get an error from the
> phone browers saying it's can't support text/html content type.
> The first line of my cgi is
> print "Content-Type: text/vnd.wap.wml\n\n";
> 
> Anyone have any ideas what is happening?  This is on a unix box
> 
> when I run this file with perl I get the first line being
> Content-Type: text/vnd.wap.wml\n\n

Have you tried accessing the URL to your script using an ordinary web
browser? Chances are you'll see an error message, generated by the web
server, in HTML format ("Server Error," "Forbidden," or the like).

/Peter
-- 
Peter Wastholm           | A witty saying proves nothing.      Voltaire
peter@wastholm.com       | Except that you have wit.  Aphorisms Galore!
http://www.wastholm.com/ |              http://www.aphorismsgalore.com/


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

Date: Sat, 26 May 2001 20:17:48 GMT
From: "Trond Michelsen" <trondmm-usenet@crusaders.no>
Subject: Re: wwwboard.pl - Taint and Use Strict
Message-Id: <MbUP6.4410$qR5.235586@news01.chello.no>

Godzilla! <godzilla@stomp.stomp.tokyo> skrev i
meldingsnyheter:3B0EEC37.E7F582F3@stomp.stomp.tokyo...
>> Godzilla! wrote:
> Well gosh, aren't you a brandy new Newbie here.

darnit. I need to check off this date in my calendar, I think it's been 7
years since I was last called a newbie.

--
Trond Michelsen





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

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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.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.

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 V10 Issue 994
**************************************


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