[16968] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 4380 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Sep 19 21:10:31 2000

Date: Tue, 19 Sep 2000 18:10:16 -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: <969412215-v9-i4380@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Tue, 19 Sep 2000     Volume: 9 Number: 4380

Today's topics:
    Re: Parse::RecDescent: Problem with a Grammar (Abigail)
    Re: Parse::RecDescent: Problem with a Grammar (Damian Conway)
    Re: Perl Threads on Win <elephant@squirrelgroup.com>
    Re: Problem running script from a SSI command in IIS4 <elephant@squirrelgroup.com>
        Problems with Mail::Folder and cgi mluebke@my-deja.com
    Re: Qualifications for new Perl programmer????? <nospam@david-steuber.com>
    Re: Rant: Re: An identd faking ident. (Greg Andrews)
    Re: reading from file <lr@hpl.hp.com>
    Re: regex help needed <elephant@squirrelgroup.com>
    Re: Regular Expressions (Abigail)
    Re: Running lengthly perl scripts over cgi <usenet@hank.org>
    Re: Script Available? (Steve)
    Re: Script Available? <elephant@squirrelgroup.com>
    Re: Shortest code for Fibonacci? <jcook@strobedata.com>
    Re: Shortest code for Fibonacci? (Ilya Zakharevich)
    Re: Shortest code for Fibonacci? (Abigail)
        Stack commands in a system call <randy_734@my-deja.com>
    Re: Stack commands in a system call <vivek@com21.com>
    Re: Strange results using system vs backticks <tmvatcher@bigfoot.com>
    Re: Strange results using system vs backticks <uri@sysarch.com>
    Re: Teaching Perl <nospam@david-steuber.com>
    Re: Where to get Net::SMTP ?? <usenet@hank.org>
    Re: Where to get Net::SMTP ?? <vgavan@hotmail.com>
    Re: Windows modules <carvdawg@patriot.net>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: 19 Sep 2000 22:28:10 GMT
From: abigail@foad.org (Abigail)
Subject: Re: Parse::RecDescent: Problem with a Grammar
Message-Id: <slrn8sfq1k.5fq.abigail@alexandra.foad.org>

Stephen Collyer (stephen@twocats.dont-spam.demon.co.uk) wrote on MMDLXXVI
September MCMXCIII in <URL:news:969393483.15454.0.nnrp-10.9e98901a@news.demon.co.uk>:
[] 
[] Respect is due. This fixes the problem, but I'm baffled.
[] Surely { return EXPR } and { EXPR } are semantically
[] equivalent ?

Absolutely not! 'return' returns from a sub, or an eval (or a do FILE).
{ EXPR } is just a block with an expression.

Compare:

    sub foo {
        if (1) {return 2}
        print "Foo!\n";
    }

and

    sub foo {
        if (1) {2}
        print "Foo!\n";
    }

The latter will print 'Foo!', while the former won't print anything.

[]              I can't see why my original explicit return
[] should make this fail. As to the $return version, fair
[] enough, the code can explicitly examine it. OK, Abigail,
[] spill the beans - why does your version work and mine not ?

sub { return EXPR } and sub { EXPR } are semantically equivalent,
but the blocks in the grammar are just blocks; not subs. Your return
cases the sub in which the block is placed to return unexpectedly.


