[10188] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3781 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Sep 21 23:07:32 1998

Date: Mon, 21 Sep 98 20:00:18 -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           Mon, 21 Sep 1998     Volume: 8 Number: 3781

Today's topics:
        cat reese > /dev/null (was Re: Perl & Java - difference <uri@sysarch.com>
    Re: Could someone help me with this code!!! the__kernel@my-dejanews.com
    Re: even/odd numbers (Leslie Mikesell)
    Re: find a file across subdirectories and then change i the__kernel@my-dejanews.com
    Re: Help with perl hashes of hashes and arrays of hashe (David Formosa)
    Re: I need a script writen, can someone help me please (Martien Verbruggen)
    Re: Interesting method technique: Default $self (Kevin Reid)
    Re: JAPH: how does this .sig work? <rra@stanford.edu>
    Re: Perl & Java - differences and uses <borg@imaginary.com>
    Re: Perl & Java - differences and uses (Abigail)
    Re: Perl & Java - differences and uses <zenin@bawdycaste.org>
    Re: Perl & Java - differences and uses <013639s@dragon.acadiau.ca>
    Re: Perl & Java - differences and uses <retnuh@pixar.com>
    Re: Perl & Java - differences and uses <eashton@bbnplanet.com>
    Re: Perl: Right Tool for the Job? (Tom McGee)
    Re: Perl: Right Tool for the Job? <eashton@bbnplanet.com>
        Question from newbie, Executing DOS commands from PERL <dcjones3@earthlink.com>
        Question, How compile my source? (9ZA>:9)
    Re: Question, How compile my source? <eashton@bbnplanet.com>
    Re: Search for special characters? (Martien Verbruggen)
    Re: where is Date::Parse (CPAN.pm)? (Leslie Mikesell)
    Re: where is Date::Parse? (Mike Stok)
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

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

Date: 21 Sep 1998 22:22:22 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: cat reese > /dev/null (was Re: Perl & Java - differences and uses)
Message-Id: <x790jcx4wx.fsf_-_@sysarch.com>


>>>>> "JP" == John Porter <jdporter@min.net> writes:

john,

it is good to have us both on the side of good and not evil!

this reese is a loony and we should drop the thread. zealots can't think
logically. he has proven his lack of understanding of the word algorithm
many times.

  JP> George Reese wrote:
  >>  In comp.lang.java.programmer Uri Guttman <uri@sysarch.com> wrote:
  >> :>>>>> "GR" == George Reese <borg@imaginary.com> writes: : another
  >> reason not to hire you.
  >> 
  >> I did not know I asked you for a job.

  JP> Um, he said "would not", not "will not".

corectamundo!

  >> : if it is an algorithm and it works it : can be programmed. it may
  >> be a pig but on a turing compatible system it : can be done.
  >> 
  >> If it is an algorithm, a computer can be programmed to do it IN
  >> PRINCIPLE.  There are a lot of things computers can do in principle
  >> that they cannot yet do in fact.

  JP> The principle is all that matters.

he doesn't know about turing machines either. probably learned to
program at night school. the fact that a book of his sold well is
irrelevant. dummies books sell well.

  >> : in fact algorithms are not usually descibed in english but in
  >> pseudo : code or some formal language. these can easily be
  >> converted to working : code by your drones.
  >> 
  >> Uh, bullshit.  Algorithms are described in all sorts of ways.
  >> Daniel Dennett has a wonderful book called "Darwin's Dangerous
  >> Idea" that talks all about the idea of evolution as an algorithm.
  >> I would love to see that formulated in pseudo code.

  JP> Algorithms are usually described in pseudocode or some formal
  JP> language.  Fact.

  JP> Does the word "usually" confuse you?

i am sure it does confuse him. if it is not in python, he can't parse it.

  >> OO is about isolating all risks.

  JP> Glad to hear you say that, because now I know for sure that you
  JP> don't know what you're talking about, even in the subject area
  JP> most dear to you.

to sumarize, reese has no sense of humor, no sense of programming
history, no knowledge of turing machines and turing computability, a
narrow view of allowable syntax and semantics, a zealotic view on the
right way to do anything, in short, not a good candidate for perl.

so let's dump him and his posts into /dev/null where they belong. my
sides are hurting too much laughing at him.

i am out of this thread until i catch my breath.

uri

-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
Perl Hacker for Hire  ----------------------  Perl, Internet, UNIX Consulting
uri@sysarch.com  ------------------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


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

Date: Tue, 22 Sep 1998 01:30:03 GMT
From: the__kernel@my-dejanews.com
Subject: Re: Could someone help me with this code!!!
Message-Id: <6u6uiq$b90$1@nnrp1.dejanews.com>

Whoa...  That's a little vague Kris...

What exactly is wrong?  Does it say "file contains no data"?  Does it do
nothing?  Does it load the wrong thing?

I assume that you have tried it without the checkbox stuff, just to make sure
that the bare basics work, right?

In article <3605DBF4.69463257@users.qual.net>,
  Kris Bernardic <krisb@users.qual.net> wrote:
> I'm having a helluva time trying to figure out what is wrong with this
> script (why the server is giving me an error).  I've bolded below where
> I think the problem is.  How this script works is a user enters a login
> name (name=logi) and a password (name=pass) and if everything checkout
> on the 'password.file' they are transported to a page either
> member_index.html or member_low_graphics.html.  I have a checkbox setup
> that the user checks if they want the low graphic page (as opposed to
> the graphic intensive default page).  The checkbox is (name=version
> value=1).  So I'm not sure if I have the elseif part right, or what.
> Any help would be greatly appreciated because I've spent quite awhile on
> this to no avail.
>
> Kris

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


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

Date: 21 Sep 1998 21:46:57 -0500
From: les@MCS.COM (Leslie Mikesell)
Subject: Re: even/odd numbers
Message-Id: <6u7331$c96$1@Venus.mcs.net>

In article <slrn70bop9.8io.sholden@pgrad.cs.usyd.edu.au>,
Sam Holden <sholden@pgrad.cs.usyd.edu.au> wrote:
>On 21 Sep 1998 00:20:11 -0500, Leslie Mikesell <les@MCS.COM> wrote:
>>In article <1dfo978.z9u47r1kmwglfN@roxboro0-058.dyn.interpath.net>,
>>>
>>>"modulus" is of course the easiest and most straightforward way of
>>>finding out, but it's hardly the only (although the most obvious way
>>>would much simplier if perl had a div command like pascal).
>>
>>No, no...
>> printf "Number $n is %s\n", $n & 1 ? "odd":"even" ;
>>is much easier and more straightforward, not to mention obvious.
>
>Only if you know that numbers are stored in binary. And no what & does which
>is a lot less straightforward then the % and / solutions. In fact my
>favourite was Tom Christiansen's $r=$n/2;$r=~/\.5$/... or words to that
>effect.

