[13517] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 927 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Sep 28 05:32:52 1999

Date: Tue, 28 Sep 1999 02:05:11 -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: <938509511-v9-i927@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Tue, 28 Sep 1999     Volume: 9 Number: 927

Today's topics:
    Re: $_ assignment <ask_for_my_address_if_you_need_it@earthlink.net>
    Re: $_ assignment (Danny Aldham)
    Re: a question of buttons (I.J. Garlick)
        array & textfield??! <hks3@usa.net>
    Re: array getting in the way of compilation <madebeer@igc.apc.org>
    Re: Determin IP address of client Browser (Martien Verbruggen)
    Re: Do you now an affordable Perl editor for Windows NT (Martien Verbruggen)
    Re: Do you now an affordable Perl editor for Windows NT (David H. Adler)
    Re: Do you now an affordable Perl editor for Windows NT <gellyfish@gellyfish.com>
        Expert question: wrapping a subroutine (Johan Vromans)
    Re: File Upload (Martien Verbruggen)
    Re: fork()? <gellyfish@gellyfish.com>
    Re: Help! How do I set a date field to empty via ODBC? <lparkh1@ix.netcom.com>
    Re: Help! How do I set a date field to empty via ODBC? <lparkh1@ix.netcom.com>
    Re: Help! How do I set a date field to empty via ODBC? <gellyfish@gellyfish.com>
    Re: Help! How do I set a date field to empty via ODBC? <gellyfish@gellyfish.com>
    Re: HELP: Perl CGI for network monitoring <madebeer@igc.apc.org>
    Re: HTML to ASCII (NOKUBI Takatsugu)
        looking for robust fast,scalable database engine for e- <goldberg@goldsoft.com>
        looking for robust fast,scalable database engine for e- <goldberg@goldsoft.com>
        OLE and csv files in Excel <Rui.Machado@nad.alcatel.pt>
        Please compare and contrast C and Perl. <neil@pacifier.com>
        Regex == Turing? (was remove the html tag in the file) <kbandes@home.com>
    Re: remove the html tag in the file (Ilya Zakharevich)
    Re: Replacement "CD" for win32 systems (Don Stokes)
    Re: Replacement "CD" for win32 systems <scottm25@bigfoot.com>
    Re: Sorting weird numeric data (I.J. Garlick)
        Stored encrypted messages in database <makky@hongkong.com>
        Undefined subroutine &Test::Harness::WCOREDUMP <dilsai@hotmail.com>
    Re: Win32::ODBC - problems accessing database on networ <wlkngowl@unix.asb.com>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Mon, 27 Sep 1999 19:43:14 -0700
From: Phil Doe <ask_for_my_address_if_you_need_it@earthlink.net>
Subject: Re: $_ assignment
Message-Id: <37F02B42.A74AF04E@earthlink.net>

I would do this:

#!/usr/bin/perl -w

## start variable
$domain = "some.domain.here";

## assign start variable value to end variable 
## perform operation on end variable
($domain_directory = $domain) =~ s/\./_/g;

print map {$n++; sprintf("$n -> %s\n", $_) } ($domain,
$domain_directory);



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

Date: 28 Sep 1999 04:44:31 GMT
From: danny@hendrix.postino.com (Danny Aldham)
Subject: Re: $_ assignment
Message-Id: <7sph3f$m22$1@hendrix.postino.com>

X-Newsreader: TIN [version 1.2 PL2]

Phil Doe (ask_for_my_address_if_you_need_it@earthlink.net) wrote:
: I would do this:

: #!/usr/bin/perl -w
: ## start variable
: $domain = "some.domain.here";
: ## assign start variable value to end variable 
: ## perform operation on end variable
: ($domain_directory = $domain) =~ s/\./_/g;

Thanks, I think. :-)

--
Danny Aldham     Providing Certified Internetworking Solutions to Business
www.postino.com  E-Mail, Web Servers, Mail Lists, Web Databases, SQL & Perl


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