Abigail
-- 
perl -wle 'eval {die [[qq [Just another Perl Hacker]]]};; print
           ${${${@}}[$#{@{${@}}}]}[$#{${@{${@}}}[$#{@{${@}}}]}]'


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

Date: 20 Sep 2000 00:32:45 GMT
From: damian@cs.monash.edu.au (Damian Conway)
Subject: Re: Parse::RecDescent: Problem with a Grammar
Message-Id: <8q90jd$4jh$1@towncrier.cc.monash.edu.au>

abigail@foad.org (Abigail) writes:

>Stephen Collyer (stephen@twocats.dont-spam.demon.co.uk) wrote on MMDLXXVI
>September MCMXCIII in <URL:news:969393483.15454.0.nnrp-10.9e98901a@news.demon.co.uk>:
>[] 
>[] Respect is due. This fixes the problem, but I'm baffled.
>[] Surely { return EXPR } and { EXPR } are semantically
>[] equivalent ?

>Absolutely not! 'return' returns from a sub, or an eval (or a do FILE).
>{ EXPR } is just a block with an expression.

Indeed. The actions within a RecDescent rule are converted to C<do> blocks
within the parsing subroutines RecDescent generates. Something like:

	rule: /pattern/ subrule { action() }

becomes:

	sub rule {
		# match against /pattern/

		# recursively call subrule()

		$result = do { action };

		# other Important Stuff here
	}


If you put a C<return> in an action, you blast straight out of the
parsing subroutine, without doing the other Important Stuff :-(

Damian


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

Date: Wed, 20 Sep 2000 11:44:07 +1100
From: jason <elephant@squirrelgroup.com>
Subject: Re: Perl Threads on Win
Message-Id: <MPG.1432a5552b5312d99897bd@localhost>

iRQ9 <iloveyou@mailroom.com> wrote ..
>Where can I find  Perl for win  with Threads support  ?

  http://www.activestate.com/Products/ActivePerl/Download.html

-- 
  jason -- elephant@squirrelgroup.com --


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

Date: Wed, 20 Sep 2000 10:54:50 +1100
From: jason <elephant@squirrelgroup.com>
Subject: Re: Problem running script from a SSI command in IIS4
Message-Id: <MPG.143299c4b84f4ea09897b9@localhost>

Agustin Chernitsky <agustinchernitsky@altavista.com> wrote ..
>    I can't determine if this is a problem with my script or with my server.
>I am running a simple time script, which is called from an HTML page using
>SSI. When I load the page, I get the following error: "Failed to execute
>script XXXXX. Win32 Errir cide 16389".
>
>I am running IIS 4 and ActiveState ActivePerl (the last version).
>
>If I test the   script alone, without the SSI, it works.
>
>Could this be a script problem or a server configuration problem?

from the (extremely) limited information you've provided - it sounds 
like a server configuration problem

-- 
  jason -- elephant@squirrelgroup.com --


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

Date: Tue, 19 Sep 2000 23:10:03 GMT
From: mluebke@my-deja.com
Subject: Problems with Mail::Folder and cgi
Message-Id: <8q8rnt$q1e$1@nnrp1.deja.com>

Im trying to write a simple script to parse a
mail folder and to display the subject lines on a
web page. The scipt I am pasting below -works-
when I run it through command line (it does what
it should), but when run as a CGI script it does
not. It will print the header and anything I tell
it to before I start opening the mailbox, then
quits printing anything at all.

--- begin code ---

#!/usr/bin/perl -w
use Mail::Folder::Mbox;
$| = 1;
print "Content-type: text/html\n\n";
print "TEST1";
$folder = new Mail::Folder ('mbox', "foldername");
print "TEST2";
$mref = $folder->get_header(1);
print "TEST3";
$subj = $mref->get('Subject'); chomp($subj);
print "TEST4";
print "$subj";
$folder->close;

--- end code ---

In the example above, from command line, I'll get
all the TEST# statements printed, along with the
subject of email #1 in my mailbox, however from
the web, I get only TEST1TEST2 as the output.

Any thought?

--
Matt Luebke
mluebke@resourcenetworks.com


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Wed, 20 Sep 2000 00:42:33 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: Qualifications for new Perl programmer?????
Message-Id: <m37l87uc5j.fsf@solo.david-steuber.com>

Brendon Caligari <bcaligari@my-deja.com> writes:

' My Opinion:  Perl is too liberal in it's way of doing things.
' it's too forgiving....the syntax, the types.  It makes things
' seem too easy.

Pesonally, I think the less I have to worry about language details,
the more effort I can spend on a good algorithm.

I'm not sure if that is pro or con Perl ;-)

-- 
David Steuber | Perl apprentice, Apache/mod_perl user, and
NRA Member    | general Internet web wannabe.
ICQ# 91465842  (Using Micq 0.4.6 under Linux)

It's time to be free: http://www.harrybrowne2000.org


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

Date: 19 Sep 2000 15:59:48 -0700
From: gerg@ncal.verio.com (Greg Andrews)
Subject: Re: Rant: Re: An identd faking ident.
Message-Id: <8q8r54$i3p$1@ncal.verio.com>

nobull@mail.com writes:
>abigail@foad.org (Abigail) writes:
>
>> # A simple identd program, that has no intention of revealing any system
>> # information.
>> # The program expects to be run from inetd, and hence, only reads from
>> # STDIN. It will ignore all arguments given, nor will it pay attention
>> # to any of the environment variables.
>> # Appropriate errors are generated when the request is syntactically
>> # not valid, or when the given ports are out of bounds.
>> # For valid requests, regardless whether the ports are in use or not,
>> # a random OS and a random user name are picked from a fixed set of
>> # names. These random values are, appropriately formatted, returned.
>
>What the!!!???
>
>What kind of K00l d00d would want such a script?
>
>This is plain cyber-valdalism.
>
>If you don't want identd then simply don't run it.  If there are
>people out there who refuse to talk to you if you don't respond to
>ident requests then are they really worth talking to?
>
>Servers that log ident info on requests do so in order to _help_ the
>admins of the client sites track abusive users.  If your site has only
>one user at a time and you know who that is then there's no reason to
>respond to ident requests.
>

The amusing part of this is that I learned far more about
good coding and Perl from that example script than from
your rant.

  -Greg


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

Date: Tue, 19 Sep 2000 17:48:38 -0700
From: Larry Rosler <lr@hpl.hp.com>
Subject: Re: reading from file
Message-Id: <MPG.1431a93da7aaecd698ad96@nntp.hpl.hp.com>

In article <slrn8sfead.5fq.abigail@alexandra.foad.org>, abigail@foad.org 
says...
> Marvinas (Marvinas@Takas.lt) wrote on MMDLXXV September MCMXCIII in
> <URL:news:39c7a928@news.takas.lt>:
> @@ 
> @@     Hello,
> @@ 
> @@ Since I am just starting with perl I have this problem: I want to read an
> @@ integer from a file, but it returns string as an answer. How I could make my
> @@ program return integer?
> 
> 
> pack()

Huh?  I can see pack() being used to convert a string to a sequence of 
characters representing a binary encoding of an integer.  But just 
'integer' in the question is more likely to mean 'Perl integer', which 
is entirely different.

-- 
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


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

Date: Wed, 20 Sep 2000 11:33:15 +1100
From: jason <elephant@squirrelgroup.com>
Subject: Re: regex help needed
Message-Id: <MPG.1432a2c9505602419897bc@localhost>

Phil R Lawrence <prlawrence@lehigh.edu> wrote ..
>I want a list of all the methods I've used in a directory full of files.
>
>First, I grep'd all the lines out of some files that have '$r->'.
>
>This results in a file full of lines like this:
>AIAthletes.pm:$r->add_custom_sql_clause('c_ints','saturn.sorints', @c_ints);
>AIAthletes.pm:my $sth_offers_sd = $r->prepare(
>
>What regex can i use to throw out everything except: $r->method_name(@parms)
>?
>
>I tried:
>#!/usr/local/bin/perl -w
>while (<>) {
>  print "$_\n";  #before
>  s/[^(\$r\->\w+)]//g;

eek .. the things people think of ([] delimits a character class - you 
can construct the character class our of element groups) .. and \w means 
a word character (ie. a-z, A-Z, 0-9 and '_' .. it does not match spaces, 
commas, quotes, periods, and other things found in parameter lists)

this might do what you appear to be trying to do in your example above

  my($method) = /(\$r->[^)]+\))/;

of course - it only works if the closing paren is on the same line as 
the rest of the method call (it's not clear whether you just didn't 
enter the rest of the second parameter list - or whether some lines of 
your code have the parameters on a different line to the method call)

-- 
  jason -- elephant@squirrelgroup.com --


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

Date: 19 Sep 2000 22:20:24 GMT
From: abigail@foad.org (Abigail)
Subject: Re: Regular Expressions
Message-Id: <slrn8sfpj2.5fq.abigail@alexandra.foad.org>

Eli the Bearded (elijah@workspot.net) wrote on MMDLXXI September MCMXCIII
in <URL:news:eli$0009141706@qz.little-neck.ny.us>:
}} In comp.lang.perl.misc, Abigail <abigail@foad.org> wrote:
}} > *ANY* character can appear in an email address.
}} > 
}} >     \<@example.com
}} > 
}} > is a valid address.
}} 
}} That example is valid, but that does not make your first statement
}} above valid. Control characters and highbit characters are specifically
}} forbidden, though with modern software many of them will work.
}} (I used "\b@qz.to" (where \b is backspace, per perl conventions) with
}} sendmail and had no MTA problems. MUA is another matter.)