The mind boggles at someone writing a computer program without
knowing that it works in binary or what the most basic binary
operations are.  Times change, I guess.

  Les Mikesell
    les@mcs.com


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

Date: Tue, 22 Sep 1998 01:25:15 GMT
From: the__kernel@my-dejanews.com
Subject: Re: find a file across subdirectories and then change it
Message-Id: <6u6u9t$atv$1@nnrp1.dejanews.com>


> need to find files in across a large number of sub-directories that meet a
> specific criteria and then make a small change to them.  Currently this is
> being done by hand by support staff.  I know that File::find will do this but
> I could really really use a small example that would set me on the right
> path. If anyone could find it in their heart to provide me with an example
> that could get me started I would very much appreciate it.  TIA

Sounds like a combination of "grep" and "awk".	Perl would probably be
overkill, depending on the file changes you need to do.

I would start by making a program called "rgrep <file>" that searches through
a directory (I used C-Shell).  If it finds the file that it was looking for,
do what you wish.  If it finds a directory, recursively call "rgrep <file>"
on that directory.

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


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

Date: 22 Sep 1998 10:14:09 +1000
From: dformosa@zeta.org.au (David Formosa)
Subject: Re: Help with perl hashes of hashes and arrays of hashes etc
Message-Id: <6u6q4h$r27$1@godzilla.zeta.org.au>

In <3606CFFA.2B9DA321@email.sps.mot.com> Tk Soh <r28629@email.sps.mot.com> writes:

>Brent Perschbacher wrote:

[...]