Date: Tue, 28 Sep 1999 08:04:52 GMT
From: ijg@connect.org.uk (I.J. Garlick)
Subject: Re: a question of buttons
Message-Id: <FIrFs4.C40@csc.liv.ac.uk>

In article <37EF34E2.9448A457@desertigloo.com>,
"David P. Schwartz" <davids@desertigloo.com> writes:
> Gee, I'm truly sorry to distract so many of you experts from your efforts to come up
> with ever more complex and subtle "Just another Perl Hacker" scripts with such petty
> issues...

Bummer, in correct line wrapping length AND insluting one of the more
clued in around here.

Ah well I recon you will have been plonked.

> 

(Sorry I just gave to reformat these.)
> The HTML part is simple.  I don't have a question about that.  Ok?  Is
> that clear? If I put three buttons on an HTML form, with different names
> and values, what shows up in my Perl script when it runs is ...  three
> buttons with different names and values.  Duh.  So, which one was
> pressed?  I don't know where to find this.  I don't know if this is a
> Perl question or not.

It's still not a perl question because the answer is the same in any
language you care to use for this.

However I am in a fairly good mood and you obviously haven't gotten the
various clues that have been dropped so:-

It's very easy you name all the buttons in a form element the same. Then
you check the value of that name that was passed back. Since it's only
possible to press one button at a time on a form you can't get a
conflict. See it's HTML not Perl, not C, not Lisp..... you get the
picture?

-- 
Ian J. Garlick
ijg@csc.liv.ac.uk

The Consultant's Curse:
        When the customer has beaten upon you long enough, give him
what he asks for, instead of what he needs.  This is very strong
medicine, and is normally only required once.



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

Date: Tue, 28 Sep 1999 11:40:20 +0800
From: "HKS" <hks3@usa.net>
Subject: array & textfield??!
Message-Id: <37f03933.0@news.highway1.com.au>

hi,
   i had a hidden textfield in the form, and i want to print all elements in
the array which i created using perl(e.g @num = 1,2,3,4) to that textfield.
Is that a way to do it?


thx for help

HKS




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

Date: Mon, 27 Sep 1999 22:44:07 -0700 (PDT)
From: Michael de Beer <madebeer@igc.apc.org>
Subject: Re: array getting in the way of compilation
Message-Id: <APC&1'0'50775dcd'b07@igc.apc.org>

Shaun wrote:
>        @mlist = (@mlist, " $data[$k]")

Maybe you want
        push @mlist, " $data[$k]";

-Michael


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

Date: Tue, 28 Sep 1999 03:25:38 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Determin IP address of client Browser
Message-Id: <SyWH3.153$aN.4870@nsw.nnrp.telstra.net>

In article <MPG.125ad250870216e3989680@news.hutch.com.au>,
	derek@realware.com.au (Derek Lavine) writes:
> Hi all,
> 
> I have a situation where I would like to provide access to a site thus

This has nothing at all to do with perl. Please ask this quesiton in
one of the groups in comp.infosystems.www.*.

You should not be writing a script to do this, but you should
configure your web server to do this.

Martien
-- 
Martien Verbruggen                  | 
Interactive Media Division          | Never hire a poor lawyer. Never buy
Commercial Dynamics Pty. Ltd.       | from a rich salesperson.
NSW, Australia                      | 


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

Date: Tue, 28 Sep 1999 03:36:10 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Do you now an affordable Perl editor for Windows NT
Message-Id: <KIWH3.156$aN.4870@nsw.nnrp.telstra.net>

In article <37F02076.39489A35@underwear.peacecomputers.com>,
	fliptop <fliptop@underwear.peacecomputers.com> writes:
> 
> Eric Dubreuil wrote:
>> I just need cheap, freeware or chareware editor that could do code identing
>> and/or keywords coloring and stuff like that.  I'm looking for an editor that
>> would be just a little more programmer friendly that Wordpad...
> 
> homesite gets 5 cows on tucows.  you didn't mention how much was too
> much; it's $89.  30-day trial, too.

And how exactly does a HTML editor help anyone editing Perl code? I'd
say a pencil is more useful.

Martien
-- 
Martien Verbruggen                  | 
Interactive Media Division          | If at first you don't succeed, try
Commercial Dynamics Pty. Ltd.       | again. Then quit; there's no use being
NSW, Australia                      | a damn fool about it.


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

Date: 28 Sep 1999 06:51:37 GMT
From: dha@panix7.panix.com (David H. Adler)
Subject: Re: Do you now an affordable Perl editor for Windows NT
Message-Id: <slrn7v0pbj.js4.dha@panix7.panix.com>

In article <7SUH3.26804$FW3.27071@news21.bellglobal.com>, Eric Dubreuil wrote:
>Hi!
>
>I just installed Perl on my PC (Windows NT) and would like to get a nice
>editor to edit my Perl code. I looked at a few commercials ones but they
>are too expensive (and have way too many features for myt needs anyway).

Please go to http://www.perl.com/reference/query.cgi?section=editors
and do some reading before we go through this yet again, please.

Alternately, you could look on dejanews for this, as this thread comes
up about once a week.

good luck,

dha

-- 
David H. Adler - <dha@panix.com> - http://www.panix.com/~dha/
Beware of bugs in the above code; I have only proved it correct, not
tried it.
      - Donald Knuth


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

Date: 28 Sep 1999 10:01:41 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Do you now an affordable Perl editor for Windows NT
Message-Id: <37f083f5_1@newsread3.dircon.co.uk>

fliptop <fliptop@underwear.peacecomputers.com> wrote:
> 
> Eric Dubreuil wrote:
>> I just need cheap, freeware or chareware editor that could do code identing
>> and/or keywords coloring and stuff like that.  I'm looking for an editor that
>> would be just a little more programmer friendly that Wordpad...
> 
> homesite gets 5 cows on tucows.  you didn't mention how much was too
> much; it's $89.  30-day trial, too.
> 

I dont quite understand how this will help write programs in *any* language.

Please see <http://www.perl.com/reference/query.cgi?editors> for some
possible editors that may be of use.

/J\
-- 
"Nourishes at the root and penetrates right to the tip" - Pantene
Advertisement


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

Date: 28 Sep 1999 10:36:42 +0200
From: JVromans@Squirrel.nl (Johan Vromans)
Subject: Expert question: wrapping a subroutine
Message-Id: <wl3so3zo2jp.fsf@plume.nl.compuware.com>

A problem I recently encountered and haven't been able to solve yet...

