[6786] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 411 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri May 2 00:07:31 1997

Date: Thu, 1 May 97 21:00:23 -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           Thu, 1 May 1997     Volume: 8 Number: 411

Today's topics:
     Re: [DRAFT] RFD: comp.lang.perl.{data-structure,inter-p <ajohnson@gpu.srv.ualberta.ca>
     Re: Array Elements (Jon Bell)
     bootstrapping prob w/mod_perl (John Nielsen)
     Re: capturing user info <rra@stanford.edu>
     Re: Comm.pl (Clay Irving)
     explanation of contexts ?? <arnie@diac.com>
     Getopt::Long, using '?' as option <schoenm@earthlink.net>
     Re: Hexadecimal  search and replace? (brian d foy)
     Re: How to add line of text to Random Image Displayer? <rra@stanford.edu>
     Re: how to compile and execute a program from perl (Jon Bell)
     Re: how to compile and execute a program from perl <rra@stanford.edu>
     Re: how to compile and execute a program from perl (Clay Irving)
     Re: Lisp is neither (was Re: Ousterhout and Tcl lost th (Jack Campin)
     Looking for mailing list cgi program jvinci@cybergate.net
     mail from perl 5.003 program on solaris 2.5.1 <jesse@cybersource.com>
     Re: mail from perl 5.003 program on solaris 2.5.1 <rra@stanford.edu>
     Multithreading in perl? <tab@albany.net>
     Re: Notice to antispammers <rsi@earthling.net>
     Re: Notice to antispammers gerg@wco.com
     Re: Notice to antispammers <rra@stanford.edu>
     Re: Notice to antispammers (John Stanley)
     Re: Object IDs are bad (was: Ousterhout and Tcl lost th (Andrew Koenig)
     Re: Object IDs are good ( was: Object IDs are bad ) schaffer@wat.hookup.net
     Please update perlfunc*.html ! <charliemb@mindspring.com>
     Re: Q: Cutting a string by position (like cut(1) can) (brian d foy)
     Re: quoting parens in m() expression <rra@stanford.edu>
     Randal Teaching Open Enrollment Advanced Perl in NYC/NJ <s..vanechanos@postoffice.worldnet.att.net>
     Re: Remove HTML tags from docs???? <spammers_suck@[127.0.0.1]>
     Re: streaming encryption <rra@stanford.edu>
     Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: Thu, 01 May 1997 21:43:23 -0500
From: Andrew Johnson <ajohnson@gpu.srv.ualberta.ca>
To: I-hate-cyber-promo@man.ac.uk
Subject: Re: [DRAFT] RFD: comp.lang.perl.{data-structure,inter-process,programmer,regex}
Message-Id: <336954CB.18D0250B@gpu.srv.ualberta.ca>

A. Deckers wrote:
> 
> I have received enough positive responses to make me feel it's
> worthwhile to move ahead with this. This draft contains a rationale for
> all groups and the charter for the data structures group. The other
> charters would be similar, except for the obvious changes.
[snip] 
> 
>                      REQUEST FOR DISCUSSION
>              moderated comp.lang.perl.data-structure
>              moderated comp.lang.perl.inter-process
>                moderated comp.lang.perl.programmer
>                  moderated comp.lang.perl.regex
[snip]

If the proposed moderation is at all effective at
weeding out obvious FAQ's and preventing mis-posted
CGI questions and long threads about scheme vs tcl, 
then I wonder if there will be any added value in
splitting up the moderated version of the group 
into 4 separate groups.

I, for one, would be quite happy with a single moderated
group, as I don't think the traffic would be too much to
handle (again, given effective moderation). I'm just guessing
but I figure most interested parties would likely subscribe
to all four groups anyway. At the least, if possible, it would
be nice if all posts to any of the proposed groups were automatically
cross-posted to the comp.lang.perl.programmer  general group
so that one could simply subscribe to a single group and
still take part in all of the discussions on various topics.
(it would still allow those only interested in say, data-
structures, to just follow those specialized discussions).

But, I'm all for a moderated perl group (or groups) in
whatever form it (they) develop.

regards
andrew


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

Date: Fri, 2 May 1997 01:58:43 GMT
From: jtbell@presby.edu (Jon Bell)
Subject: Re: Array Elements
Message-Id: <E9J6tw.9x8@presby.edu>

 Jan Krynicky  <Jan.Krynicky@st.ms.mff.cuni.cz> wrote:
>ALASTAIR AITKEN CLMS wrote:
>> 
>> In article <5j1q11$lpq@noc1.gwi.net>, geecee@burbot.netquarters.net (Gary Chambers) writes:
>> >Can someone confirm the correct method of determining the number of
>> >elements in an array?
>> 
>> $#array is the last element subscript so ..
>> $#array++ is the number of elements (but increments the array too) so ..
>> $elements = $#array++; # which i think doesn't increment the array but
>> $elements = $#array; $elements++ # definitely doesn't.
>
>And what about the most simple
>
> $#array+1

And what about the even simpler

  @array 

in a scalar context?

I have code that uses things like

if (@Newsgroups > 2) {
   blahblahblah;
}

If you need to force it into a scalar context, use 

  scalar(@array)

Reference: p. 49 of the Camel book (2nd ed.).

-- 
Jon Bell <jtbell@presby.edu>                        Presbyterian College
Dept. of Physics and Computer Science        Clinton, South Carolina USA
[for beginner's Usenet info, see http://web.presby.edu/~jtbell/usenet/ ]


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

Date: 1 May 1997 21:09:21 -0400
From: jnielsen@chemistry.mps.ohio-state.edu (John Nielsen)
Subject: bootstrapping prob w/mod_perl
Message-Id: <5kbes1$cbr@chemistry.ohio-state.edu>


I have just installed mod_perl-0.97 and CGI.pm-2.35 on Digital Unix.

modperl passes all of it's tests.

When I use CGI.pm normally, it works fine. However, when I attempt to
use mod_perl with it, it complains with:

Can't locate object method "bootstrap" via package "Apache" at
/usr/local/lib/perl5/site_perl/Apache.pm line 11.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/CGI/Apache.pm line 2.

And, all what line 2 is doing is running the command:
use Apache ();

and line 11 from the other module runs:

bootstrap Apache $VERSION;

Any ideas for what I'm missing?

Thanks,


john



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

Date: 01 May 1997 19:13:33 -0700
From: Russ Allbery <rra@stanford.edu>
To: perry@perrylogic.com
Subject: Re: capturing user info
Message-Id: <qumhggmoc36.fsf@cyclone.stanford.edu>

[ Posted and mailed. ]

Perry Frost <perry@perrylogic.com> writes:

> I am looking for a way to run a CGI script as a SSI when a visitor comes
> to a page.  I want to capture as much info about that visitor as I can
> to a log file.

This is not a Perl question; this is a CGI question.  Your question
concerns what information is provided to CGI scripts by the protocol and
what information is set by a browser under the HTTP protocol.  Please ask
your question in comp.infosystems.www.authoring.cgi, not here.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>


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

Date: 1 May 1997 23:15:35 -0400
From: clay@panix.com (Clay Irving)
Subject: Re: Comm.pl
Message-Id: <5kbm8n$b4p@panix.com>
Keywords: Comm.pl, expect


In <5kae6p$lnq@hearye.mlb.semi.harris.com> jdr@sloth.mlb.semi.harris.com (Jim Ray) writes:

>Has anyone seen that elusive Comm.pl.1.6 anywhere?  I saw a reference
>to that release back in March (7) posted by Clay Irving, but have
>neither found 1.6 or seen any more references to it.

>Does anyone know where this version is?
>Are there any plans to make this a standard module?

Try the "net" section of Perl Reference:

	http://www.panix.com/~clay/perl/query.cgi?net+index

Last time someone was looking for it, I snarfed a copy. :)

-- 
Clay Irving                                        See the happy moron,
clay@panix.com                                     He doesn't give a damn,
http://www.panix.com/~clay                         I wish I were a moron,
                                                   My God! Perhaps I am!


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

Date: 2 May 1997 02:47:15 GMT
From: "arnie sherman" <arnie@diac.com>
Subject: explanation of contexts ??
Message-Id: <01bc56a4$f348efc0$748e4dcf@frenomulax>

hi,
could anyone point out an online source (faq, web page?) for a concise
explanation of contexts (i.e. scalar & array) for a perl newbie (me).
thanks,
-- 
arnie sherman
arnie@diac.com


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

Date: 2 May 1997 01:19:21 GMT
From: "Michael A. Schoen" <schoenm@earthlink.net>
Subject: Getopt::Long, using '?' as option
Message-Id: <01bc5697$fc6ec6e0$878eadcd@schoen>

I am using the GetOptions routine in Getopt::Long, version 2.09, and I find
that I cannot get '?' to be used as a valid option.

When I run my program, I get the following error:

	Error in option spec: "help|?"

Is there some way to get -? to be valid?

thanks,

Michael Schoen



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

Date: Thu, 01 May 1997 21:33:31 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: Hexadecimal  search and replace?
Message-Id: <comdog-0105972133310001@nntp.netcruiser>

In article <5kb5qp$84l@news1.fast.net>, tim@regiononline.com (Timothy
Lindgren) wrote:
 
> I have a large number of ascii text files that have a badly formed "new line" 
> character. The only way I have found to see the bad character is with a hex 
> editor.
> 
> The format for new line (Carrage Return) in HEX is " 0D0A ".
> 
> Can anyone help describe a routine that will open a file from command line, 
> then search for the bad hex value ( "0D0D0A" ) and replace it with the HEX 
> value of " 0D0A "?

well, if you want an entire routine you'll need to shop somewhere else
because i'm too lazy:  

   perl -pi.bak -e 's/\x0D(\x0D\x0A)/$1/g;' file.txt

that works with a glob as well, although you may not want to create
hundreds of *.bak files :)

-- 
brian d foy                              <URL:http://computerdog.com>                       
unsolicited commercial email is not appreciated


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

Date: 01 May 1997 19:04:14 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: How to add line of text to Random Image Displayer?
Message-Id: <qumwwpiocip.fsf@cyclone.stanford.edu>

John M Cole <jcole@wavenet.com> writes:

> I'm working with one a Random Image Displayer script from Matt's Script
> Archive, and I'd like to add a different and specific line of text to
> each image being displayed.

> Does anyone know of an easy way to do this?

Yes.  You learn how to program in Perl and modify the script such that it
will do this.

If you have a specific programming question we would be happy to help you,
but this question is hopelessly vague and essentially amounts to you
asking someone else to do your work for you.  Please do not do that.  Try
to make the modification yourself and then ask specific questions when you
get stuck.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>


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

Date: Fri, 2 May 1997 01:52:57 GMT
From: jtbell@presby.edu (Jon Bell)
Subject: Re: how to compile and execute a program from perl
Message-Id: <E9J6KA.9pG@presby.edu>

 Kiran  <dasoju@cnde.iastate.edu> wrote:
>
>i want to write a perl script which at times compiles and executes a
>program how can i do it 

That depends on what platform (DOS, Unix, ...?) you're using, and 
which compiler you're using.

-- 
Jon Bell <jtbell@presby.edu>                        Presbyterian College
Dept. of Physics and Computer Science        Clinton, South Carolina USA
[for beginner's Usenet info, see http://web.presby.edu/~jtbell/usenet/ ]


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

Date: 01 May 1997 19:11:46 -0700
From: Russ Allbery <rra@stanford.edu>
To: Kiran <dasoju@cnde.iastate.edu>
Subject: Re: how to compile and execute a program from perl
Message-Id: <qumlo5yoc65.fsf@cyclone.stanford.edu>

[ Posted and mailed. ]

Kiran <dasoju@cnde.iastate.edu> writes:

> i want to write a perl script which at times compiles and executes a
> program how can i do it

You can use system() to run arbitrary Unix commands, such as a compiler
and the compiled program.  Is that what you're looking for?

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>


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

Date: 1 May 1997 23:26:23 -0400
From: clay@panix.com (Clay Irving)
Subject: Re: how to compile and execute a program from perl
Message-Id: <5kbmsv$dn1@panix.com>

In <3368FC9A.446B@cnde.iastate.edu> Kiran <dasoju@cnde.iastate.edu> writes:

>i want to write a perl script which at times compiles and executes a
>program how can i do it 

Something like this?

$compiler = "your_compiler_here";
$program  = "your_program_here";

`$compiler $program`;
chmod 0744, $program;
`$program`;

-- 
Clay Irving                                        See the happy moron,
clay@panix.com                                     He doesn't give a damn,
http://www.panix.com/~clay                         I wish I were a moron,
                                                   My God! Perhaps I am!


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

Date: 2 May 1997 00:47:20 GMT
From: jack@purr.demon.co.uk (Jack Campin)
Subject: Re: Lisp is neither (was Re: Ousterhout and Tcl lost the plot)
Message-Id: <2729@purr.demon.co.uk>


ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe) writes:
> Chris.Bitmead@alcatel.com.au (Chris Bitmead uid(x22068)) writes:
>> You don't tell us though what typing has got to do with "systems vs
>> scripting". You don't say why a dynamically typed language can't be a
>> good systems language (lisp), or a statically typed language can't be
>> good at scripting (ML perhaps?)
> I note that Unisys (formerly the Burroughs part) have been using a
> statically typed 'scripting language' for decades.  It's called WFL
> (Work Flow Language).  Was it ICL whose language SCL (?something Command
> Language) was loosely modelled on Algol 68?

ICL used an Algol 68 dialect for their systems programming language, S3,
which is what the whole of their VME operating system is written in.  SCL
has a vaguely similar syntax but a far simpler type system; it's still a
very nice scripting language with an efficient compiler and some useful
high-level primitives.  (This is from distant memory, it's years since I
wrote any SCL, but it came as a breath of sanity after the macro-based model
of Unix shell scripts).

-----------------------------------------------------------------------------
Jack Campin   2 Haddington Place, Edinburgh EH7 4AE, Scotland   0131 556 5272
http://www.purr.demon.co.uk/purrhome.html  food intolerance data and recipes,
Mac logic fonts, Scots folk music from "Off the Edge", and McCarrison Society



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

Date: Thu, 01 May 1997 22:51:42 -0600
From: jvinci@cybergate.net
To: jvinci@cybergate.net
Subject: Looking for mailing list cgi program
Message-Id: <862532620.20777@dejanews.com>

I am the editor of an e-mail newsletter, and am currently looking for a
cgi program that will alow people to subscribe/unsubscribe from my
webpage and then collect the address into a file that can be imported in
my e-mail program (I guess this might mean that the program will have to
insert a comma between each address).

I am currently using webcom for my web isp and they have such a program,
however, they have limited cgi capabilities so I would like to switch.

If anyone know of a program for purchase or freeware, please let me
know.  The only one that I know of is from Selena Sol but it won't allow
my subscribers to unsubscribe.

Thanks a lot,

John Vinci

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


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

Date: Thu, 01 May 1997 17:45:20 -0700
From: Jesse Rendleman <jesse@cybersource.com>
Subject: mail from perl 5.003 program on solaris 2.5.1
Message-Id: <33693920.67D7@cybersource.com>


I was mocked for posting to comp.lang.perl, and so, I repost here...


I'm sending mail from a perl program with the following code:

 $from = 'sender@cybersource.com';
 $to = 'bogus@cybersource.com';
 (open(MAIL, "|/usr/bin/mail $to")) || (exit(0));
 print MAIL "Errors-To: $from\n";
 print MAIL "From: $from\n";
 print MAIL "To: $to\n";
 print MAIL "Subject: mail testing\n\n";
 print MAIL "test with Errors-To: -> From: -> To: -> Subject:\n";
 close(MAIL);

which works when $to is a valid address, but when $to can't be
delivered because it doesn't exist or such, the error mail isn't
delivered to $from, instead it goes to "jesse@cybersource.com"?!

I've tried undefing any environment variables that might identify
"jesse", but with no luck.

Anyone got any ideas on this?


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

Date: 01 May 1997 19:20:39 -0700
From: Russ Allbery <rra@stanford.edu>
To: jesse@cybersource.com
Subject: Re: mail from perl 5.003 program on solaris 2.5.1
Message-Id: <qumafmeobrc.fsf@cyclone.stanford.edu>

[ Posted and mailed. ]

Jesse Rendleman <jesse@cybersource.com> writes:

> I'm sending mail from a perl program with the following code:

>  $from = 'sender@cybersource.com';
>  $to = 'bogus@cybersource.com';
>  (open(MAIL, "|/usr/bin/mail $to")) || (exit(0));
>  print MAIL "Errors-To: $from\n";
>  print MAIL "From: $from\n";
>  print MAIL "To: $to\n";
>  print MAIL "Subject: mail testing\n\n";
>  print MAIL "test with Errors-To: -> From: -> To: -> Subject:\n";
>  close(MAIL);

> which works when $to is a valid address, but when $to can't be
> delivered because it doesn't exist or such, the error mail isn't
> delivered to $from, instead it goes to "jesse@cybersource.com"?!

It goes to the envelope sender.  Important point worth shouting.

	NEVER SEND MAIL FROM A PERL SCRIPT USING /usr/bin/mail!

It has tons of security problems, doesn't generally do what you want, and
causes things like this.  Instead, try the following:

    $from = 'sender@cybersource.com';
    $to = 'bogus@cybersource.com';
    open (MAIL, '|/usr/lib/sendmail -t -oi -oem') or die "fork failed: $!";
    print MAIL <<"EOM";
From: $from
To: $to
Subject: mail testing

test with From, To, Subject
EOM
    close MAIL;

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>


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

Date: 2 May 1997 01:47:59 GMT
From: "Tab Bennedum" <tab@albany.net>
Subject: Multithreading in perl?
Message-Id: <01bc569a$e4bbda80$97581a26@suborbital.com>

Anyone know of way (a module?) to write multithreaded scripts?

I've done the fork thing, but it won't do my current project. I really need
a multithreaded solution.

TIA.

-Tab



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

Date: Fri, 2 May 1997 00:15:34 GMT
From: Rajappa Iyer <rsi@earthling.net>
Subject: Re: Notice to antispammers
Message-Id: <E9J4F8.Br3@nonexistent.com>

fl_aggie@hotmail.com (I R A Aggie) writes:

> But you're right, I don't have to reply. Not any more than you are being
> forced to post.
> 
> So, if you feel the need to munge, perhaps you should take a Usenet
> vacation...

And you should give your R key a rest. Sheesh!
-- 
<rsi@earthling.net> a.k.a. Rajappa Iyer.  New York, New York.
	They also surf who only stand on the waves.


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

Date: 2 May 1997 01:46:01 GMT
From: gerg@wco.com
Subject: Re: Notice to antispammers
Message-Id: <5kbh0p$p10$1@news.wco.com>

tchrist@mox.perl.com (Tom Christiansen) writes:
>
>I'm tired of getting postings I can't reply to, and I don't see why
>we should suffer just because you can't keep the spammers off your back.
>

Tom, I'll agree with you in the cases where people post to usenet and
request replies via e-mail.

For other cases, I won't agree with you.  Sending a cc: via e-mail
is your choice, not theirs.

  -Greg


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

Date: 01 May 1997 18:55:17 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Notice to antispammers
Message-Id: <qumzpueocxm.fsf@cyclone.stanford.edu>


John Stanley <stanley@skyking.OCE.ORST.EDU> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> 2.1.1.  From

>> The "From" line contains the electronic mailing address of the person
>> who sent the message, in the Internet syntax.

>> Sounds pretty clear to me.

> Two problems. 

> 1. This assumes that is transported only where Internet syntax addresses
> are available. How do you convert a DECNet FOOBAR::USER address into
> Internet syntax -- given that mail doesn't have to be gated to that
> network in the first place? Yeah, user@foobar.decnet is the right
> format, but it isn't necessarily deliverable. How about a UUCP site
> which is getting news but not mail?

My assumption is that "in the Internet syntax" refers to RFC 822, which
allows (as I recall) BITNET and UUCP addresses.  Son-of-1036 has already
been modified to specifically detail this and list BITNET and UUCP as
exceptions.

> 2. It doesn't say "electronic mailing address that everyone in the
> world can deliver email to without it ever bouncing or being rejected
> by any intervening filters, including those run by the intended
> recipient".

Oh, very true, I agree.

> With the reported withdrawal of Sprint from CIX and UUNet refusing
> peering agreements from some ISP's (including the one that provides
> service to Sun Microsystems) you are going to start finding a lot more
> "can't get there from here" email. You want to wave RFC 1036 at UUNet
> and tell them they have to peer with others?

Of course not.  I have absolutely no problem with e-mail setups which
selectively bounce messages depending on header contents.  That address is
still deliverable in general.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>


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

Date: 2 May 1997 03:33:45 GMT
From: stanley@skyking.OCE.ORST.EDU (John Stanley)
Subject: Re: Notice to antispammers
Message-Id: <5kbnap$7ej@news.orst.edu>

In article <qumzpueocxm.fsf@cyclone.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>John Stanley <stanley@skyking.OCE.ORST.EDU> writes:
>My assumption is that "in the Internet syntax" refers to RFC 822, which
>allows (as I recall) BITNET and UUCP addresses.  

I have no idea what internet BITNET addresses look like, but no, RFC822
does not allow UUCP addresses, unless they are in "local-part", which
can be almost anything.

The point still is, even if the address is in the right "format", that
format does not guarantee that there is a path to the recipient. For
UUCP, that means that host!user must be represented as user@host.UUCP,
but even if host is in the UUCP maps, there doesn't have to be a path to
it.

>> With the reported withdrawal of Sprint from CIX and UUNet refusing
>> peering agreements from some ISP's (including the one that provides
>> service to Sun Microsystems) you are going to start finding a lot more
>> "can't get there from here" email. You want to wave RFC 1036 at UUNet
>> and tell them they have to peer with others?
>
>Of course not.  I have absolutely no problem with e-mail setups which
>selectively bounce messages depending on header contents.  That address is
>still deliverable in general.

