[9785] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3378 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Aug 6 13:07:11 1998

Date: Thu, 6 Aug 98 10:01:33 -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, 6 Aug 1998     Volume: 8 Number: 3378

Today's topics:
        Looking for a library that sorts Kanji brobinson1@my-dejanews.com
        MLDBM tie failed dejanews@arcfan.demon.co.uk
        Newbie: changing system shell on NT Dana_Siler@transarc.com
    Re: Pattern matching <jdf@pobox.com>
    Re: perl 5.005: Binary Distribution for Win32? <tonylabb@infonline.net>
    Re: Perl Docs.. forget the original post <dmeyer9@email.msn.com>
    Re: Perl Docs.. forget the original post <tchrist@mox.perl.com>
        PERLDOC for Win32 ?? <maierc@chesco.com>
    Re: PERLDOC for Win32 ?? <jdf@pobox.com>
    Re: PERLDOC for Win32 ?? <maierc@chesco.com>
    Re: Premature end of script headers & Exec format error <elflord@pegasus.rutgers.edu>
        Search Engine <thomas@marathoncom.com>
    Re: Search Engine (Greg Bacon)
    Re: Teaching Perl <tchrist@mox.perl.com>
    Re: Teaching Perl (Peter Scott)
    Re: What's the future of Perl? (Andrew M. Langmead)
    Re: When is the "Perl Cookbook" coming out? dave@mag-sol.com
    Re: X-file (?=...), case postponed. <ldaffner@rsn.hp.com>
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

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

Date: Thu, 06 Aug 1998 16:06:45 GMT
From: brobinson1@my-dejanews.com
Subject: Looking for a library that sorts Kanji
Message-Id: <6qckal$pk1$1@nnrp1.dejanews.com>

Hi,

I sure hope this isnt in the FAQ because I could not find it. I am in need of
something to help me sort Kanji. I can think of a couple of ways to do it,
however if it is already out there why reinvent it.

Thanks in advance,
Bill Robinson

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Thu, 06 Aug 1998 14:58:41 GMT
From: dejanews@arcfan.demon.co.uk
Subject: MLDBM tie failed
Message-Id: <6qcgb1$kji$1@nnrp1.dejanews.com>

I am using MLDBM (with GDBM underneath) to provide me with a cheap
and "simple" database for my AIX based web application. I am
not too familiar with MLDBM as I have only been using it for a
few weeks but I am stuck with this problem:

MLDBM error: Second Level tie failed, "The file access permissions do not
allow the specified action." at <scriptname> line 40

Now my line 40 is a tie command

tie (%THESETDATA, MLDBM, $filename, &GDBM_WRCREAT,0640);

My problem is that I don't fully understand permissions. I need some pointers
to what I should be reading. The file permissions on the mldbm file (and
directory) are "a+rwx". I don't understand when I should be using
GDBM_whatever and when I should be using O_whatever (O_RD for example). Does
0640 play any part in this if the dbm file already exists and I am not
creating it?

Much appreciation in anticipation

Alex dot mclintock at rocketmail.com


-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Thu,  6 Aug 1998 11:43:25 -0400
From: Dana_Siler@transarc.com
Subject: Newbie: changing system shell on NT
Message-Id: <ApmQwRmSMV9F0=mkU0@transarc.com>

Using any version of Perl on Windows NT, I need to be able to have
system execute its commands in an sh shell. The version of perl also
needs to support the Process module for win32 as well (if not for this
constraint, I would be very happy to use mks perl).

In the Activeware port of perl, one can set the shell that system
executes its commands in by setting the ComSpec environment variable
to the desired shell. However, this mechanism automatically passes a
/c switch to the shell command, which sh.exe is incapable of dealing
with. 

Is there an environment/registry variable in the Guru port of perl for win32
that I can set to control the shell that system and backticks operate
in (the default seems to be cmd.exe)?
 
I've looked through all of the documentation and FAQ's, but I can't
seem to locate any information on how to change the Guru port's
default shell.

Thanks in advance.
Dana Siler


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

Date: 06 Aug 1998 11:51:11 -0500
From: Jonathan Feinberg <jdf@pobox.com>
To: David Gallone <dgl@offis.lu>
Subject: Re: Pattern matching
Message-Id: <d8aekq9s.fsf@mailhost.panix.com>

David Gallone <dgl@offis.lu> writes:

> $string =~ s/(?i)(IMG|INPUT)\s*([^>]*?)\s*(SRC)\s*=\s* ...etc
> 
> The option ?i is specified for IMG|INPUT or all the pattern?