I use a module, but I'd like to change one of its subroutines.
Basically, I want to redefine the subroutine (that's no problem) but
then call the original subroutine from the new one. This way I can
prepare subroutine parameters and manipulate the subroutine result
without the need to change the calls everywhere.

Hypothetical example:

  use File::Basename;

  sub File::Spec::catdir {
    my $p0 = "/var/tmp/" . shift;
    my $ret = original_File::Spec::catdir ($p0, @_);
    $ret =~ s|\\|/|g;
    $ret;
  }

It is no option to call it under a different name, since
File::Spec::catdir may be called from a lot of places, calls that are
beyond my control. And _all_ calls need to be affected.

I have the feeling that careful manipulation of the symbol tables
should make this possible, but I haven't been succesful until now. And
I refuse to accept that Perl cannot do this...

-- Johan



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

Date: Tue, 28 Sep 1999 03:26:53 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: File Upload
Message-Id: <1AWH3.154$aN.4870@nsw.nnrp.telstra.net>

In article <938484960.341318@news.tir.com>,
	"Bob Wilcox" <bwilcox@eudoramail.com> writes:
> Abigail wrote in message ...
>>Bob Wilcox (bwilcox@eudoramail.com) wrote on MMCCXI September MCMXCIII in
>><URL:news:937869758.672994@news.tir.com>:
>>[] Take a look at http://www.terminalp.com/scripts/
> 
>>You post a one-liner, Jeopardy style, quoting 94 lines, including
>>the sig? I would call you an idiot, but that would insult a lot
>>of idiots.
> 
> I wonder how many others have you in their kill file...as I now do...

Not that many, if they have any brains. Especially if they still want
to learn a few perl things.

Martien
-- 
Martien Verbruggen                  | 
Interactive Media Division          | Think of the average person. Half of
Commercial Dynamics Pty. Ltd.       | the people out there are dumber.
NSW, Australia                      | 


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

Date: 28 Sep 1999 09:18:52 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: fork()?
Message-Id: <37f079ec_1@newsread3.dircon.co.uk>

Yutung Liu <ytliu@cgi-factory.com> wrote:
> Can anyone explain what does the following tags do step by step?
> 
> $pid = fork();
> print "fork failed: $!" unless defined
> 
> $pid;
> if ($pid) {
> Print "the mails have been sent";
> exit();
>  }
> 
> else {
> close (STDOUT);
> 
> 

This doesnt even compile ...   

/J\
> --
> Your Sincerely,
> Yutung L.
> 
> 

-- 
"Long before anyone else had decriminalized homosexuality, Ireland had
a thriving gay community. Or the clergy as they prefer to be known" -
Kevin Hayes


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

Date: Mon, 27 Sep 1999 22:28:03 -0700
From: "Lin Parkh" <lparkh1@ix.netcom.com>
Subject: Re: Help! How do I set a date field to empty via ODBC?
Message-Id: <7spjks$akt@dfw-ixnews13.ix.netcom.com>

Jeez, cut me some slack. I assume comparing me to mrbog  (whatever or
whomever that is) is some kind of insult. I don't know as much as you and
I've found a few things in the past that seemed Perl idiomatic in
manipulating SQL. I've been on usenet for 15 years and I try to be
respectful. I read the FAQ for the group first, I searched on Deja, I read
the policies. I stated the problem as clearly as I could in the title line
to make it efficient for people. I gave a code sample. I did the best I
could (note that I crossposted to msaccess group, being unsure the origin of
the problem). Maybe sometimes people make honest mistakes, sorry to offend.
 In any case thanks to you and the earlier poster for your prompt replies,
    Lin


Jonathan Stowe <gellyfish@gellyfish.com> wrote in message
news:7som2l$ec4$1@gellyfish.btinternet.com...
> In comp.lang.perl.misc Lin Parkh <lparkh1@ix.netcom.com> wrote:
> > I'm using MS Access and wish to set a date field to empty (or null).
I've
> > done a lot of SQL/ODB/Perl so probably my basic syntax is correct. I can
> > also insert proper dates no problem.  The problem seems to be in how to
> > express a null insert value. I've tried the following variants:
> >
>
> <snip>
>
> You're not a mate of mrbog are you ?  This is purely an ms-access (or
> SQL depending on your point of view) question - the answer would be the
> same which ever language you were using the database from - that you are
> using Perl is immaterial to the SQL construct you need to use to perform
> an action upon the database.  It might seem picky to you but there is
> a good reason why Usenet groups are arranged in the hierarchical fashion.
>
> Anyhow standard SQL has a NULL keyword which would be appropriate in this
> circumstance - although of course Access might not implement it.
>
> /J\
> --
> Jonathan Stowe <jns@gellyfish.com>
> <http://www.gellyfish.com>
> Hastings: <URL:http://dmoz.org/Regional/UK/England/East_Sussex/Hastings>




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

Date: Mon, 27 Sep 1999 22:31:54 -0700
From: "Lin Parkh" <lparkh1@ix.netcom.com>
Subject: Re: Help! How do I set a date field to empty via ODBC?
Message-Id: <7spjs3$aoi@dfw-ixnews13.ix.netcom.com>

As an especial irony -- given your critique of me -- I just checked
comp.databases.ms-access (where I crossposted) and found no reply there as
opposed to here. Go figure.
Lin Parkh <lparkh1@ix.netcom.com> wrote in message
news:7spjks$akt@dfw-ixnews13.ix.netcom.com...
> Jeez, cut me some slack. I assume comparing me to mrbog  (whatever or
> whomever that is) is some kind of insult. I don't know as much as you and
> I've found a few things in the past that seemed Perl idiomatic in
> manipulating SQL. I've been on usenet for 15 years and I try to be
> respectful. I read the FAQ for the group first, I searched on Deja, I read
> the policies. I stated the problem as clearly as I could in the title line
> to make it efficient for people. I gave a code sample. I did the best I
> could (note that I crossposted to msaccess group, being unsure the origin
of
> the problem). Maybe sometimes people make honest mistakes, sorry to
offend.
>  In any case thanks to you and the earlier poster for your prompt replies,
>     Lin
>
>
> Jonathan Stowe <gellyfish@gellyfish.com> wrote in message
> news:7som2l$ec4$1@gellyfish.btinternet.com...
> > In comp.lang.perl.misc Lin Parkh <lparkh1@ix.netcom.com> wrote:
> > > I'm using MS Access and wish to set a date field to empty (or null).
> I've
> > > done a lot of SQL/ODB/Perl so probably my basic syntax is correct. I
can
> > > also insert proper dates no problem.  The problem seems to be in how
to
> > > express a null insert value. I've tried the following variants:
> > >
> >
> > <snip>
> >
> > You're not a mate of mrbog are you ?  This is purely an ms-access (or
> > SQL depending on your point of view) question - the answer would be the
> > same which ever language you were using the database from - that you are
> > using Perl is immaterial to the SQL construct you need to use to perform
> > an action upon the database.  It might seem picky to you but there is
> > a good reason why Usenet groups are arranged in the hierarchical
fashion.
> >
> > Anyhow standard SQL has a NULL keyword which would be appropriate in
this
> > circumstance - although of course Access might not implement it.
> >
> > /J\
> > --
> > Jonathan Stowe <jns@gellyfish.com>
> > <http://www.gellyfish.com>
> > Hastings: <URL:http://dmoz.org/Regional/UK/England/East_Sussex/Hastings>
>
>




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