This last bit doesn't have anything to do with header contents of the
mail. It means that it will be possible and likely that some Internet
users will not be able to send mail to others because there is no
common connection. Your machine tries to connect to Joe's, but the
packets get dropped by the Big Network Company routers.



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

Date: Thu, 1 May 1997 21:24:03 GMT
From: ark@research.att.com (Andrew Koenig)
Subject: Re: Object IDs are bad (was: Ousterhout and Tcl lost the plot with latest paper)
Message-Id: <E9Iu44.AxE@research.att.com>

In article <wuju3kovv83.fsf@wistaria.i-have-a-misconfigured-system-so-shoot-me> Peter Ludemann <ludemann@inxight.com> writes:

> > In article <5k02gh$jhj@lyra.csx.cam.ac.uk> Tony Finch <fanf@lspace.org> writes:

> > Because it will compare equal with any other subtree that happens to
> > have the same structure, which is not what I want.

> But in that case, they are not the *same* subtree; they are different
> in some way that you haven't bothered to specify.

Exactly.  They are two different objects with the same value.

Whether or not that is an easy concept to live with seems to depend
on the local culture.

Which is the main point I was trying to make.
-- 
				--Andrew Koenig
				  ark@research.att.com
				  http://www.research.att.com/info/ark


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

Date: 28 Apr 1997 17:12:36 GMT
From: schaffer@wat.hookup.net
Subject: Re: Object IDs are good ( was: Object IDs are bad )
Message-Id: <5k2lq4$deh$1@nic.wat.hookup.net>