Control characters are allowed. From RFC 822:

   addr-spec   =  local-part "@" domain        ; global address
   local-part  =  word *("." word)             ; uninterpreted
                                               ; case-preserved
   word        =  atom / quoted-string
   quoted-string = <"> *(qtext/quoted-pair) <">; Regular qtext or
                                               ;   quoted chars.
   quoted-pair =  "\" CHAR                     ; may quote any char
   CHAR        =  <any ASCII character>        ; (  0-177,  0.-127.)


I should have said, *ANY ASCII* character.


Abigail
-- 
sub _'_{$_'_=~s/$a/$_/}map{$$_=$Z++}Y,a..z,A..X;*{($_::_=sprintf+q=%X==>"$A$Y".
"$b$r$T$u")=~s~0~O~g;map+_::_,U=>T=>L=>$Z;$_::_}=*_;sub _{print+/.*::(.*)/s};;;
*_'_=*{chr($b*$e)};*__=*{chr(1<<$e)};                # Perl 5.6.0 broke this...
_::_(r(e(k(c(a(H(__(l(r(e(P(__(r(e(h(t(o(n(a(__(t(us(J())))))))))))))))))))))))


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

Date: Tue, 19 Sep 2000 14:49:51 -0700
From: Bill Moseley <usenet@hank.org>
Subject: Re: Running lengthly perl scripts over cgi
Message-Id: <MPG.14317f574b80418f989690@news.newsguy.com>