The perlre document implies that the entire pattern is affected by the
embedded match ops.  Here's the section in question:

 (?imsx)   One or more embedded pattern-match modifiers. This is
           particularly useful for patterns that are specified in
           a table somewhere, some of which want to be case
           sensitive, and some of which don't. The case
           insensitive ones need to include merely `(?i)' at the
           front of the pattern. For example:

               $pattern = "foobar";
               if ( /$pattern/i )

               # more flexible:

               $pattern = "(?i)foobar";
               if ( /$pattern/ )

Here, the use of (?i) is given as semantically equivalent to /i.

-- 
Jonathan Feinberg   jdf@pobox.com   Sunny Brooklyn, NY
http://pobox.com/~jdf/


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

Date: Thu, 06 Aug 1998 12:29:26 -0400
From: Tony Labbiento <tonylabb@infonline.net>
Subject: Re: perl 5.005: Binary Distribution for Win32?
Message-Id: <35C9D9E6.89A3B72F@infonline.net>

I believe you can find one at http://www.activestate.com

Michael Schilli wrote:
> 
> Hi 5.005 gurus,
> 
> I understand 5.005 compiles well on Win32 - but since I don't have a C
> Compiler on my Windows box: is there a binary distribution for Win32?
> 
> Thanks,
> 
> -- Michael
> 
> ----------------------------------------------------------
>   Michael Schilli                 http://perlmeister.com
> ----------------------------------------------------------

-- 
			****************************************
			*    Tony Labbiento                    *
			*    Infinity Online, Inc.             *
			****************************************


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

Date: Thu, 6 Aug 1998 09:59:10 -0600
From: "David Meyer" <dmeyer9@email.msn.com>
Subject: Re: Perl Docs.. forget the original post
Message-Id: <Ob2xvNVw9GA.352@upnetnews03>

I have reviewed this newsgroup for years.... and never posted a question.
Why? Because they are really not very helpful.  It is nice... an unhelpful
news group.  Read the FAQ... they expect for people who are not specialists
in the
language to become one. It is funny listening to them speak among
themselves...
I wonder why Larry does not frequent... etc...etc.  Why? because  he taught
a group
of people to become specialists in a language but did not teach them
manners.  So
now we have a group of Monsters monitoring a news group.  Do you want some
good
advice?  Read the news group for information on to where to find
information.


David Meyer
Guerilla Software

Jaime Metcher wrote in message
<35C92381.11801B20@spider.herston.uq.edu.au>...
>Charles Maier wrote:
>>
><snip>
>> Sending <people> to the FAQ is a good idea... if only to inform them of
>> the resource. BUT... the FAQ is only really useful for "reading
>> material".. not research. Before I get flamed.. SURE you can search
>> it... but you gotta "know the question".
>>
><snip>
>
>Maybe it's something in the culture.  I've just spent a week with the
>Linux docs, and I've come up with this rule of thumb - you must *read*
>(not just scan) *every* piece of documentation on <insert task here> you
>can find *before* you start <task>.  That's just the way it is.  Of
>course, that's what the perl gurus have been saying all along.   It's
>difficult to hear coming from a different culture, but that doesn't make
>it wrong.
>
>It helps to understand that the people that write this documentation are
>*NOT* writing it for: quick gratification; casual users; ease of use;
>shallow understanding.  Essentially, they are writing it for themselves
>and people like them, as a way to express and share the depth and
>breadth of their knowledge.  They don't have "useability" departments
>doing random tests on Joe Average to see if he understands.  They don't
>care about that and there's no reason why they should.  (Anybody who
>feels unfairly, inaccurately or inappropiately spoken for, direct flames
>to usual...).
>
>--
>Jaime Metcher




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

Date: 6 Aug 1998 14:11:54 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl Docs.. forget the original post
Message-Id: <6qcdja$3hp$3@csnews.cs.colorado.edu>

 [courtesy cc of this posting sent to cited author via email]

In comp.lang.perl.misc, jdporter@min.net writes:
:> I'm sorry that this is a shock, but perl is a unix tool. 
:Ok. And it's a Windows tool; and a OS/2 tool, and a Mac tool, and
:a VMS tool...

If one were to run vi or emacs under OS/2, would that act ipso facto
make them `OS/2 tools'?  I'm not sure I agree.

--tom
-- 
Emacs is a fine operating system, but I still prefer UNIX. -me


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

Date: Wed, 05 Aug 1998 04:44:10 -0400
From: Charles Maier <maierc@chesco.com>
Subject: PERLDOC for Win32 ??
Message-Id: <35C81B5A.A504ACC6@chesco.com>

Is there no perdoc executable for the Win32 port of Perl??

-- 
Chuck Maier
CDM Consulting Services
http://www.cdmcon.com


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

Date: 06 Aug 1998 11:55:52 -0500
From: Jonathan Feinberg <jdf@pobox.com>
To: maierc@chesco.com
Subject: Re: PERLDOC for Win32 ??
Message-Id: <90l2kq1z.fsf@mailhost.panix.com>

Charles Maier <maierc@chesco.com> writes:

> Is there no perdoc executable for the Win32 port of Perl??

GSAR's binary distribution of 5.004_02 does indeed come with a working
perldoc.  5.005 builds on Win32 boxen, and also includes a working
perldoc.

-- 
Jonathan Feinberg   jdf@pobox.com   Sunny Brooklyn, NY
http://pobox.com/~jdf/


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

Date: Wed, 05 Aug 1998 05:08:37 -0400
From: Charles Maier <maierc@chesco.com>
Subject: Re: PERLDOC for Win32 ??
Message-Id: <35C82115.B368904D@chesco.com>

Perhaps I should have mentioned:

My     'perl -v' shows:


	Win32 port Copyright (c) 1995-1996 Microsoft Corporation.
		All rights reserved.
	Developed by ActiveWare Internet Corp., http://www.ActiveWare.com

Perl for Win32 Build 316 - Built 09:44:44 Mar 13 1998

This is perl, version 5.003_07


-- 
Chuck Maier
CDM Consulting Services
http://www.cdmcon.com
(610) 942-2726


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

Date: Thu, 06 Aug 1998 12:49:04 -0400
From: Donovan Rebbechi <elflord@pegasus.rutgers.edu>
Subject: Re: Premature end of script headers & Exec format error
Message-Id: <35C9DE80.E7CA4C1C@pegasus.rutgers.edu>

Jim Fairbrother wrote:
> 
> Can anyone help me - I am getting errors on this code trying to put a
> picture
> in the HTML output from a Perl program on a Linux machine:

[ snip ]

# Notify FairBrothers

if that's really the first line of your program, it's a poor choice.
Try  something like this:

#!/usr/bin/perl

IOW, the webserver has no way of knowing it's a perl program unless you
tell it so.

cheers,
-- 
Donovan Rebbechi <elflord@pegasus.rutgers.edu>
http://pegasus.rutgers.edu/~elflord/
Web designer for Independence -- Linux for the Masses
http://independence.dunadan.com/


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

Date: Thu, 6 Aug 1998 12:13:30 -0400
From: "Thomas Barnwell" <thomas@marathoncom.com>
Subject: Search Engine
Message-Id: <6qckq3$h3h$1@camel29.mindspring.com>

Does any know a good meta search script? Preferably one that returns results
to a new document and dosen't just forward you to the other search engine's
pages.

-Thomas





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

Date: 6 Aug 1998 16:57:26 GMT
From: gbacon@cs.uah.edu (Greg Bacon)
Subject: Re: Search Engine
Message-Id: <6qcn9m$15f$9@info.uah.edu>

In article <6qckq3$h3h$1@camel29.mindspring.com>,
	"Thomas Barnwell" <thomas@marathoncom.com> writes:
: Does any know a good meta search script? Preferably one that returns results
: to a new document and dosen't just forward you to the other search engine's
: pages.

This is usually against the terms of use of most search engines.

Greg
-- 
A Freudian slip is when you say one thing when you're thinking about a mother. 
    -- Cliff Clavin


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

Date: 6 Aug 1998 14:08:08 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Teaching Perl
Message-Id: <6qcdc8$3hp$2@csnews.cs.colorado.edu>

 [courtesy cc of this posting sent to cited author via email]

In comp.lang.perl.misc, jdporter@min.net writes:
:While regex is important, and should be touched on,
:But references are essential, since without them
:you can't have perl's powerful complex data structures,
:let alone its object-oriented capabilities.

I think a reasonable argument could be made the other way:
that more people need data munging, massaging, and verifying
than those who need complex data structures or OOOP.

--tom
-- 
An elephant is a mouse with an Microsoft operating system


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

Date: 6 Aug 1998 16:05:09 GMT
From: psj@euclid.jpl.nasa.gov (Peter Scott)
Subject: Re: Teaching Perl
Message-Id: <6qck7l$dma@netline.jpl.nasa.gov>

In article <6qbcj8$5a3$1@rand.dimensional.com>, Daniel Grisinger <dgris@rand.dimensional.com> writes:
> "Matthew O. Persico" <mpersico@erols.com> wrote:
> >I think the question begs:
> >
> >Why? Does your boss expect the attendees to be able to use Perl at that
> >point? I hope not.
> 
> She expects them to at least be able to puzzle their way through
> my code while they get up to speed. 

Then I would spend as much time as necessary in the course teaching
them *how to learn* Perl, since IMHO no-one who "[has] no knowledge of Perl
at all" is going to learn enough in one day to decipher someone else's
code if that code uses references.  They may be able to muddle through,
but more important is that they have the tools to get up to speed, so
get them each the Camel and Llama, go over perldoc and web interfaces 
(preferably hands-on) to same in detail so they can find the answers to 
their questions after the course as rapidly as possible. 