In <pog1wbcuqw.fsf@dogbert.cs.chalmers.se>, Lennart Augustsson <augustss@cs.chalmers.se> writes:
> ...
>Do you have a problem with reading? :-)
>Matthias Blume wrote "in each and every respect"; how can something
>look the same "in each and every respect" and then be "distinguishable
>when you learn more about them"?  If objects can be distinguished when
>you learn more about them then they were not equal in each and every
>respect.

Depends.  Often computer programs are set up to model an approximation of
the real world, with some selected attributes of the real world objects
used in the description.  Depending on what you model, it might be useful
to distinguish between different objects that are identical in all selected
criteria, if only to answer the question "how many different identical
looking objects do I get with this attribute selection".

Hartmann Schaffer



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

Date: Thu, 01 May 1997 23:13:55 -0400
From: Charlie Bustamante <charliemb@mindspring.com>
Subject: Please update perlfunc*.html !
Message-Id: <33695BF3.21B586DE@mindspring.com>

This problem was posted here about a month ago.

The htmlized docs pointed to by perlfunc.html are missing in
PerlDoc-5.004beta-html.tar.gz  .

Please update.  These pages are a great help to learing Perl.

Thanks,  Charlie
-- ___________________________________________________________
  /\ Charlie Bustamante       mailto:charliemb@mindspring.com \
 /  \               ...in the Carolina woods                   \