>>  for $i (0 .. $#database){

>beware that Perl actually create temporory array [0,1,2,..,$#database], which
>may burt a lot of memory and hence slow down you system performance.

Perl5.0005 has fixxed this bug.



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

Date: Tue, 22 Sep 1998 02:17:12 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: I need a script writen, can someone help me please
Message-Id: <IMDN1.51$q76.212885@nsw.nnrp.telstra.net>

In article <36072233.11357840@news.bigpond.com>,
	guruchoc@bigpond.com (Gareth Hall) writes:
> It was just a freebie, no great brain power in this one, it's about 1k
> when finished, I have 90% of it done, just needs tweaking. 
> 
> I didn't realise this was a pay me to write your script newsgroup,
> obviously I was mistaken, sorry.

Has nothing to do with the newsgroup. People who are good at
programming have acquired those skills over a long time. Now that they
are good at it, they are working on all kinds of things, to make
money, so that they can eat pizza and drink jolt. They probably have
no time to read all the articles in newsgroups to find the possibile
post that will provide them with the honour to take time out of their
busy schedules so that they can write software for someone else.

Advertising that there is 'no great brain power in this one' will most
likely not exactly get you the best programmers out here running to
your doorstep, beggin to have a go at it. More likely these people
will tell you to go away and try it yourself.

Many people here are good programmers, if not excellent ones. They
hang out here to spread some of their wisdom. They are not here
because they have nothing better to do that write braindead pieces of
code.

Martien
-- 
Martien Verbruggen                  | 
Webmaster www.tradingpost.com.au    | I'm just very selective about what I
Commercial Dynamics Pty. Ltd.       | accept as reality - Calvin
NSW, Australia                      | 


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

Date: Mon, 21 Sep 1998 22:12:10 -0400
From: kpreid@ibm.net (Kevin Reid)
Subject: Re: Interesting method technique: Default $self
Message-Id: <1dfq56h.11pc2tzd7zelqN@slip166-72-108-34.ny.us.ibm.net>

Mark-Jason Dominus <mjd@Op.Net> wrote:

> >  } else {
> >    return $DObj = $something->new;
> >  }
> 
> This defeats the purpose of having DObj at all.  Maybe you meant to
> write this:
> 
>       return $DObj || $DObj = $something->new;

Oops.

-- 
  Kevin Reid.      |         Macintosh.
   "I'm me."       |      Think different.


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

Date: 21 Sep 1998 19:30:59 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: JAPH: how does this .sig work?
Message-Id: <yln27sev4s.fsf@windlord.stanford.edu>

Tramm Hudson <tbhudso@panther.cs.sandia.gov> writes:

> Just to keep the conversation going, here are two of my entries for the
> japh "contest":

[snip]

Well, most people have seen my standard entry, but here's another one I
got from a friend (Betty Lee <bettylee@stanford.edu>) some time back:

echo 23d15c:19d22c:16d27c2b.:13d13c9v6cb5vb:11d12c4vS,2d.S3v3cb2vd/4vb:9d12c7v\
S2sS5vcb2v./6vb:8d9c9v9cvb12vb:7d25cvb15vb:6d24c,8b4vd:5d36c5d,vbd:4d36c6d2,d:\
3d5cv14cv17c5d,2d:2d4cb2,v9cb4,v8cv6c:,4cb5,v5cb7,v6cb,v3cb:3cb8,v2cb11,v3cb3,\
vcb3,:b12,b15,b6,b6, | perl -pe 'y/cd: /@ \n\0/, s/(\d+)(.)/$2x$1/eg, s/b/v,/g'

It's not particularly obfuscated, which in this particular case makes it
even cooler to me.  It's sort of like a Perl drawing program.  :)

-- 
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
 00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print


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

Date: Tue, 22 Sep 1998 00:13:41 GMT
From: George Reese <borg@imaginary.com>
Subject: Re: Perl & Java - differences and uses
Message-Id: <VYBN1.1255$Ge.3888613@ptah.visi.com>

In comp.lang.java.programmer David Formosa <dformosa@zeta.org.au> wrote:
: In <opyN1.1207$Ge.3737871@ptah.visi.com> George Reese <borg@imaginary.com> writes:

: [...]

:>That there
:>be no primitives in an OO environment is a silly construct of
:>misguided Smalltalk developers, not of anyone who is familiar with
:>what OO is at heart

: Did you just say that smalltalk developers are not familiar with what OO
: is at heart?  Next thing your going to tell me is that Wruth dosn't 
: understand structured programing.

You are displaying a baffling lack of reasoning skills.  Let me put it
very simply for you.

First, that I say 'That there be no primitives in an OO environment is
a silly construct of misguided smalltalk developers' states that there
is some subset of smalltalk developers who are misguided and that it
is these people who are the cheerleaders of OO as having no primitives.

Thus, you cannot possibly get from my statement to assigning me the
belief that smalltalk developers are not familiar with what OO is at
heart.

Secondly, programming is a small piece of the OO puzzle.  It is a huge
misunderstanding of people who are new to OO or who have heard things
about OO to look at a language and see it as defining what OO is.

OO has nothing to do with programming languages.  Programming
languages are tools used to implement OO systems.  OO languages are
generally the best languages for implementing OO systems since they
more naturally reflect the paradigm of the logical system.

An OO system is identified by the following characteristics:
inheritance, data encapsulation, polymorphism, and data abstraction.

Whether a given programming languages has primitives or not is not
related to any of these concepts.

-- 
George Reese (borg@imaginary.com)       http://www.imaginary.com/~borg
PGP Key: http://www.imaginary.com/servlet/Finger?user=borg&verbose=yes
   "Keep Ted Turner and his goddamned Crayolas away from my movie."
			    -Orson Welles


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

Date: 22 Sep 1998 00:39:26 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Perl & Java - differences and uses
Message-Id: <6u6rju$bbt$1@client3.news.psi.net>

Elaine -HappyFunBall- Ashton (eashton@bbnplanet.com) wrote on MDCCCXLVII
September MCMXCIII in <URL: news:3606DEB9.AF573BA8@bbnplanet.com>:
++ Abigail wrote:
++ 
++ <--snip age old rant-on -->
++ 
++ > How do you think the Egyptians build their pyramids 4000 years ago?
++ > Every peasant was a top notch pyramid builder?
++ 
++ Slaves, sadistic slave drivers, a well defined plan, a protocol and the
++ belief that the pharoh was divinity incarnate. Possibly more inspiring
++ than any of modern programming. Then again, my boss brought in a bull
++ whip the other day.


It's believed the Egyptians did not use slaves for building pyramids.

But a well defined plan and a protocol are part of the answer.


Abigail
-- 
perl -weprint\<\<EOT\; -eJust -eanother -ePerl -eHacker -eEOT


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

Date: 22 Sep 98 00:48:01 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Perl & Java - differences and uses
Message-Id: <906425568.616328@thrush.omix.com>

bjohnsto_usa_net@my-dejanews.com wrote:
	>snip<
: Python is also implemented on top a Java Virtual Machine with, I presume, no
: C,

	Who told you such lies?  Python's core is completely in C.

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


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

Date: Mon, 21 Sep 1998 22:23:51 -0300
From: Kevin Swan <013639s@dragon.acadiau.ca>
Subject: Re: Perl & Java - differences and uses
Message-Id: <3606FC27.9E5FC08F@dragon.acadiau.ca>

bjohnsto_usa_net@my-dejanews.com wrote:
> 
> I suggest that an algorithm is a step by step explaination of how to achieve a
> goal where each step is unambiguous to the entity that performs the task.

I would say they are both algorithms.  My procedure when writing
a program is to start with a very high level algorithm, in
pseudocode:

1. Get a number from the user.
2. Display the square of the number.

Then, add more and more detail, until you get code that will compile.
The fewer steps inbetween this high-level pseudocode and something
that will compile, the better suited the language is for the
application:

1. Display a dialog to the user, containing a textual message
   requesting them to input a value.
2. Calculate the square of the value the user input.
3. Display a dialog containing the resulting value.

 ...

| value |
value := Dialog request: 'Enter a value to square:' initialAnswer: '0'.
Dialog warn: 'Result is ', value asNumber squared printString.

Kevin.


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

Date: Tue, 22 Sep 1998 02:07:22 GMT
From: Hunter Kelly <retnuh@pixar.com>
Subject: Re: Perl & Java - differences and uses
Message-Id: <yvtpvco7vdx.fsf@corona.pixar.com>

The following message is a courtesy copy of an article
that has been posted to comp.lang.perl.misc,comp.lang.java.programmer as well.

Zenin <zenin@bawdycaste.org> writes:

> bjohnsto_usa_net@my-dejanews.com wrote:
> 	>snip<
> : Python is also implemented on top a Java Virtual Machine with, I presume, no
> : C,
> 
> 	Who told you such lies?  Python's core is completely in C.

No lie, there is an implementation of Python written in 100% Java
(certified, even!).  Check out (if you actually have any interest in
learning something)

http://www.python.org/jpython

Kudos to Jim Hugunin on a great Job!


> -- 
> -Zenin (zenin@archive.rhps.org)     


Hunter Kelly


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

Date: Tue, 22 Sep 1998 02:30:27 GMT
From: Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com>
Subject: Re: Perl & Java - differences and uses
Message-Id: <3607095A.9D00B7FF@bbnplanet.com>

Abigail wrote:

> It's believed the Egyptians did not use slaves for building pyramids.
> But a well defined plan and a protocol are part of the answer.

Depends on if you know a few Egyptians or not, or if you read a certain
somewhat religious tome. I don't know if I would carry a 2 ton brick for
fun if I wan't forced to...also remember Moses...the parting of the Red
Sea...of course I digress here. But a plan and a protocol are essential
to any programming language/project. Language here isn't important,
implementation is, which seems to have been missed by most.

e.


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

Date: Tue, 22 Sep 1998 01:21:06 GMT
From: tamcgee@home.com (Tom McGee)
Subject: Re: Perl: Right Tool for the Job?
Message-Id: <tamcgee-2109982122550001@cc1017583-a.union1.nj.home.com>

I use perl to search about 1000 documents at a time, some much bigger than
8K. The processing time is trivial. If you're searching an index, it
should be insignificant.

Why not benchmark a quick script that opens everything and scans it,
before you do a production version?

--Tom

In article <3607c164.24684806@nntp2.ba.best.com>, rick@marinweb.com wrote:

>>Hi all,
>>
>>I need to write indexing and search scripts for a set of xml
>>documents.  It needs to handle at least 20k documents, about 8k in
>>size, on average.  I'm wondering if I should use Perl and the
>>following general approach:
>>
>>The index would be a DB style hash.  Each pair would have the word as
>>the key, and the identifiers of the documents containing the word in
>>it's value.  Searching would, obviously, check the hash for a list of
>>all the documents with that word.
>>
>>Pretty straight forward.  But I'm wondering if it will scale up to the
>>quantity of documents I need to handle.  It's accessed via cgi, so it
>>can't take 45 seconds to run.  (Indexing can be done on a regular
>>basis in the background, so speed isn't as important there.)
>>
>>So, am I crazy thinking of trying to do this with a Perl script?
>>
>>Rick
>>
>>M a r i n W e b
>>
>>Marin's Home on the World Wide Web
>>http://www.marinweb.com/
>>
>>98 Main Street #453
>>Tiburon CA 94920
>>415-458-3201


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

Date: Tue, 22 Sep 1998 01:57:43 GMT
From: Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com>
Subject: Re: Perl: Right Tool for the Job?
Message-Id: <360701AD.807EA467@bbnplanet.com>

Tom McGee wrote:
> 
> I use perl to search about 1000 documents at a time, some much bigger than
> 8K. The processing time is trivial. If you're searching an index, it
> should be insignificant.
> 
> Why not benchmark a quick script that opens everything and scans it,
> before you do a production version?

Oh, blech, what are you writing, FrontPage for Unix? Puhleeez. The
bottleneck will be both the IO and whatever the user/DBA is tring to
accomplish. My guess is that Perl will not be the point of optimisation.
The system will be. Well, ok, for the hardcore geeks out there, it could
be the code, but since the user in question supplied none, I'll give him
the benefit of the doubt.

No need to open every doc, but optimise. Perl is wonderful for CGI's
depending on how you are doing it and what you are trying to accomplish.
Post a real problem and we might have some insight.

e.

"All of us, all of us, all of us trying to save our immortal souls, some
ways seemingly more round-about and mysterious than others. We're having
a good time here. But hope all will be revealed soon."  R. Carver


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

Date: Mon, 21 Sep 1998 21:01:38 -0500
From: "djones" <dcjones3@earthlink.com>
Subject: Question from newbie, Executing DOS commands from PERL
Message-Id: <6u70e8$et2$1@holly.prod.itd.earthlink.net>

I'm trying to delete the contents of a directory.

This is what I have tried:

$delete = "command /C del *.* /Q";
$i=1;

        if($i=1)  {
            chdir "c:\anydir";
            system $delete;
            }


Thank you in advance,

Dan




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

Date: Tue, 22 Sep 1998 11:17:20 +0900
From: "Park, Jong-Pork  (9ZA>:9)" <oksarang@sarang.net>
Subject: Question, How compile my source?
Message-Id: <6u71h9$3gp$1@news.kornet.nm.kr>

Hi.

I use 5.005_02 Windows versions of perl. How can I compile my source?
Where I can get compiler?

I used alpha-3 compiler on unix machine. It was successed. But I can't
use my EXE file for cgi.





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

Date: Tue, 22 Sep 1998 02:23:49 GMT
From: Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com>
Subject: Re: Question, How compile my source?
Message-Id: <360707CD.A93F5D81@bbnplanet.com>

> I use 5.005_02 Windows versions of perl. How can I compile my source?
> Where I can get compiler?
> 
> I used alpha-3 compiler on unix machine. It was successed. But I can't
> use my EXE file for cgi.

For .exe? on Unix? What are you smoking? Last time I checked .exe wasn't
a file type for unix. Maybe you need to check your mime-types on your
windoze machine? Maybe you need to read the README?

e.


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

Date: Tue, 22 Sep 1998 02:19:08 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Search for special characters?
Message-Id: <wODN1.52$q76.212885@nsw.nnrp.telstra.net>

In article <6u5hj6$jmh$1@scoop.suba.com>,
	"yakuza" <yakuza@qni.com> writes:

> 1.  I need to allow the users to search for special characters such as a
> "$".  How do I allow the search without requiring the user to type in the
> escape character?

# perldoc -f quotemeta
# perldoc perlre
(look for \Q and \E)

Martien
-- 
Martien Verbruggen                  | 
Webmaster www.tradingpost.com.au    | We are born naked, wet and hungry. Then
Commercial Dynamics Pty. Ltd.       | things get worse.
NSW, Australia                      | 


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

Date: 21 Sep 1998 21:43:41 -0500
From: les@MCS.COM (Leslie Mikesell)
Subject: Re: where is Date::Parse (CPAN.pm)?
Message-Id: <6u72st$c71$1@Venus.mcs.net>

In article <EzMKAq.86z@news.muni.cz>,
Honza Pazdziora <adelton@fi.muni.cz> wrote:
>On 20 Sep 1998 14:27:53 -0500, Leslie Mikesell <les@MCS.COM> wrote:
>
>>  o There should be an easy way to jump to interactive mode after the
>>    source is expanded in the build directory to handle cases where
>>    you need special options or testing before installing.
>
>You mean look module?

Yes, I knew it should be in there somewhere, thanks.

  Les Mikesell
    les@mcs.com


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

Date: 22 Sep 1998 00:52:01 GMT
From: mike@mike.stok.co.uk (Mike Stok)
Subject: Re: where is Date::Parse?
Message-Id: <6u6sbh$on1@news-central.tiac.net>

In article <6u6lsi$7dg$1@client3.news.psi.net>,
Abigail <abigail@fnx.com> wrote:

>*ponder*
>
>What functionality is in CPAN you can't get with "ftp", "tar", "zcat",
>"less", "make", and basic reading skills?

Convenience, in the same way that perl is more convenient than a bucket
load of other utilities.

If you don't like CPAN then don't use it.  It seems that quite a few
people do like it and I'm sure constructive criticism funnelled to the
author might lead to improvements in CPAN's function.

Mike
-- 
mike@stok.co.uk                    |           The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/       |   PGP fingerprint FE 56 4D 7D 42 1A 4A 9C
http://www.tiac.net/users/stok/    |                   65 F3 3F 1D 27 22 B7 41
stok@colltech.com                  |            Collective Technologies (work)


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

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

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