Date: 28 Sep 1999 09:39:05 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Help! How do I set a date field to empty via ODBC?
Message-Id: <37f07ea9_1@newsread3.dircon.co.uk>

Lin Parkh <lparkh1@ix.netcom.com> wrote:
> Jeez, cut me some slack. I assume comparing me to mrbog  (whatever or
> whomever that is) is some kind of insult. 

More of an in-joke he was the last bloke who came along here insisting
that we should answer his SQL question - in fact the thread may well
be going on - I kill filed it long ago ...

>                                          I don't know as much as you and
> I've found a few things in the past that seemed Perl idiomatic in
> manipulating SQL. I've been on usenet for 15 years and I try to be
> respectful. I read the FAQ for the group first, I searched on Deja, I read
> the policies. I stated the problem as clearly as I could in the title line
> to make it efficient for people. I gave a code sample. I did the best I
> could (note that I crossposted to msaccess group, being unsure the origin of
> the problem). Maybe sometimes people make honest mistakes, sorry to offend.
>  In any case thanks to you and the earlier poster for your prompt replies,
> 

You havent offended anyone.  Its just that questions about SQL are better
off in the proper group - sure people here might know about it: some days it
seems that all I do is type SQL queries; but that could be said about a
vast swathe of computer related activities and then we might as well rename
this group as comp.everything and be done with it...