/____\ "Brevity good"                                           \
      \__________________________________________________________\


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

Date: Thu, 01 May 1997 21:42:13 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: Q: Cutting a string by position (like cut(1) can)
Message-Id: <comdog-0105972142130001@nntp.netcruiser>

In article <01bc5691$feba4c40$011618cb@caesar.bit.net.au>, "Andrew
Pollock" <apollock@bit.net.au> wrote:

> How do you dissect a string based on column? (Like the way cut(1) works?)
> I know all about splitting on whitespace, but I've got a string where
> tokens don't always appear, and splitting on whitespace is impractical.

see substr() in the perlfunc man page.  you might want to scan through
the man page a couple of times to get an idea of what functions are
available. :)

-- 
brian d foy                              <URL:http://computerdog.com>                       
unsolicited commercial email is not appreciated


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

Date: 01 May 1997 19:10:51 -0700
From: Russ Allbery <rra@stanford.edu>
To: trs@azstarnet.com (Tim  Smith)
Subject: Re: quoting parens in m() expression
Message-Id: <qumpvvaoc7o.fsf@cyclone.stanford.edu>

[ Posted and mailed. ]

Tim Smith <trs@azstarnet.com> writes:

> ...but if I change the # field line to:

> 	(\([\s\w\\,]*\))?\s*		# field
                     ^
                     |