On Tue, 19 Sep 2000 17:56:49 GMT dj_morri@my-deja.com (dj_morri@my-
deja.com) remarked...
> I wish to run a perl script spawned via a web cgi interface.  Only
> problem is that this script will take anything up to 15 minutes to
> execute!!  (Don't ask!)  It's nothing untoward but it telnets into
> around 50 hosts on our intranet and collects some info.

> So, my PERL question is....
> 
> Can I use my script to run a child script in the background, and exit
> leaving the child to run on the system, not through CGI.

Sure.  perldoc perlipc gives details how to do exactly this.

-- 
Bill Moseley


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

Date: 19 Sep 2000 23:22:50 +0100
From: steve@zeropps.uklinux.net (Steve)
Subject: Re: Script Available?
Message-Id: <slrn8sfnvl.ved.steve@zero-pps.localdomain>

On Tue, 19 Sep 2000 21:12:40 +0100, Johnny B'Good wrote:
>
>When a button (could be part of a form) is clicked, a cgi process is called
>that takes the document that called it, and strips out everything but the
>contents between two comment tags.  It then takes what it has stripped out,
>and dumps it into a blank html page between the body tags and feeds this
>back to the browser.

I don't see the point of having the data in between coment tags in the 
first place, but what you want isn't all that hard to do is it, you're
just looking for the two comment tags whenever they appear in the 
document. 

-- 
Cheers
Steve              email mailto:steve@zeropps.uklinux.net

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

 10:22pm  up 29 days,  2:36,  2 users,  load average: 1.00, 1.04, 1.01


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

Date: Wed, 20 Sep 2000 11:13:42 +1100
From: jason <elephant@squirrelgroup.com>
Subject: Re: Script Available?
Message-Id: <MPG.14329e2c8a0ec08a9897bb@localhost>

Steve <steve@zeropps.uklinux.net> wrote ..
>On Tue, 19 Sep 2000 21:12:40 +0100, Johnny B'Good wrote:
>>
>>When a button (could be part of a form) is clicked, a cgi process is called
>>that takes the document that called it, and strips out everything but the
>>contents between two comment tags.  It then takes what it has stripped out,
>>and dumps it into a blank html page between the body tags and feeds this
>>back to the browser.
>
>I don't see the point of having the data in between coment tags in the 
>first place, but what you want isn't all that hard to do is it, you're
>just looking for the two comment tags whenever they appear in the 
>document. 

it's harder than you think Steve .. what if an image on that page has a 
filename with '<!--' in it somewhere ? .. or a '-->' even ? .. certainly 
not commonplace - but entirely possible (and the list goes on)

the originator should consider using one of the HTML parsing modules 
such as HTML::Parser to parse the page properly .. it's very easy to 
create a page containing only the comments .. this is a standard module 
so you can see all the details with

  perldoc HTML::Parser

-- 
  jason -- elephant@squirrelgroup.com --


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

Date: Tue, 19 Sep 2000 14:56:54 -0700
From: Jim Cook <jcook@strobedata.com>
Subject: Re: Shortest code for Fibonacci?
Message-Id: <39C7E126.8C7DE6DD@strobedata.com>

> $$ > >> ^^ () How do you raise powers in constant time?

> $$ I don't think that arbitrary real numbers are in the set of supported
> $$ perl values. Certainly in my current version, they're not actually
> $$ supported.

> *shrug* If you play it that way....

> *ANY* Perl program running on whatever CPU you can make out of the particles
> that either have existed in this universe, or exist now, either never
> terminates, or runs in O (1) time.

Well, I was asking a serious question. I hope my intent didn't get lost.
I don't know enough number theory to prove what O(x) it takes to do
power/log for real numbers. I do know that powers on the CPU (meaning,
limited by the CPU ability and range) is O(1). If you were meaning the
general case, I'll happily concede the point (I'm assuming you know a
lot more about O() for powers than I do). If you meant the specific case
of how to do a power on the CPU in O(1) time, I think the answer is to
use the FPU power instruction.