/J\
-- 
"Killing myself is the last thing I'd ever do" - Homer Simpson


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

Date: 28 Sep 1999 09:43:21 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Help! How do I set a date field to empty via ODBC?
Message-Id: <37f07fa9_1@newsread3.dircon.co.uk>

Lin Parkh <lparkh1@ix.netcom.com> wrote:
> As an especial irony -- given your critique of me -- 

Hey cool it - it wasnt a critique of *you* it was a critique of the mistaken
notion that this group should be a willing recipient of every question
however distantly related to Perl ...

>                                                        I just checked
> comp.databases.ms-access (where I crossposted) and found no reply there as
> opposed to here. Go figure.

Not surprised - most PoB dont even know what SQL is ...

/J\
-- 
"It's times like this I wish I had a penis" - Duckman


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

Date: Mon, 27 Sep 1999 21:12:25 -0700 (PDT)
From: Michael de Beer <madebeer@igc.apc.org>
Subject: Re: HELP: Perl CGI for network monitoring
Message-Id: <APC&1'0'50775dcc'319@igc.apc.org>

"where can I get a script"

www.freshmeat.net

-Mike


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

Date: Tue, 28 Sep 99 17:11:24 JST
From: knok@daionet.gr.jp (NOKUBI Takatsugu)
Subject: Re: HTML to ASCII
Message-Id: <7sptcs$99$2@daio.daionet.gr.jp>

>> Not perl, nor perfect but -
>> 
>> 	lynx -dump (?)

w3m is also good. It can handle table and frame.

$ w3m -dump [URI or filename]
or
$ w3m -F -dump [URI or filename] # render frame

<http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/>
-- 
NOKUBI Takatsugu
E-mail: knok@daionet.gr.jp


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

Date: Tue, 28 Sep 1999 05:53:44 GMT
From: "Bernie Goldberg" <goldberg@goldsoft.com>
Subject: looking for robust fast,scalable database engine for e-mail application
Message-Id: <IJYH3.8259$2k1.841539@news1.rdc2.on.home.com>

Can anyone direct me to a fast,scalable database engine for an e-mail
application.
Are there any cgi scripts which can be used to create a hotmail type
service?

Any help to




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

Date: Tue, 28 Sep 1999 05:56:38 GMT
From: "Bernie Goldberg" <goldberg@goldsoft.com>
Subject: looking for robust fast,scalable database engine for e-mail application
Message-Id: <qMYH3.8261$2k1.845089@news1.rdc2.on.home.com>

Can anyone direct me to a fast,scalable database engine for an e-mail
application.
Are there any cgi scripts which can be used to create a hotmail type
service?

Any help or guidance is greatly appreciated.

Bernie






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

Date: Mon, 27 Sep 1999 18:47:39 +0100
From: Rui Miguel Machado <Rui.Machado@nad.alcatel.pt>
Subject: OLE and csv files in Excel
Message-Id: <37EFADBB.C35973C7@nad.alcatel.pt>

I would like to know how to open a .csv file in Excel via OLE and Perl.
I manage to open regular .xls files but in this case I don't know how to
treat the file.

Thank you

-----------------------------------
Rui Miguel Vieira Machado
------------------------------------




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

Date: 27 Sep 1999 22:12:53 PST
From: Neil <neil@pacifier.com>
Subject: Please compare and contrast C and Perl.
Message-Id: <37f04e55.0@news.pacifier.com>

Please compare and contrast the two languages.

I am aware that Larry Wall wrote Perl in C.

Thanks

-- 

Neil


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

Date: Tue, 28 Sep 1999 05:30:55 GMT
From: Kenneth Bandes <kbandes@home.com>
Subject: Regex == Turing? (was remove the html tag in the file)
Message-Id: <37F052A3.2B1E4F69@home.com>