> I get the following error:

>         ([\w\\]+)\s+                    # tag
>         ([\w\\]+)\s*                    # keyword
>         (\([\s\w\\,]*))?\s*             # field
                      ^
                      |

Typo in your post, or is that the problem?

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>


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

Date: 2 May 1997 01:27:35 GMT
From: Steve Vanechanos <s..vanechanos@postoffice.worldnet.att.net>
Subject: Randal Teaching Open Enrollment Advanced Perl in NYC/NJ
Message-Id: <5kbfu7$mvt@mtinsc05.worldnet.att.net>

We are sponsoring an open enrollment, one day advanced perl course, taught 
by Randal Schwartz on May 15th.

Details at http://www.dynamicweb.com/perl_class.html

-- 
Steve Vanechanos, CEO                   http://www.dynamicweb.com
DynamicWeb Enterprises, Inc             Voice: 201-244-1000
271 Rt 46 West; Building F              Fax:   201-777-7428
Fairfield NJ 07004                      Email: stevev@dynamicweb.com




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

Date: 1 May 1997 18:00:49 -0700
From: zeadeATstanford.edu <spammers_suck@[127.0.0.1]>
Subject: Re: Remove HTML tags from docs????
Message-Id: <5kbec1$a9d@epic15.Stanford.EDU>