I believe that a bubble sort algorithm is O(n**2) and an "mean"
algorithm is O(n). A power algorithm has O(?), meaning that again I
don't know number theory here. However, implementing a bubble sort in
perl will be O(n**2) and mean will be O(n), and power will be O(1). That
was the point I was trying to make.


In theory, theory and practice are the same.
In practice, they're not.


--
jcook@strobedata.com  Live Honourably    4/1 - 4/3 + 4/5 - 4/7 + . . .
2000 Tuesdays: Feb/last 4/4 6/6 8/8/ 10/10 12/12 9/5 5/9 7/11 11/7 3/14
Strobe Data Inc. home page   http://www.strobedata.com
My home page    O-           http://jcook.net


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

Date: 19 Sep 2000 22:31:44 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Shortest code for Fibonacci?
Message-Id: <8q8pgg$fhn$1@charm.magnus.acs.ohio-state.edu>

[A complimentary Cc of this posting was sent to Abigail
<abigail@foad.org>],
who wrote in article <slrn8sf3sh.5fq.abigail@alexandra.foad.org>:
> $$ I don't think that arbitrary real numbers are in the set of supported
> $$ perl values. Certainly in my current version, they're not actually
> $$ supported. 
> 
> *shrug* If you play it that way.... 

But one does not need to...

perl -MMath::Pari=:float,:prec=140 -wle ' \
 $x = 1.0000000000000000000000000000000000000001; print exp(1.)-$x**(1/($x-1))'
1.35914091422952261768014373567633124887849895893284208124352980068935E-40

