[7433] in Perl-Users-Digest
Perl-Users Digest, Issue: 1058 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Sep 22 13:17:18 1997
Date: Mon, 22 Sep 97 10:00:46 -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, 22 Sep 1997 Volume: 8 Number: 1058
Today's topics:
Re: Calculating the week number (Gabor Egressy)
Re: CGI-DOS/ Win & Foxpro database? <e_bachmann@geocities.com>
Re: Change /etc/passwd (Jeremy D. Zawodny)
GDBM: Incompatable between Perl and C?? (neal)
Re: GDBM: Incompatable between Perl and C?? (Paul Marquess)
Re: handling a non-terminating system() call <dankogai@dan.co.jp>
Re: inetd STDIN still open? <rootbeer@teleport.com>
Re: Moving installations across machines <tonylabb@infonline.net>
Re: NEWBIE question (Andrew M. Langmead)
NNTP question... (Brian DeRosa)
NT IIS help <myleslawrence@email.msn.com>
Re: Perl <=> C Server <ghowland@hotlava.com>
Re: Perl to Java Compiler? (Scott McMahan)
Perl, NT, and relational databases <strangie@mailbox.uq.edu.au>
Problem of Perl in FrontPage shgbrc@online.sh.cn
Re: Problem of Perl in FrontPage (Jeremy D. Zawodny)
Re: Problem of Perl in FrontPage (brian d foy)
Re: Problems with variables as subs? <rootbeer@teleport.com>
Re: Reg Exp Question (Bart Lateur)
Regular expression matching (Dilip Barman)
Re: Regular expression matching <eike.grote@theo.phy.uni-bayreuth.de>
Statistics for comp.lang.perl.misc <gbacon@cs.uah.edu>
System call (David Siebert)
Re: System call (Jeremy D. Zawodny)
Re: Using the stat function <rootbeer@teleport.com>
Re: WANT:fast word search in big sorted text file (Bart Lateur)
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 21 Sep 1997 12:44:11 GMT
From: gabor@vinyl.quickweb.com (Gabor Egressy)
Subject: Re: Calculating the week number
Message-Id: <6034qr$7ak$1@flint.sentex.net>
Dan Kogai (dankogai@dan.co.jp) wrote:
: Bjorn wrote:
: >
: > I need a piece of code for calculating the current week. I checked the
: > perl FAQ, but the formula there doesn't work (unless you're on a year
: > that starts with monday and don't care about the last week being
: > correct). Any help would be greatly appreciated...
: $thisweek = (localtime())[6];
That is not what the poster had asked for!
--
#define NULL 0 /* silly thing is, we don't even use this */
-- Larry Wall in perl.c from the perl source code
Randal Schwartz vs. Intel http://www.rahul.net/jeffrey/ovs
------------------------------
Date: Mon, 22 Sep 1997 14:02:12 +0200
From: Erik Bachmann <e_bachmann@geocities.com>
To: Stephen Wingreen <wingreen@scfn.thpl.lib.fl.us>
Subject: Re: CGI-DOS/ Win & Foxpro database?
Message-Id: <34265E44.BC4188FA@geocities.com>
This is a multi-part message in MIME format.
--------------BE6C624DF9EC783247C24612
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Stephen Wingreen wrote:
> Does anybody out there have a script to search a database, specifically
> FoxPro 2.5, using the CGI of Win-httpd? Any help will be appreciated.
>
Check out:
Pereira, Pratap
Xbase.pm v. 1.07 : a module for perl 5
Author Source: http://www.best.com/~pereira
Author Address: pereira@best.com
--
---------------------------------------------------------------------
Erik Bachmann, Grydehoejvej 62, DK-4000 Roskilde, Denmark, Europe
\\\\\///// _ ______
_\ __ __ /_ _| |_ (_)::(_)Voice.:
| ||_*||*_|| | | | | |_ |____| (+45) 46789899
|_/ _/\_ \_| | | | | | ____
/ |____| \ _ | | | | | | #| E-mail:
/' /||\ '\ | \_| | | | | |____| e_bachmann@geocites.com
//\____/\\ \ \ | ______
///||||\\\ \_ | /_Home_\ Clickety [CLICK] Software
Hello world! \______/ |____|
http://www.geocities.com/SiliconValley/Pines/2563
---------------------------------------------------------------------
--------------BE6C624DF9EC783247C24612
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Bachmann, Erik
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Bachmann, Erik
n: Bachmann;Erik
org: Clickety Click Software
adr: Grydehxjvej 62;;;;;DK-4000 Roskilde;Denmark
email;internet: e_bachmann@geocities.com
tel;work: (+45) 46 78 98 99
note: <IMG SRC = " http://www.geocities.com/SiliconValley/Pines/2563/bac-100.jpg">
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
end: vcard
--------------BE6C624DF9EC783247C24612--
------------------------------
Date: Mon, 22 Sep 1997 13:41:13 GMT
From: zawodny@hou.moc.com (Jeremy D. Zawodny)
Subject: Re: Change /etc/passwd
Message-Id: <3426755f.519410362@igate.hst.moc.com>
[cc'd automagically to original author]
On Sat, 20 Sep 1997 07:26:16 GMT, ddurand@hpplus16.cern.ch
(Jean-Damien Durand) wrote:
>
>> >Is there any perl function or routine that can send the password
>> >parameters (user, old password, new password) to the passwd command?
>>
>> The simplest way to do this from a language perspective is to use expect
>> see http://expect.nist.gov.
>
> The HTTPD module (available at CPAN) is easy to use, also.
You're suggesting that one use the HTTPD module to change Unix system
passwords? I must have missed something...
Jeremy
------------------------------
Date: 22 Sep 1997 12:26:48 GMT
From: neal@toby.valinet.com (neal)
Subject: GDBM: Incompatable between Perl and C??
Message-Id: <605o68$7n4@ns.valinet.com>
Here is a strange problem:
I have a C database utility which uses GDBM files. I am now writing a
simple Perl utility to set keys in the GDBM.
This is what I am doing in Perl:
use GDBM_File;
tie (%DB,GDBM_File,"$myfile",GDBM_WRCREAT,0700)
$val1 = "myval";
$DB{"$val1/test"} = "my value";
So that is basically what I'm doing. I don't untie the db, but that
shouldn't matter. Here's my problem: When I am accessing the GDBM thru
my C program, the above Perl program will produce a value such as:
myval/testsr = my valueO2
Or something like that. It ties on these random strings to the name value
pair.
Any ideas?
Thanks.
------------------------------
Date: 22 Sep 1997 13:46:28 GMT
From: pmarquess@bfsec.bt.co.uk (Paul Marquess)
Subject: Re: GDBM: Incompatable between Perl and C??
Message-Id: <605srk$j56$1@pheidippides.axion.bt.co.uk>
neal (neal@toby.valinet.com) wrote:
: Here is a strange problem:
: I have a C database utility which uses GDBM files. I am now writing a
: simple Perl utility to set keys in the GDBM.
: This is what I am doing in Perl:
: use GDBM_File;
: tie (%DB,GDBM_File,"$myfile",GDBM_WRCREAT,0700)
: $val1 = "myval";
: $DB{"$val1/test"} = "my value";
: So that is basically what I'm doing. I don't untie the db, but that
: shouldn't matter. Here's my problem: When I am accessing the GDBM thru
: my C program, the above Perl program will produce a value such as:
: myval/testsr = my valueO2
: Or something like that. It ties on these random strings to the name value
: pair.
C assumes strings are terminated with NULLs, Perl doesn't.
Paul
------------------------------
Date: Mon, 22 Sep 1997 22:51:57 +0900
From: Dan Kogai <dankogai@dan.co.jp>
Subject: Re: handling a non-terminating system() call
Message-Id: <342677BC.6195D79C@dan.co.jp>
Bill Wilson wrote:
> I'm trying to automate a dailup ppp session
> from a perl script. I'm using system() to execute
> the ppp chat session, but since chat doesn't
> terminate, I can't get back into the original
> perl script....
You can exec() and/or fork().
Also note that most implementations of pppd(8) these days handle
by itself so you might not have to start pppd on the back of the
Camel.
http://www.freebsd.org/handbook/handbook173.html convers how to
set up ppp (both via ppp(1) and pppd(8)) in details. Written for
FreeBSD but works for most Un*xen.
Dan the Camel Abuser
------------------------------
Date: Mon, 22 Sep 1997 07:04:45 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Goesta von Stebut <Goesta@von.Stebut.org>
Subject: Re: inetd STDIN still open?
Message-Id: <Pine.GSO.3.96.970922070423.24984G-100000@usertest.teleport.com>
On Sun, 21 Sep 1997, Goesta von Stebut wrote:
> I have a problem with testing, if the
> STDIN handle is still open. The script is called
> by the inetd and I don't know how to test the
> connection without reading by $foo=<STDIN>.
You may be wanting the four-argument form of select. Hope this helps!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
Ask me about Perl trainings!
------------------------------
Date: Mon, 22 Sep 1997 09:24:13 -0400
From: Tony Labbiento <tonylabb@infonline.net>
Subject: Re: Moving installations across machines
Message-Id: <3426717D.B1989678@infonline.net>
This is a cryptographically signed message in MIME format.
--------------ms2AB67719476F9EA95B156E33
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Chris Schoenfeld wrote:
> I have a Perl 5.004_03 installation that lives under one directory:
> /home/perl/perldev/perl5.004_03/
> This is the root for the install.
>
> I tarred up this directory and ftp'd it to another machine, and untarred
> it. The machines are both PPro 200's running Red Hat Linux.
>
> It seems to work OK, but of course the Perl configuration still thinks
> the machine has the same name as the build machine.
>
> How do I change this, and are there any other issues I need to address?
>
> Thansk
> Chris
You need to reconfigure your PERL build script and re-compile the PERl
source using the build script.
--
****************************************
* Tony Labbiento *
* Infinity Online, Inc. *
****************************************
--------------ms2AB67719476F9EA95B156E33
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIIRbQYJKoZIhvcNAQcCoIIRXjCCEVoCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
D2UwggqvMIIKGKADAgECAhB6h0vRx+CTFUsiPCAFqCPIMA0GCSqGSIb3DQEBBAUAMGIxETAP
BgNVBAcTCEludGVybmV0MRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE0MDIGA1UECxMrVmVy
aVNpZ24gQ2xhc3MgMSBDQSAtIEluZGl2aWR1YWwgU3Vic2NyaWJlcjAeFw05NzA1MTYwMDAw
MDBaFw05NzExMTUyMzU5NTlaMIIBEjERMA8GA1UEBxMISW50ZXJuZXQxFzAVBgNVBAoTDlZl
cmlTaWduLCBJbmMuMTQwMgYDVQQLEytWZXJpU2lnbiBDbGFzcyAxIENBIC0gSW5kaXZpZHVh
bCBTdWJzY3JpYmVyMUYwRAYDVQQLEz13d3cudmVyaXNpZ24uY29tL3JlcG9zaXRvcnkvQ1BT
IEluY29ycC4gYnkgUmVmLixMSU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cNAQEBBQAEgYAhuFN3+qksOxZraP6i/HzSMB1P1b1wPoKJrCpdF+W0JmRFIMnE
AxBtRO+XSG5N32m7xfR635+MHxk+VP51y848HLBXTDtnT4bktOkBX/xoFKKiZIYUT+q6Hx8+
UuzBKFwRWUk1E2igc/WG+e5sdoodjYdW5ngeV9Bm5FXED7twBg==
--------------ms2AB67719476F9EA95B156E33--
------------------------------
Date: Mon, 22 Sep 1997 14:06:32 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: NEWBIE question
Message-Id: <EGwxux.6Hr@world.std.com>
Michael Gleibman <mgleibma@study.haifa.ac.il> writes:
>I am trying to write some script that will use telnet to connect to
>VMS machine and send a couple of commands there (no hack:-).
>When I do open (name, "| telnet host") and then print name "smth", it
>doesn't passes anything to telnet session. Can anyone point me to a
>mistake, please?
On most systems, "telnet" reads commands from the controlling
terminal, not standard input.
In perl, I guess you could use the Net::Telnet module (although that
looks like it requires you to learn about the telnet protocol.) or use
"Comm.pl" (which will open a pseudo terminal for the telnet command to
connect to.)
--
Andrew Langmead
------------------------------
Date: 21 Sep 1997 20:46:59 GMT
From: deroREMOVE_THIS_LARGE_TEXT_PLEASEsbr@cig.mot.com (Brian DeRosa)
Subject: NNTP question...
Message-Id: <604143$qrv$1@trotsky.cig.mot.com>
Hello,
I've been working on a script that parses through selected newsgroups
retrieving Subjects that I later parse and retrieve. However, this all seems
to be done fairly inefficiently.
The basic gist of what my "get subject code" does is this:
open news-server;
set current newsgroup to be the group from my data file;
retrieve the first and last available article numbers;
for all articles since the last time I read articles (or the last 3000,
whichever is a smaller number)
{
foreach line in header
{
if (line =~ /subject/i)
{
save the article number and subject to a file
}
}
}
close output file;
Now, I'm running Perl 5.004 on a Win95 based system at home over a 28.8
connection. This script runs in a DOS window, but seems to take a very long
time to retrieve the desired information from, say, 2000 articles. Netscape
does the same subject retrieval in a fraction of the time.
I have a similar script that, given the news group and article numbers,
retrieves the body of the articles and saves them in incremented files.
I suspect that a large part of my processessing time is taken up in the
"looking for Subject" lines or something along that line. Is there a way to
get the subject lines and article numbers (or some other sort of article
identifyer) in a more efficient/timely manner? Same question except relate it
to the body of the article.
Thanks
Brian
--
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Brian De Rosa OFFICE PHONE: +1-847-632-3803
Software Engineer (Motorola) OFFICE FAX: +1-847-435-9636
Arlington Heights, IL E-MAIL: derosbr@cig.mot.com
IL27-3205
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"We accept arguments as a drunken man leans against a lamppost...
for support, not illumination."
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
------------------------------
Date: Mon, 22 Sep 1997 07:03:16 -0700
From: "Myles Lawrence" <myleslawrence@email.msn.com>
Subject: NT IIS help
Message-Id: <ebbvo#1x8GA.212@upnetnews02.moswest.msn.net>
I installed perl5 on an NT 4 server. The installation created a key with
the value perllS.dll instead of perl.exe %s %s. Neither seems to work for
me. When I execute the script fron the HTML page, the browser tries to
download the pl. file??
Can someone straghten me out?
Myles Lawrence
------------------------------
Date: Mon, 22 Sep 1997 10:37:35 +0200
From: Gary Howland <ghowland@hotlava.com>
To: gmui@jpmorgan.com
Subject: Re: Perl <=> C Server
Message-Id: <34262E4F.4BDE@hotlava.com>
Gary Mui wrote:
>
> Is it possible to have a perl program talk to a server written
> in C that reads and writes normal C structures (as opposed
> to parseable text)?
Sure it us. Use 'pack'. I've used it to talk RPC, SNMP, NFS
and dozens of other things. Check out modules like Net::DNS,
along with some of the stuff at http://www.hotlava.com/software/
Gary
------------------------------
Date: 22 Sep 1997 11:55:33 GMT
From: scott@lighthouse.softbase.com (Scott McMahan)
Subject: Re: Perl to Java Compiler?
Message-Id: <605mbl$9sv$2@mainsrv.main.nc.us>
Piet Barber (pietb@nic.mil) wrote:
: I'm surprised I haven't seen more discussion about this...
I'm not sure what the Perl to Java compiler is supposed to accomplish.
It seems to me to trade off the good aspects of interpreted (such as
easy to change and run source programs) for all the bad things we
associate with interpreted (big, bulky, slow runtime system).
The only case I can see where the Perl to Java compiler would be useful
is if you wanted to distribute platform- independent code in non-source
format. A lot of people apparently want this.
Scott
------------------------------
Date: 22 Sep 1997 07:02:47 GMT
From: "Robert L'Estange" <strangie@mailbox.uq.edu.au>
Subject: Perl, NT, and relational databases
Message-Id: <01bcc725$edcd3fa0$3e0b6682@rob.s.computer>
Hi
I'm currently running a bunch of CGI scripts on NT. The CGI scripts are
written in Visual Basic and are used primarily to store and retrieve
information to and from an Access database. Upon deciding to learn to
write CGI scripts with Perl (so that I wasn't tied to NT with my VB), I
thought I might start my Perl education by rewriting some of my VB CGI in
Perl. I took my first look at some Perl literature today ("Learning Perl"
I think it was called, written by the Perl author) and Perl looks very easy
to learn and use; particularly with the help of CGI.pm. The one thing I
couldn't find info on however was how to interact with relational databases
like Access.
My question: Can Perl be used on NT to store data to and retrieve data from
an Access database with the use of SQL queries (or any other method I
guess)?
Thanks
Rob
PS. Off-topic but... are there any relational database products that can
be used on UNIX?
------------------------------
Date: Mon, 22 Sep 1997 06:51:40 -0600
From: shgbrc@online.sh.cn
Subject: Problem of Perl in FrontPage
Message-Id: <874928077.11478@dejanews.com>
I installed MS FrontPage2.0 and perl5 in my computer, and want to make a
test of CGI script in Perl. A test.pl contains just one line: print
"hello, world\n", I define the test.pl the action of a push button in a
form, when I open the HTML file contains the form, and click the button,
nothing happened, and the installed Perl5 have subdirectories like "bin"
and "lib", the FrontPage web have a subdirectory of "cgi-bin". I am
confused, I don't know where to put the perl.exe, or, the perl
intergrater and support libraries? How to make the browser know the place
where Perl lives? How to embed the Perl script in FrontPage2.0 and make
it work? Please give me a hand, e-mail to me. Thanks in advance.
Hunt
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
------------------------------
Date: Mon, 22 Sep 1997 13:54:09 GMT
From: zawodny@hou.moc.com (Jeremy D. Zawodny)
Subject: Re: Problem of Perl in FrontPage
Message-Id: <342777df.520050012@igate.hst.moc.com>
[cc'd automagically to original author]
On Mon, 22 Sep 1997 06:51:40 -0600, shgbrc@online.sh.cn wrote:
This looks interesting...
>I installed MS FrontPage2.0 and perl5 in my computer, and want to make a
>test of CGI script in Perl.
Let me cut you off there. You need a web server to run CGI scripts.
CGI is an acronym for Common Gateway Interface--the mechanism my which
web servers can launch external programs and pass data to them.
Once you have a web server installed (or one on the network which you
can use), the file associate for .pl -> perl.exe needs to be setup. If
you're using ActiveState's Perl for Win32, this happened automatically
when you installed it (assuming you answered yes to that question).
Good Luck,
Jeremy
--
Jeremy Zawodny
Internet Technology Group
Information Technology Services
Marathon Oil Company, Findlay Ohio
http://www.marathon.com/
Unless explicitly stated, these are my opinions only--not those of my employer.
------------------------------
Date: Mon, 22 Sep 1997 10:41:09 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: Problem of Perl in FrontPage
Message-Id: <comdog-ya02408000R2209971041090001@news.panix.com>
In article <342777df.520050012@igate.hst.moc.com>, zawodny@hou.moc.com (Jeremy D. Zawodny) wrote:
>On Mon, 22 Sep 1997 06:51:40 -0600, shgbrc@online.sh.cn wrote:
>>I installed MS FrontPage2.0 and perl5 in my computer, and want to make a
>>test of CGI script in Perl.
>
>Let me cut you off there. You need a web server to run CGI scripts.
>CGI is an acronym for Common Gateway Interface--the mechanism my which
>web servers can launch external programs and pass data to them.
that's strange - i run CGI scripts without a web server all the time.
remember it's the Common Gateway Interface - not what is on either
side of that interface (remember that CGI.pm allows one to run CGI
scripts without a web server, not to mention various stress-testers
that pretend to be web servers). perhaps you should have said "I need
a web server..." :)
--
brian d foy <comdog@computerdog.com>
NY.pm - New York Perl M((o|u)ngers|aniacs)* <URL:http://ny.pm.org/>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
------------------------------
Date: Mon, 22 Sep 1997 07:15:25 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: "Andrew M. Langmead" <aml@world.std.com>
Subject: Re: Problems with variables as subs?
Message-Id: <Pine.GSO.3.96.970922071215.24984J-100000@usertest.teleport.com>
On Mon, 22 Sep 1997, Andrew M. Langmead wrote:
> morpheus@no-spam.calweb.com (Steve Lamb) writes:
> > The only problem I can see, and will avoid, is that somewhere
> > it is possible to call a sub which is not defined.
>
> Thats one advantage of the hard reference approach. If you have a hard
> reference to the sub, the sub does indeed exist.
This turns out not to be the case.
$ref = \&nowhere;
print "I've got a reference to an undefined sub!\n" if $ref;
&$ref; # Fails at runtime, after giving the message
> Another thing to point out, is you can use the expresson
> "defined(&$subname)" in a conditional expression to test if the
> subroutine exists.
That's the real way to tell whether the sub is defined. Hope this helps!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
Ask me about Perl trainings!
------------------------------
Date: Mon, 22 Sep 1997 13:35:48 GMT
From: bart.mediamind@tornado.be (Bart Lateur)
Subject: Re: Reg Exp Question
Message-Id: <34277259.15241248@news.tornado.be>
bart.mediamind@tornado.be (Bart Lateur) wrote:
>while(s/<LI>(...)</LI>//) {}
>
>The (...) should match anything that doesn't contain any "<LI>" or
>"</LI>". Only, I have no clue how to put that into one regexp. Any
>takers?
No replies so far. I think maybe this would work, although I think it is
not really straightforward.
while(s/(.*)<LI>(.*?)<\/LI>/$1/i) {}
$2 will not contain any "<LI>", because $1 slurps up as much as
possible, and neither any "</LI>", because $2 is matched in a non-greedy
manner.
Bart.
------------------------------
Date: 22 Sep 1997 01:41:39 -0400
From: barman@watt.cs.unc.edu (Dilip Barman)
Subject: Regular expression matching
Message-Id: <xm1202hnbvw.fsf@watt.cs.unc.edu>
Hi -
I have a simple matching question. I have a string that
looks like:
*$[value1]$**$[value2]$* ... *$[valueN]$*
where N is known and =5. I find the regular expression
statements, while powerful, still cryptic. I put together
a sample program to pull out one such value (I need to
get all of them), and get a strange error as below. Suggestions
anybody? Thanks.
Dilip
MY SAMPLE PROGRAM
#!/usr/local/bin/perl
$d1 = "\*\$\["; $d2 = "\]\$\*";
$x = "\*\$\[value1\]\$\*\*\$\[value2\]\$\*";
$_ = $x;
print "d1 is \"$d1\" and ";
print "d2 is \"$d2\".";
print "\nSource string is \"$x\".\n";
/$d1(.*)$d2/;
THE OUTPUT
d1 is "*$[" and d2 is "]$*".
Source string is "*$[value1]$**$[value2]$*".
/*$[(.*)]$*/: ?+*{} follows nothing in regexp at try.pl line 11.
barman on watt [62] %
print "1st match is $1 and 2nd is $2\n";
--
Dilip Barman, Dept. of Computer Science
University of North Carolina, CB 3175
Chapel Hill, North Carolina 27599
(919)962-1821, Fax -1799; barman@cs.unc.edu http://www.cs.unc.edu/~barman
------------------------------
Date: Mon, 22 Sep 1997 09:22:03 +0200
From: Eike Grote <eike.grote@theo.phy.uni-bayreuth.de>
Subject: Re: Regular expression matching
Message-Id: <34261C9B.167E@theo.phy.uni-bayreuth.de>
Hi,
Dilip Barman wrote:
>
> I have a simple matching question. I have a string that
> looks like:
>
> *$[value1]$**$[value2]$* ... *$[valueN]$*
>
> where N is known and =5.
> MY SAMPLE PROGRAM
>
> #!/usr/local/bin/perl
>
> $d1 = "\*\$\["; $d2 = "\]\$\*";
> $x = "\*\$\[value1\]\$\*\*\$\[value2\]\$\*";
>
> $_ = $x;
> print "d1 is \"$d1\" and ";
> print "d2 is \"$d2\".";
> print "\nSource string is \"$x\".\n";
>
> /$d1(.*)$d2/;
Some problems:
1) You must "protect" $d1 and $d2, because '*', '$', '[' and ']'
have special meanings in regular expressions. To avoid lots
of backslashes ($d1 = "\\\*\\\$...") you should use \Q...\E
-> /\Q$d1\E(.*)\Q$d2\E/;
2) Perl is "greedy" which means that it will not work as you expect
it to do. As $d1 matches the beginning of $x and $d2 the very end
of it, the matched pattern will be "value1]$**$[value2". To avoid
this behavior use the non-greedy version (note the '?'):
-> /\Q$d1\E(.*?)\Q$d2\E/;
3) This will only match the first appearance of the desired pattern
(and thus only $1 will be set). To get all of them you might use
a loop like this (note the 'global' option 'g'):
while(/\Q$d1\E(.*?)\Q$d2\E/g) {
print "match is $1\n";
}
Another possible solution is the use of an array:
@a = /\Q$d1\E(.*?)\Q$d2\E/g;
foreach (@a) { print "match is $_\n" }
Bye, Eike
--
======================================================================
Eike Grote, Theoretical Physics IV, University of Bayreuth, Germany
----------------------------------------------------------------------
e-mail -> eike.grote@theo.phy.uni-bayreuth.de
WWW -> http://www.phy.uni-bayreuth.de/theo/tp4/members/grote.html
http://www.phy.uni-bayreuth.de/~btpa25/
======================================================================
------------------------------
Date: 22 Sep 1997 14:53:42 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: Statistics for comp.lang.perl.misc
Message-Id: <6060pm$bo9$1@info.uah.edu>
Following is a summary of articles spanning a 7 day period,
beginning at 13 Sep 1997 08:58:21 GMT and ending at
20 Sep 1997 04:56:48 GMT.
Notes
=====
- A line in the body of a post is considered to be original if it
does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
- All text after the last cut line (/^-- $/) in the body is
considered to be the author's signature.
- The scanner prefers the Reply-To: header over the From: header
in determining the "real" email address and name.
- Original Content Rating is the ratio of the original content volume
to the total body volume.
- Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
Excluded Posters
================
perlfaq-suggestions@mox.perl.com
Totals
======
Total number of posters: 384
Total number of articles: 883 (344 with cutlined signatures)
Total number of threads: 344
Total volume generated: 1533.5 kb
- headers: 617.6 kb (12,485 lines)
- bodies: 833.1 kb (27,297 lines)
- original: 586.2 kb (19,916 lines)
- signatures: 80.6 kb (1,905 lines)
Original Content Rating: 0.7037
Averages
========
Number of posts per poster: 2.30
Number of posts per thread: 2.57
Message size: 1778.4 bytes
- header: 716.3 bytes (14.1 lines)
- body: 966.2 bytes (30.9 lines)
- original: 679.8 bytes (22.6 lines)
- signature: 93.4 bytes (2.2 lines)
Top 10 Posters by Number of Posts
=================================
(kb) (kb) (kb) (kb)
Posts Volume ( hdr/ body/ orig) Address
----- -------------------------- -------
103 175.0 ( 86.2/ 65.7/ 41.0) Tom Phoenix <rootbeer@teleport.com>
38 66.1 ( 25.3/ 32.6/ 13.4) Jeremy D. Zawodny <zawodny@hou.moc.com>
33 63.0 ( 19.6/ 43.4/ 23.8) Tad McClellan <tadmc@flash.net>
22 37.1 ( 15.0/ 22.0/ 13.4) Doug Seay <seay@absyss.fr>
14 32.8 ( 10.8/ 21.2/ 8.7) rbush@up.net
14 28.0 ( 10.5/ 12.3/ 7.6) Randal Schwartz <merlyn@stonehenge.com>
14 18.9 ( 11.3/ 7.6/ 4.0) Bart Lateur <bart.mediamind@tornado.be>
13 25.8 ( 10.9/ 15.0/ 9.2) russ@mail.org.uk
12 16.6 ( 6.8/ 9.9/ 4.8) Jason Gloudon <jgloudon@bbn.com>
12 15.3 ( 6.4/ 8.6/ 5.9) Andrew M. Langmead <aml@world.std.com>
Top 10 Posters by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Address
-------------------------- ----- -------
175.0 ( 86.2/ 65.7/ 41.0) 103 Tom Phoenix <rootbeer@teleport.com>
66.1 ( 25.3/ 32.6/ 13.4) 38 Jeremy D. Zawodny <zawodny@hou.moc.com>
63.0 ( 19.6/ 43.4/ 23.8) 33 Tad McClellan <tadmc@flash.net>
37.1 ( 15.0/ 22.0/ 13.4) 22 Doug Seay <seay@absyss.fr>
32.8 ( 10.8/ 21.2/ 8.7) 14 rbush@up.net
28.0 ( 10.5/ 12.3/ 7.6) 14 Randal Schwartz <merlyn@stonehenge.com>
25.8 ( 10.9/ 15.0/ 9.2) 13 russ@mail.org.uk
23.5 ( 1.1/ 22.4/ 22.4) 1 Jackson Dodd <jackson@usenix.org>
19.9 ( 4.7/ 13.0/ 9.7) 7 morpheus@calweb.com
18.9 ( 11.3/ 7.6/ 4.0) 14 Bart Lateur <bart.mediamind@tornado.be>
Top 10 Posters by OCR (minimum of five posts)
==============================================
(kb) (kb)
OCR orig / body Posts Address
------ -------------- ----- -------
0.9855 5.7 / 5.7 8 Brandon S. Allbery KF8NH; to reply, change "void" to "kf8nh" <bsa@void.apk.net>
0.9132 10.1 / 11.0 5 Greg Bacon <gbacon@cs.uah.edu>
0.8449 5.6 / 6.6 7 Anagrams of the Word 'A' <jefpin@bergen.org>
0.7934 4.6 / 5.8 7 over@the.net
0.7764 4.0 / 5.1 5 twod@not.valid
0.7731 7.2 / 9.3 10 Andrew Johnson <ajohnson@gpu.srv.ualberta.ca>
0.7664 7.1 / 9.3 7 Sriram Srinivasan <sriram@weblogic.com>
0.7462 9.7 / 13.0 7 morpheus@calweb.com
0.7454 3.5 / 4.7 6 Matti Kinnunen <matti@universe.pc.helsinki.fi>
0.7263 6.1 / 8.4 8 Russell Odom <rjo100@york.ac.uk>
Bottom 10 Posters by OCR (minimum of five posts)
=================================================
(kb) (kb)
OCR orig / body Posts Address
------ -------------- ----- -------
0.5479 23.8 / 43.4 33 Tad McClellan <tadmc@flash.net>
0.5475 5.1 / 9.3 6 faust@wwa.com
0.5264 4.0 / 7.6 14 Bart Lateur <bart.mediamind@tornado.be>
0.5089 6.6 / 12.9 8 lkasdorf@pressroom.com
0.4879 4.8 / 9.9 12 Jason Gloudon <jgloudon@bbn.com>
0.4826 1.5 / 3.1 5 Charles DeRykus <ced@bcstec.ca.boeing.com>
0.4123 13.4 / 32.6 38 Jeremy D. Zawodny <zawodny@hou.moc.com>
0.4078 8.7 / 21.2 14 rbush@up.net
0.4030 1.5 / 3.6 6 Joel Shellman <tou@tou.com>
0.3693 1.0 / 2.7 5 "Sylvain St.Germain" <sgermain@nortel.ca>
Top 10 Threads by Number of Posts
=================================
Posts Subject
----- -------
13 Submit Using Image
12 The CSV format stinks!
11 does \1 \2 \3 work? (my mistake is..where..?)
10 Is there a simpler syntax for: defined $a && $a ne ''
10 is there a better way to do this subroutine?
9 Confusion with chop/chomp
8 Value within range?
8 Inserting \n in a string
8 perl relative path refs w/NT
7 Perl equivalent to #ifdef in C?
Top 10 Threads by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Subject
-------------------------- ----- -------
24.5 ( 4.5/ 18.4/ 11.5) 7 chop/chomp, take 2
23.5 ( 1.1/ 22.4/ 22.4) 1 Hotel Discount Deadline 9/22 - USENIX Conf on Domain-Specific Languages
21.1 ( 9.8/ 10.4/ 6.6) 13 Submit Using Image
21.1 ( 6.6/ 12.4/ 8.7) 9 Confusion with chop/chomp
20.5 ( 8.7/ 10.7/ 8.1) 12 The CSV format stinks!
20.3 ( 9.8/ 8.5/ 6.0) 11 does \1 \2 \3 work? (my mistake is..where..?)
20.0 ( 8.1/ 11.5/ 6.0) 10 is there a better way to do this subroutine?
19.8 ( 5.7/ 13.4/ 5.4) 8 perl relative path refs w/NT
18.2 ( 1.4/ 16.8/ 16.8) 2 Hacking the Buddha, #10
16.5 ( 8.4/ 7.8/ 4.7) 10 Is there a simpler syntax for: defined $a && $a ne ''
Top 10 Targets for Crossposts
=============================
Articles Newsgroup
-------- ---------
11 comp.lang.perl
7 comp.lang.perl.modules
4 comp.databases
3 alt.fan.e-t-b
3 comp.unix.shell
3 comp.emacs.xemacs
3 comp.lang.perl.tk
2 alt.security
2 comp.ai.nat-lang
2 comp.databases.object
Top 10 Crossposters
===================
Articles Address
-------- -------
15 Jackson Dodd <jackson@usenix.org>
12 Tim Smith <tzs@halcyon.com>
9 Fabrizio Pivari <pivari@geocities.com>
6 Jeffrey Kegler <jeffrey@rahul.net>
3 Sriram Srinivasan <sriram@weblogic.com>
3 Kuntal M Daftary <daftary@cisco.com>
3 Floyd Pierce <floydp@_REMOVE_xnet.com>
2 Doug Seay <seay@absyss.fr>
2 Paul <paul@miraclefish.com>
2 russ@mail.org.uk
------------------------------
Date: 22 Sep 1997 13:22:11 GMT
From: dsiebert@gate.net (David Siebert)
Subject: System call
Message-Id: <605re3$1g6k$1@news.gate.net>
can I use the system call to run another perl program,
@args= ("MyProg.CGI", "arg1","arg2");
I am stuck in a win95 world but the webpage I run is on a remote UNIX server
so testing things like this are a pain.
------------------------------
Date: Mon, 22 Sep 1997 13:54:59 GMT
From: zawodny@hou.moc.com (Jeremy D. Zawodny)
Subject: Re: System call
Message-Id: <3428789b.520237982@igate.hst.moc.com>
[cc'd automagically to original author]
On 22 Sep 1997 13:22:11 GMT, dsiebert@gate.net (David Siebert) wrote:
>can I use the system call to run another perl program,
Yes. It's well documented in the perlfunc man page.
Jeremy
--
Jeremy Zawodny
Internet Technology Group
Information Technology Services
Marathon Oil Company, Findlay Ohio
http://www.marathon.com/
Unless explicitly stated, these are my opinions only--not those of my employer.
------------------------------
Date: Mon, 22 Sep 1997 07:11:14 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Daniel Wu <Daniel.Wu@alcatel.com.au>
Subject: Re: Using the stat function
Message-Id: <Pine.GSO.3.96.970922070958.24984I-100000@usertest.teleport.com>
On Mon, 22 Sep 1997, Daniel Wu wrote:
> Basically I a trying to get the file size using the file handle, but
> passing the file variable "FILE" into the function doesn't seem to work.
http://www.perl.com/CPAN/doc/FAQs/FAQ/html/perlfaq5/
How_can_I_make_a_filehandle_loca.html
Hope this helps!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
Ask me about Perl trainings!
------------------------------
Date: Mon, 22 Sep 1997 11:30:47 GMT
From: bart.mediamind@tornado.be (Bart Lateur)
Subject: Re: WANT:fast word search in big sorted text file
Message-Id: <34263d28.1719097@news.tornado.be>
zsh@cs.rochester.edu (Shenghuo Zhu) wrote:
>Once I read a script of perl which is used to
>search word in a big sorted text file.
>Anyone knows this script?
I think you mean the "bainary search" script. The file is called
"look.pl". It's a Perl4 inheritance, it is included in the "Lib" folder:
.
HTH,
Bart.
------------------------------
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 1058
**************************************