In comp.lang.perl.misc, Steven Young (steve@gamespot.com) blibbers...
> It sure would be nice if someone could post a script that removes IMG
> and TABLE tags from HTML docs.
> 

if you have lynx installed on your UNIX box, try:

  lynx -dump <your_html_file>

or check out HTML::Parser.  It's a perl module.  If you would like
some assistance in your code you may want to consider posting the code
you are having problems with.  You are just looking for assistance
right?  You aren't actually asking if people will write all this code
for you?  And not even offer any beer?  That would be kind of rude.


it sure would be nice to have some beer,
Micah
(note: lame-o spam block, reply to zeade...)
-- 
`which perl` -e 's;^;siC%by:n19%o>o2z4on19%`"t2z`fn3o.%.2o.z.2o.g4og.5o.g.;;\
s;$;4o.4%f%.2o.n`fP"Y2>bP"Y2>bz`fzd2>t%`"Y>%`Pz)2>bgfP"Y2>bn%p#f8%.oP"#n%p;;\
s;$;#p.o>%d>(z#n____`Y>bod>Pt%`Yf2">o%__n;;s;#;ppfz;g;s;p;fg;g;s;_;ofo%;g;;;\
s;z;2%;g;s;g;3%;g;s;f;3>;g;s;(\d+)(.);$2x$1;eg;y;t>%nC;\x278 \ng;;print;'


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

Date: 01 May 1997 19:08:41 -0700
From: Russ Allbery <rra@stanford.edu>
To: pcox@unix2.megsinet.net (Peter Cox)
Subject: Re: streaming encryption
Message-Id: <qumu3kmocba.fsf@cyclone.stanford.edu>


[ Posted and mailed. ]

Peter Cox <pcox@unix2.megsinet.net> writes:

> I'm looking for a routine to plug into a perl script that will do simple
> encryption of a data stream through a socket.  Does anyone know of a
> failry simple way of doing this?  The encryption only has to be one-way
> (from the client to the server).

The following modules are listed on the module list as being under
development:

DES            adcf  DES encryption (libdes)                      EAYNG
Des            adcf  DES encryption (libdes)                      MICB

Crypt::
::DES          a     DES encryption (libdes)                      GARY
::IDEA         a     International Data Encryption Algorithm      GARY
::PRSG         a     160 bit LFSR for pseudo random sequences     GARY

You may want to look for them in CPAN and/or contact

  EAYNG    Eric Young <eay@mincom.oz.au>
  GARY     Gary Howland <gary@systemics.com>
  MICB     Malcolm Beattie <mbeattie@sable.ox.ac.uk>

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>


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

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

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