-- 
This is news.  This is your      |  Peter Scott, NASA/JPL/Caltech
brain on news.  Any questions?   |  (psj@euclid.jpl.nasa.gov)

Disclaimer:  These comments are the personal opinions of the author, and 
have not been adopted, authorized, ratified, or approved by JPL.


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

Date: Thu, 6 Aug 1998 16:38:31 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: What's the future of Perl?
Message-Id: <ExA0w7.LAJ@world.std.com>

ilya@math.ohio-state.edu (Ilya Zakharevich) writes:

>[A complimentary Cc of this posting was sent to Andrew M. Langmead
><aml@world.std.com>],
>who wrote in article <Ewz16M.GLn@world.std.com>:
>No.  The memory image of the script is constructed during runtime, not
>during compile time.  I have no idea why, but maybe C compilers are
>not able to construct a typical graph with 100K nodes in read-only
>memory.

Even though the C output of the perl compiler does put its
pre-computed data in the initialized data area, (as opposed to a
constant initialized data area) and it does modify that data, that
doesn't mean that it can't be shared between processes. If an OS
combines demand paging with copy on write, it could make the
initialized data area shared until written to. (In which it would then
copy the page and then write to its private un-shared copy) And the
perl_init function created by the compiler doesn't seem to touch _all_
of the initialized data that the compiler creates.

>> But then you have to weigh in other factors. If you build perl to use
>> a shared library for the interpreter, you then get more memory shared
>> between simultaneous invocations of different perl programs.

>Executables are shared too, thus this argument is void.

Here I was talking about a shared perl library for compiled
scripts. If you have different scripts compiled into an executable
sharing the same perl library and run one invokation of the each
executable, you have one copy of the shared library. If you have
different scripts compiled into executables each linked to a static
perl library, then you have one copy of the library in each
executable. (And if you have N different scripts running
simultaneously, you have N copies of the code in memory)
-- 
Andrew Langmead


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

Date: Thu, 06 Aug 1998 16:04:20 GMT
From: dave@mag-sol.com
Subject: Re: When is the "Perl Cookbook" coming out?
Message-Id: <6qck63$p8c$1@nnrp1.dejanews.com>

In article <pudge-0608980841530001@192.168.0.3>,
  pudge@pobox.com (Chris Nandor) wrote:
> In article <35C8C075.3719B8F9@hotmail.com>, Digital Puer
> <digital_puer@hotmail.com> wrote:
>
> # Does anyone know when O'Reilly is going to release "The Perl Cookbook"?
> # I would like to order this interesting book from bookpool or amazon
> # sometime soon.
>
> It is coming out within the next week or so, in time for The Perl
> Conference, and is already available for purchase (backorder purchase, of
> course) through Amazon.

It's also available to order from O'Reilly <http://www.ora.com> but when I
ordered ti from there last week they told me that it wouldn't ship until the
end of December.

Do ORA fulfill Amazon's orders before their own?

Dave...

--
dave@mag-sol.com
London Perl M[ou]ngers: <http://www.mag-sol.com/London.pm/>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: 06 Aug 1998 10:56:58 -0500
From: Larry Daffner <ldaffner@rsn.hp.com>
Subject: Re: X-file (?=...), case postponed.
Message-Id: <f5on29im7cl.fsf@rsn.hp.com>

>>>>> "FQ" == F Quednau <quednauf@nortel.co.uk> writes:

  FQ> Abigail wrote:
  >>
  >> F.Quednau (quednauf@nortel.co.uk) wrote lots of stuff...

  >> You lost it in the first step. /(?=(.*))/ does *NOT* mean zero or
  >> more characters.

  FQ> ..and..

  FQ> ++ What stops the whole thing ever matching the whole
  FQ> ++ sentence for doing a split?

  FQ> That's explained very clearly in the documentation related to
  FQ> split.


  FQ> I'll put this to the X-files. Unexplained mysteries. Don't
  FQ> worry, one day I'll have enough knowledge to read the
  FQ> documentation in a way you do, because I can't see that! And .*
  FQ> doesn't match zero or more characters? Aaanyway, I might have to
  FQ> get 'mastering regular expressions' after all.

 .* matches 0 or more characters, (?=(.*)) doesn't. Think of the (?=)
construct as saying "I'm not really matching anything, I'm just taking 
a peek to see what's next". So the actual matching part is everything
between the // except for the (?=(.*)) construct ;).

And once you've got that, it should be relatively easy to find the
corresponding case in the split docs.

-Larry (Speaking for myself, not HP)

-- 
| Larry Daffner - Software Engineer | email: ldaffner@rsn.hp.com        |
|      Hewlett Packard RSSL         | #include <disclamer.h>            |
    Good, Fast, Cheap: Pick any two (You can't have all 3)
      - Networking Truth #7a, rfc 1925, R. Callon, ed.


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

Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>


Administrivia:

Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.

If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu. 


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

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