"Randal L. Schwartz" wrote:
> 
> >>>>> "Dan" == Dan Sugalski <dan@tuatha.sidhe.org> writes:
> 
> Dan> That'd be kinda tough at this point. Perl's regexes are Turing-complete,
> Dan> after all. (Anyone care to rewrite GCC as a regex? :)
> 
> I'm beginning to think that a "YACC-to-Perl" translator could possibly
> rewrite the entire YACC grammar and associated actions as a *single*
> regex using either 5.5 or perhaps 5.6 Perl.  The embedded (?{ ... })
> blocks would allow the actions.

Is this true?  Standard regular expressions (an alphabet together
with concatenation, alternation, and repetition) are definitely
not Turing-complete.  I.e. the set of languages described by
regular expressions are a proper subset of the languages
described by context-free grammars.

For example, this grammer:
<exp> ::= "x" | "(" <exp> ")"
i.e., the strings "x", "(x)", "((x))", etc.,
can't be matched by a standard regular expression.  A regexp is
equivalent to a Finite State Machine.  Having finite states,
it can't keep track of the (potentially infinite) nesting
levels of parentheses.  A pushdown automaton or a Turing Machine,
having respectively an infinite stack or tape, can manage this.

Now, I realize that Perl regexps have extensions, but as far as
I've been able to tell, none of them would enable a regex
to overcome this limitation and parse a context-free grammar,
even as simple as the one I've shown.  (Obviously, Perl can
easily handle this - I'm only talking about Perl regexps).

I've read perlre, perlop, Mastering Regular Expressions, The
Perl Cookbook, etc., and haven't found a way to do this.

I'll be delighted to be wrong about this - it would mean I
can use regexps for a whole class of problems for which I thought
them inadequate.  Am I?

Ken Bandes


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

Date: 28 Sep 1999 06:38:18 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: remove the html tag in the file
Message-Id: <7spnoq$h5p$1@charm.magnus.acs.ohio-state.edu>

[A complimentary Cc of this posting was sent to Randal L. Schwartz
<merlyn@stonehenge.com>],
who wrote in article <m1wvtchz1i.fsf@halfdome.holdit.com>:
> I'm beginning to think that a "YACC-to-Perl" translator could possibly
> rewrite the entire YACC grammar and associated actions as a *single*
> regex using either 5.5 or perhaps 5.6 Perl.  The embedded (?{ ... })
> blocks would allow the actions.

Making this possible is one of the design targets of REx engine.

Well, let us say "making it simple".  It is already very much possible
(modulo possible bugs, not many people use these facilities of REx engine).

Ilya


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

Date: 28 Sep 1999 05:04:07 GMT
From: don@news.daedalus.co.nz (Don Stokes)
Subject: Re: Replacement "CD" for win32 systems
Message-Id: <938531005.29834@shelley.paradise.net.nz>

In article <FPQH3.2170$J66.246047@typ11.nn.bcandid.com>,
Kragen Sitaker <kragen@dnaco.net> wrote:
>I believe MSDOS actually does let you spawn a program that will change
>your current directory, although I may be mistaken; I seem to remember

Well, it isn't a protected system, so any program can do anything it
likes to any other program, even if it isn't meant to.  It's not
terribly difficult to troll down the memory list until you find your
parent process's data structures...

-- don


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

Date: Tue, 28 Sep 1999 03:10:40 -0400
From: Scott <scottm25@bigfoot.com>
Subject: Re: Replacement "CD" for win32 systems
Message-Id: <280919990310403230%scottm25@bigfoot.com>

In article <7somft$ln3@dfw-ixnews5.ix.netcom.com>, Eric Bohlman
<ebohlman@netcom.com> wrote:

> In single-user MSDOS, the current directory is a property of the system's 
> state, rather than a process' state.  There were also programs that could 
> change a parent's environment (which *was* a process, rather than system, 
> property), but they depended on poking around with some undocumented 
> structures in the OS.
>
That would be the "List of lists" I believe. I think it was referred to
as SYSVARS or something like that. Time to dig up that copy of
Undocumented DOS. It's beside the bed. Hmm, a possible YKYBHTLW there:
"You know you've been hacking to long when Undocumented DOS makes good
bedtime reading".


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