Ilya


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

Date: 19 Sep 2000 23:24:52 GMT
From: abigail@foad.org (Abigail)
Subject: Re: Shortest code for Fibonacci?
Message-Id: <slrn8sftbu.5fq.abigail@alexandra.foad.org>

Jim Cook (jcook@strobedata.com) wrote on MMDLXXVI September MCMXCIII in
<URL:news:39C7E126.8C7DE6DD@strobedata.com>:
// 
// Well, I was asking a serious question. I hope my intent didn't get lost.
// I don't know enough number theory to prove what O(x) it takes to do
// power/log for real numbers. I do know that powers on the CPU (meaning,
// limited by the CPU ability and range) is O(1). If you were meaning the
// general case, I'll happily concede the point (I'm assuming you know a
// lot more about O() for powers than I do). If you meant the specific case
// of how to do a power on the CPU in O(1) time, I think the answer is to
// use the FPU power instruction.

If it's really O(1), then why the large range in cycles? But sure,
with the limited precision of CPU registers, exponentiation can be
approximated in a reasonable amount of steps. It won't work for precision
algorithms though.

// I believe that a bubble sort algorithm is O(n**2) and an "mean"
// algorithm is O(n). A power algorithm has O(?), meaning that again I
// don't know number theory here. However, implementing a bubble sort in
// perl will be O(n**2) and mean will be O(n), and power will be O(1). That
// was the point I was trying to make.


I've no idea what you're trying to say here.



Abigail
-- 
print v74.117.115.116.32;
print v97.110.111.116.104.101.114.32;
print v80.101.114.108.32;
print v72.97.99.107.101.114.10;


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

Date: Wed, 20 Sep 2000 00:16:36 GMT
From: Randy <randy_734@my-deja.com>
Subject: Stack commands in a system call
Message-Id: <39c80126.10118484@207.126.101.100>

Is there any way to stack multiple commands in a single system call on
NT?  I've tried various:

system ("cd somedir\n dosomthing");

system ("cd somedir", "dosomething");

system ("cd somdir"; "dosomething");

and so on.  Nothing seems to work.


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

Date: Tue, 19 Sep 2000 17:20:01 -0700
From: Vivek Kumar <vivek@com21.com>
Subject: Re: Stack commands in a system call
Message-Id: <39C802B1.D9239409@com21.com>

Try

system ("cd something ; do_something")

-vivek
Randy wrote:

> Is there any way to stack multiple commands in a single system call on
> NT?  I've tried various:
>
> system ("cd somedir\n dosomthing");
>
> system ("cd somedir", "dosomething");
>
> system ("cd somdir"; "dosomething");
>
> and so on.  Nothing seems to work.

--
To succeed in this world it is not enough to be stupid; you must also be
well-mannered. - Voltaire





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

Date: Tue, 19 Sep 2000 15:29:15 -0700
From: "Toni M. Vatcher" <tmvatcher@bigfoot.com>
Subject: Re: Strange results using system vs backticks
Message-Id: <39C7E8BB.C60A3FF4@bigfoot.com>

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
After posting the previous message, I figured out what was happening.&nbsp;&nbsp;
I still would like to understand why perl did what it did, though...
<p>The program that I was calling wasn't returning any status at all -&nbsp;
its return value was defined as "void".
<p>If I put the program inside a DOS batch file and just added a dummy
command (dir) at the end of the batch file, it would only be called once.&nbsp;&nbsp;
Without the dir command the batch job was called twice.&nbsp; (The reason
it wasn't called over and over is that the program aborts if it is run
without the necessary setup that's in my perl script).
<p>So... I got them to update the program to return "good" status and all
is well.
<p>Toni Vatcher
<br>tmvatcher@bigfoot.com
<br>&nbsp;</html>



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

Date: Tue, 19 Sep 2000 23:40:52 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Strange results using system vs backticks
Message-Id: <x7u2bcc5mo.fsf@home.sysarch.com>


no one here will help you if you post in html. 

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com


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

Date: Wed, 20 Sep 2000 00:58:50 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: Teaching Perl
Message-Id: <m34s3bubed.fsf@solo.david-steuber.com>

mgjv@verbruggen.comdyn.com.au (Martien Verbruggen) writes:

' There is a reason that Pascal uses := for this and = for equality.

Yes.  Somebody didn't count the number of comparisons vs the number of
assignments in a typical program and needlessly increased the number
of keystrokes required to write a program.

I won't name names, but I think their is an old joke about virt by
name and worth by reference ;-)