Date: Tue, 28 Sep 1999 08:29:09 GMT
From: ijg@connect.org.uk (I.J. Garlick)
Subject: Re: Sorting weird numeric data
Message-Id: <FIrGwM.CKF@csc.liv.ac.uk>

In article <btanx082.fsf@edlo1.ab.wave.home.com>,
Mike Sosteric <mikes@athabascau.ca> writes:
> 
> 
> How can I sort strings like this
> 
> 1.1
> 1.1.1
> 1.1.2
> 1.2
> 1.3
> 
> so that I get
> 
> 1.1
> 1.1.1
> 1.1.2
> 1.2
> 1.3
> 
> and not 
> 
> 1.1
> 1.1.1
> 1.1.2
> 1.2
> 1.3

Hate to tell you this mike but they all look the same to me. So as to how
you make them assume a different order when sorting seems kind of moot.

Perhaps you meant to cut and paste different data?

Also, I really do think you should read the FAQ (probably perlfaq4) as I
can't believe sorting numbers like you want is not covered.

-- 
Ian J. Garlick
ijg@csc.liv.ac.uk

The Consultant's Curse:
        When the customer has beaten upon you long enough, give him
what he asks for, instead of what he needs.  This is very strong
medicine, and is normally only required once.



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

Date: Sun, 26 Sep 1999 23:33:23 -0700
From: KaYue Mak <makky@hongkong.com>
Subject: Stored encrypted messages in database
Message-Id: <37EF0FB3.538A3AF8@hongkong.com>

Hi, I am writing a perl script that can fetch mail from my POP account.
I just wonder if there a best way to encrypted the messages that will be
stored in db?  Thanks.



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

Date: 28 Sep 99 06:30:54 GMT
From: "Bharat" <dilsai@hotmail.com>
Subject: Undefined subroutine &Test::Harness::WCOREDUMP
Message-Id: <01bf097c$d4568d60$b1244fca@bharat.wlink.com.np>
Keywords: DBD, WCOREDUMP

I  trying to install DBD-Oracle-1.03 on 
Linux version 2.2.5-15 in Oracle 8.0.5. 

Compilation of DBD-Oracle-1.03 was sucessfull, however it is giving me
error on 'make test' shown below.

I have sucessfully installed DBI-1.13.

make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.00503/
i386-linux -I/usr/lib/perl5/5.00503 -e 'use Test::Harness qw(&runtests
$verbose)
; $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
t/general...........dubious
        Test returned status 0 (wstat 11, 0xb)
Undefined subroutine &Test::Harness::WCOREDUMP called at
/usr/lib/perl5/5.00503/
Test/Harness.pm line 288.
make: *** [test_dynamic] Error 255

I would be grateful if anyone can solve this problem in ealiest.
Thanking you,
Madhav 


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

Date: Mon, 27 Sep 1999 23:39:43 -0400
From: Robert Rothenburg <wlkngowl@unix.asb.com>
Subject: Re: Win32::ODBC - problems accessing database on network
Message-Id: <37F0387F.F282FE97@unix.asb.com>


Network drives are not mapped for anonymous users. Use UNC paths
instead.

JGM wrote:
> 
> Hi,
> 
> I'm having trouble accessing a database on a network drive using Win32::ODBC
> and perl for isapi:
> 
> - the query does work under two conditions
>     1) when run from the command prompt
>     2) if the database sits locally as opposed to on a mapped network
>          drive.
> 
> I've read the win32::ODBC faq and I think I've covered everything:
>     - the DSN is a system DSN
>     - the anonymous internet user has sufficient rights to the drive
>        containing the database
>     - the database is not exclusive
> 
> Any ideas?


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

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


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