Interestingly, Perl has more than one assignment operator.  You have
the simple assignment like this:

$foo = $bar;

Or something a little more lispy (if you stretch your imagination a
bit) like so:

{ foo => bar };

Then Perl throws those of us who were used to the oddities of C++ a
slider with constructs like:

this if that;

or

this unless that;

I am very, very afraid to look at the source code for the Perl lexical
analyzer and parser.  I'm very impressed that compile times are so
short and programs run so fast.

I will be very interested to see how threads are handled (I've not
been compiling in thread support or that multiplicity thing in 5.6.0).

-- 
David Steuber | Perl apprentice, Apache/mod_perl user, and
NRA Member    | general Internet web wannabe.
ICQ# 91465842  (Using Micq 0.4.6 under Linux)

It's time to be free: http://www.harrybrowne2000.org


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

Date: Tue, 19 Sep 2000 14:43:50 -0700
From: Bill Moseley <usenet@hank.org>
Subject: Re: Where to get Net::SMTP ??
Message-Id: <MPG.14317defb5f278cc98968f@news.newsguy.com>

On Tue, 19 Sep 2000 18:42:33 GMT vgavan (vgavan@hotmail.com) remarked...
> I looked in http://www.perl.com/CPAN-local/modules/by-module/Net/ and
> ActiveState.
> Can't find it. Please help,  point me where I can download binary for Win32
> or source.

http://www.ActiveState.com/PPMPackages/5.005/

I went to search.cpan.org and found Net::SMTP.  Saw that it was called 
libnet.  Found above link an saw libnet.ppm.

http://www.activestate.com/Products/ActivePerl/docs/faq/ActivePerl-
faq2.html#using_ppm has more examples if needed.



-- 
Bill Moseley


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

Date: Tue, 19 Sep 2000 22:29:41 GMT
From: "vgavan" <vgavan@hotmail.com>
Subject: Re: Where to get Net::SMTP ??
Message-Id: <pNRx5.6991$Vu5.362227@newsread2.prod.itd.earthlink.net>

Thank you , It sure is there...


"vgavan" <vgavan@hotmail.com> wrote in message
news:tsOx5.7621$nk3.360937@newsread03.prod.itd.earthlink.net...
> I looked in http://www.perl.com/CPAN-local/modules/by-module/Net/ and
> ActiveState.
> Can't find it. Please help,  point me where I can download binary for
Win32
> or source.
> Thank you in advance.
>
>




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

Date: Tue, 19 Sep 2000 19:27:59 -0400
From: H C <carvdawg@patriot.net>
Subject: Re: Windows modules
Message-Id: <39C7F67F.228A200@patriot.net>

Have you been back to the ActiveState site, or Dave Roth's site at all in
the
past year?

More importantly, what modules are you looking for?

Kelley Kent wrote:

> Am I crazy: didn't there used to be seperate Perl module packages
> for Unix/Linux and Windows? I remember doing ppm stuff and
> installing packages that way on Windows, but that was about a year
> ago. All the modules I've found recently don't have the ppm stuff and
> I basically just have to untar and unzip the module and copy the main
> module folder to the perl/lib directory.
>
> Were these ppm modules at a different site location that maybe I just
> can't remember at the present time? Or are they now defunct?
>
> Just a sanity check. :-)
>
> -- Kelley

--
Q: Why is Batman better than Bill Gates?
A: Batman was able to beat the Penguin.




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

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

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

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 V9 Issue 4380
**************************************


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