[11166] in Perl-Users-Digest
Perl-Users Digest, Issue: 4766 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jan 28 02:07:18 1999
Date: Wed, 27 Jan 99 23:00:17 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Wed, 27 Jan 1999 Volume: 8 Number: 4766
Today's topics:
Anything like Tclet for Perl? (David Hiltz)
calculating weekunmber for given date clw1989@my-dejanews.com
Help via porting From Win32 Perl to Unix Perl expoinfo@globalexpos.co.nz
Re: How to change @INC path permenantly? <eugene@snailgem.org>
Re: is crypt() function compatible? (Ethan H. Poole)
LWP::UserAgent: No Keep-Alive? (Michael Schilli)
Re: Newbie question: writing file <eugene@snailgem.org>
Re: Perl 4 (win32) to work with DBM (Donna B Havin)
Perl module madness <nsurfer@bellsouth.net>
Re: please help: outputting line number to display <sasho@staff.mgu.bg>
Porting from Win32 perl to Unix perl <don@globalexpos.co.nz>
reading local STDERR (not a backticks question) jbb@my-dejanews.com
Re: reading local STDERR (not a backticks question) (Ilya Zakharevich)
Re: Restart a perl program (Without re-running?) (Matthew Bafford)
Re: Sending email (Ronald J Kimball)
Setting LD_LIBRARY_PATH inside perl script (Tommy Campbell)
Re: substr() Assistance still needed (Ronald J Kimball)
Re: system function, Pros and Cons?? (Abigail)
Re: system function, Pros and Cons?? <tchrist@mox.perl.com>
Re: system function, Pros and Cons?? (Ronald J Kimball)
Re: system function, Pros and Cons?? (Ronald J Kimball)
Re: system function, Pros and Cons?? (Ilya Zakharevich)
Re: that "runops ... undefined" thing from perlcc vishalb@my-dejanews.com
Re: Why can't I do this? <jdf@pobox.com>
Re: Wnt: Simple script to search & replace through a ba <eugene@snailgem.org>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 28 Jan 1999 04:14:39 GMT
From: dhiltz@ultra2.whoi.edu (David Hiltz)
Subject: Anything like Tclet for Perl?
Message-Id: <78oo7f$bnj1@dilbert.whoi.edu>
With tcl you can write tclets which are tcl programs that can run in a
web page (requires a plugin). This is pretty cool and I was wondering if
there is something similar for Perl or if anybody is working on
something.
Here's where you read more about tclets:
http://www.scriptics.com/resource/software/tools/plugin
-----------
David Hiltz
Email: dhiltz@whsun1.wh.whoi.edu
Unix System and Network Administrator
Northeast Fisheries Science Center
######&@&######
------------------------------
Date: Thu, 28 Jan 1999 06:09:42 GMT
From: clw1989@my-dejanews.com
To: wys@helbling.ch
Subject: calculating weekunmber for given date
Message-Id: <78ouv1$g88$1@nnrp1.dejanews.com>
Hi, Just had to learn, that there is more than one way to calculate the
weeknumber. Anybody got the complete (perl-)algorithm(s) for calculating the
weeknumber of a given date? Thanks Clemens
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Thu, 28 Jan 1999 04:23:09 GMT
From: expoinfo@globalexpos.co.nz
Subject: Help via porting From Win32 Perl to Unix Perl
Message-Id: <78oon6$bb1$1@nnrp1.dejanews.com>
Hiya...
I need help on a porting problem...
I have a script that is fine part form one point.. but this bit..
print qq!
<table border=0 width=550><tr><td valign=top width=450>
!;
doesnt work when i put it into ..
print ("<table border=0 width=550><tr><td valign=top width=450>");
WHY?!?!?
Thanks
Andrew
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Wed, 27 Jan 1999 21:42:09 -0500
From: Eugene Sotirescu <eugene@snailgem.org>
To: mark.c.hamlin@bt.com, Kevin Egan <kevingan@pantheon.yale.edu>
Subject: Re: How to change @INC path permenantly?
Message-Id: <36AFCE81.4581565B@snailgem.org>
Mark Hamlin wrote:
>
> I'm not 100% sure what you mean/how to do it. Do I just make a standard unix
> shell envroment variable in my shell startup with an export? ,,,,rather than
> something specific to/ embedded in perl or a particular perl config file?
>
> > Use the environment variable PERL5LIB to point to one or more dirs.
1. Yes, something like
export PERL5LIB=/path/to/your/libdir
in your shell profile should do it. It will prepend
/path/to/your/libdir
to @INC .
(tho it's gonna work only as long as the script is run by you).
2. The other alternative, 'use lib', you already know about. If you
expect the script to be run by unknown users, this is preferable (it
modifies @INC at compile time and doesn't depend on the user's
evironment).
3. There's another way that modifies @INC directly, but it's a bad trick
and I won't go into it.
Note that none of these modify @INC permanently. I don't know that this
can be done without recompiling Perl.
--
Eugene
"I have an Apache Web Server that uses CGI forms written in COBOL."
Post in clpm
------------------------------
Date: Thu, 28 Jan 1999 05:26:03 GMT
From: ehpoole@ingress.com (Ethan H. Poole)
Subject: Re: is crypt() function compatible?
Message-Id: <LxSr2.246$9s2.1105@news15.ispnews.com>
[Posted and Emailed] In article
<19990127191233.17233.00000082@ng155.aol.com>, thegroovy@aol.comNOSPAM
says...
>
>
>Greetings,
>
> I am making a mailing list manager for resale and am trying to
determine
>how compatible it is with Win NT. However, I was stumped on the crypt()
>function, and am not sure if it is one of those Unix-only commands, or does
Win
>NT work the same?
Most reasonably current ports of Perl for Win32 support the crypt() function
(I know the ActiveState ports have supported crypt() for some time now).
The perl shipped with the NT ResKit for NT 4.0 (at least on my CD) was an
outdated port w/o crypt() support, and I believe the GS port of 5.004 also
lacked crypt() support, however.
So, if someone complains to you that crypt() is not available on their NT
system, you can simply suggest they upgrade Perl to something more current.
--
Ethan H. Poole | Website Design and Hosting,
| CGI Programming (Perl & C)..
========Personal=========== | ============================
* ehpoole @ ingress . com * | --Interact2Day, Inc.--
| http://www.interact2day.com/
------------------------------
Date: 28 Jan 1999 03:21:23 GMT
From: schilli@tep.e-technik.tu-muenchen.de. (Michael Schilli)
Subject: LWP::UserAgent: No Keep-Alive?
Message-Id: <78ol3j$pd2$1@sparcserver.lrz-muenchen.de>
Hi all,
I'm trying to use the LWP::UserAgent to get data from a persistent
connection using the 'Keep-Alive' header, but it seems not capable
of handling it, all I get is a timeout.
Anybody know of a Module that can?
--
Michael
mschilli@blaxxun.com
------------------------------
Date: Wed, 27 Jan 1999 20:15:48 -0500
From: Eugene Sotirescu <eugene@snailgem.org>
Subject: Re: Newbie question: writing file
Message-Id: <36AFBA44.5605E1E3@snailgem.org>
Tom Briles wrote:
>
> Eugene Sotirescu wrote:
>
> > Kevin D. Chester wrote:
> > >
> > > Hello Tom,
> > >
> > > Thank you for your reply!!! This little "x" has solved the problem and it seems to be
> > > working.
> >
> > And it created another problem: you now have a directory wide open for
> > anybody to write to.
>
> Well, that depends upon where he added the execute perm.
My guess is that he made it world writable.
Am I wrong, Kevin?
--
Eugene
"I have an Apache Web Server that uses CGI forms written in COBOL."
Post in clpm
------------------------------
Date: 28 Jan 1999 04:28:02 GMT
From: donnabhavin@nospam.hotmail.com (Donna B Havin)
Subject: Re: Perl 4 (win32) to work with DBM
Message-Id: <78op0i$o0m@bgtnsc01.worldnet.att.net>
I've downloaded active-state, but I'm addicted to perl4's 360k exe and zippy
mood.
Donna
In article <36AFC311.AF62FD98@us.ibm.com>, James Ludlow <ludlow@us.ibm.com>
wrote:
>Donna B Havin wrote:
>>
>> Hi. Can anyone give a suggestion on how to get my win32 Perl 4 to work with
>> dbm files? (Full version listed at bottom.)
>
>Ack! Perhaps it's time for an upgrade. Is there a compelling reason
>why you're running Perl 4?
>
>www.activestate.com
>
>You'll find Perl 5 for Win32 (aka ActivePerl), and binary builds for a
>lot of CPAN modules.
>
------------------------------
Date: Thu, 28 Jan 1999 05:47:35 GMT
From: Steve Miles <nsurfer@bellsouth.net>
Subject: Perl module madness
Message-Id: <36AFFA03.D491131B@bellsouth.net>
Hi everyone,
I've been working on some Perl scripts, and have been amazed how much
using Perl modules like CGI.pm and LWP as well as others help. My major
audience is those who administer websites on the thousands of hosting
companies out there and don't have control over what modules are
installed. I've already gotten some complaints that some hosts don't
have the LWP modules installed - do you guys think that most modules
will be here to stay and every host will have them in the future?
Or should I go back to programming without modules. (I hate the old
sockets method and not using CGI.pm.)
Thanks!
Steve Miles
------------------------------
Date: Thu, 28 Jan 1999 07:47:12 +0200
From: Alexander Avtanski <sasho@staff.mgu.bg>
Subject: Re: please help: outputting line number to display
Message-Id: <36AFF9E0.8132F14@staff.mgu.bg>
23_skidoo wrote:
> open (UPDATE, ">$datafile") || print "can't open $datafile line
> 476<br>";
Try this:
open (UPDATE, ">$datafile") || warn "can't open $datafile";
Perl will automaticly include line number in the message.
DO NOT place "\n" at the end of line.
You can use "die" instead of "warn"; then your script will exit
automatically.
Alexander Avtanski
sasho@mgu.bg
------------------------------
Date: Thu, 28 Jan 1999 17:33:23 +1300
From: Don <don@globalexpos.co.nz>
Subject: Porting from Win32 perl to Unix perl
Message-Id: <36AFE893.8C8BFB7@globalexpos.co.nz>
Hiya...
I was needed some help on this please..
I have a script that needs to be ported ot Unix form a win32 platform...
but when i port this bit from *Win32..
print qq!
<table border=0 width=550><tr><td valign=top width=450>
!;
to Unix..
print ("<table border=0 width=550><tr><td valign=top width=450>");
It doesn't work!!
WHY?!
Thanks
Andrew
------------------------------
Date: Thu, 28 Jan 1999 05:32:50 GMT
From: jbb@my-dejanews.com
Subject: reading local STDERR (not a backticks question)
Message-Id: <78osq2$ehr$1@nnrp1.dejanews.com>
Hi everyone,
First I'd like to waste four lines of bandwith apologizing if this question
has been asked and answered. I have, however, read the FM, the doc, and
searched Dejanews for my question. I have found similar ones, but not what I
need. So without further ado,
I have a function that calls "warn" if something goes wrong. What I would
like to do is call that function, and then be able to read STDERR to get the
warning. Now I know that this can be done by redirecting STDERR to a file,
then reading the file. However, I won't have permissions to write to a file,
so I would like to open a "virtual file" in memory or just open a variable
(can you do that?). I can't even write to something like /tmp/error since I
may not have permissions and I don't want to go around writing files.
The program I have so far (which works, but uses a temporary file) is this
--Begin prg---
sub foo {
warn "this is a warning";
}
open SAVEERR, ">&STDERR";
open STDERR, ">error.out" or die "can't redirect STDERR";
&foo;
open STDERR, ">&SAVEERR";
open PH, "error.out" or die "can't open foo.out";
my $error = <PH>;
print "warning was '$error'\n";
--End prg---
I would like to do something in the following psuedocode
$error = <STDERR>;
&foo;
print "resut was '$error'";
Other questions similar to this one have had answers like "use system" or "use
backticks". AFAIK, backticks and system are done for shell commands, not
internal commands. Can someone please enlighten me as to how to read internal
STDERR without opening a file? Is there some way to open a "pretend" file that
exists only in memory and redirect STDERR to that?
Thank you for your time and answers!
Julien Beasley
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 28 Jan 1999 06:02:15 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: reading local STDERR (not a backticks question)
Message-Id: <78ouh7$q4a$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to
<jbb@my-dejanews.com>],
who wrote in article <78osq2$ehr$1@nnrp1.dejanews.com>:
> I have a function that calls "warn" if something goes wrong. What I would
> like to do is call that function, and then be able to read STDERR to get the
> warning.
perldoc -f warn
perldoc perlvar
search for __WARN__
Ilya
------------------------------
Date: Thu, 28 Jan 1999 03:18:03 GMT
From: dragons@scescape.net (Matthew Bafford)
Subject: Re: Restart a perl program (Without re-running?)
Message-Id: <slrn7avlgo.gvh.dragons@Server.Network>
On Thu, 28 Jan 1999 02:54:53 GMT, Darren Greer <drgreer@qtiworld.com> wrote:
-> Ok....this is bit of an odd question ( In my mind anyway). I have a
-> running perl program....and at some point, I just want the program to
-> just start from the very beginning (first line). Is there a way to do
-> this....without encasing the whole program in a subroutine and calling
-> that? I also dont want to re-run the perl program from the shell....
->
-> Let me know if this is possible....or if I am making any sense?
Not really odd. A lot of long running programs (like daemons) will
restart themselves.
The easiest way is probably exec.
perldoc -f exec
This requires you know where the program is.
-> Thanks,
HTH!
-> Darren
--Matthew
------------------------------
Date: Wed, 27 Jan 1999 23:11:48 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Sending email
Message-Id: <1dmbbjg.mzpu6a3adnz5N@bay1-202.quincy.ziplink.net>
<info@gadnet.com> wrote:
> What's wrong with ths:
>
> while (<MEMBERS>)
> {
> chomp;
> open (MEMBER, "+<$bpdata/$_.txt");
You don't check the return value when you open the file.
> @member = <MEMBER>;
> close (MEMBER);
> chomp $member[1];
> open (MAIL, "|$mailprog -t") || die "Can't open $mailprog!\n";
You don't report why the open failed. ($!)
> print MAIL "To: $member[1]\n";
> print MAIL "From: $myemail\n";
> print MAIL "Subject: $title\n\n";
> print MAIL "$email\n\n";
> close MAIL;
You don't check the return value when you close the pipe.
> }
> close (MEMBERS);
> When I run the script that contains this I get a Server Error message.
> It sends three emails correctly, but then fails on the fourth. The
> fourth email address in the MEMBERS file is invalid, but I would
> expect it to send the email anyway. How can I change this so that it
> will work whether the email address of the recipient is valid or not?
What do you mean by "invalid"?
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Thu, 28 Jan 1999 03:48:34 GMT
From: tommycampbell@mindspring.com (Tommy Campbell)
Subject: Setting LD_LIBRARY_PATH inside perl script
Message-Id: <36afddfb.15557798@news.mindspring.com>
I'm trying to write a CGI in Perl that needs to have the
LD_LIBRARY_PATH env variable set in order for the program to find some
needed .so files. I've read the FAQ's, the Perl Resource Kit with no
luck. Any ideas?
------------------------------
Date: Wed, 27 Jan 1999 23:11:49 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: substr() Assistance still needed
Message-Id: <1dmbbqm.14cjxf0axxinyN@bay1-202.quincy.ziplink.net>
Danny Paxton <paxtond@ix.netcom.com> wrote:
> OK...Here is the part of my script that is not working.
This won't even compile. Is this really what your script looks like?
> if substr($FORM{'MLR', 1, 1} eq B) {
You need parentheses around the if condition; that's a syntax error.
You've mistakenly put arguments to substr() inside the hash index;
that's a syntax error too, because now substr() doesn't have enough
arguments.
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: 28 Jan 1999 03:17:13 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: system function, Pros and Cons??
Message-Id: <78okrp$rg6$1@client2.news.psi.net>
Tom Christiansen (tchrist@mox.perl.com) wrote on MCMLXXVI September
MCMXCIII in <URL:news:36afc392@csnews>:
~~ [courtesy cc of this posting sent to cited author via email]
~~
~~ In comp.lang.perl.misc, abey@cs.ucr.edu (Abraham Grief) writes:
~~ :But I think that if you're
~~ :making a professional quality script, you should
~~ :generally try to avoid the system function. If you're
~~ :hired to make a script for someone, you don't want
~~ :your program to fail if they change operating
~~ :systems.
~~
~~ I have no idea what that means. Are you telling me that you honestly
~~ write scripts that will work on Unix, Microsoft, Apple, VMS, and MVS?
~~ I respectfully disbelieve you. Anyone who changes gears like that
~~ deserves and expects virtually infinite pain.
Do you honestly believe that the basic UNIX tools are compatible?
Even very old tools like 'grep' and 'awk' are different between
well-known UNIX platforms as Solaris and HP-UX.
Any non-trivial shell script I write and that's supposed to work on
multiple UNIX platforms has tests based on uname. Most of my Perl programs
don't; and if they have a test on $^O, it's for loading dynamic libraries
whose place in the file system depend on the OS. Ever had the problem
of a script failing because /usr/bin appeared before /usr/ucb in your
$PATH and hence the wrong `ps' was executed?
I certainly will frown upon seeing Perl code that uses 'system' to
move files, list files in a directory, or to get the current time.
Why do you think running Configure takes about as long as compiling Perl?
UNIX is a twisty little maze of tools, all different.
Abigail
--
%0=map{reverse+chop,$_}ABC,ACB,BAC,BCA,CAB,CBA;$_=shift().AC;1while+s/(\d+)((.)
(.))/($0=$1-1)?"$0$3$0{$2}1$2$0$0{$2}$4":"$3 => $4\n"/xeg;print#Towers of Hanoi
------------------------------
Date: 27 Jan 1999 20:40:16 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: system function, Pros and Cons??
Message-Id: <36afdc20@csnews>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc, abigail@fnx.com writes:
:I certainly will frown upon seeing Perl code that uses 'system' to
:move files, list files in a directory, or to get the current time.
So would I, probably. Although I have used:
rename($old, $new) || system("mv", $old, $new)
before to get the file-system copying stuff.
--tom
--
Imagination is more important than knowledge
-- Albert Einstein
------------------------------
Date: Wed, 27 Jan 1999 23:11:52 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: system function, Pros and Cons??
Message-Id: <1dmbc7p.1wh2tiukr9qguN@bay1-202.quincy.ziplink.net>
Tom Christiansen <tchrist@mox.perl.com> wrote:
> In comp.lang.perl.misc, abey@cs.ucr.edu (Abraham Grief) writes:
> :But I think that if you're
> :making a professional quality script, you should
> :generally try to avoid the system function. If you're
> :hired to make a script for someone, you don't want
> :your program to fail if they change operating
> :systems.
>
> I have no idea what that means. Are you telling me that you honestly
> write scripts that will work on Unix, Microsoft, Apple, VMS, and MVS?
> I respectfully disbelieve you. Anyone who changes gears like that
> deserves and expects virtually infinite pain.
A more logical inference would be that the poster is referring to
different flavors of Unix.
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Wed, 27 Jan 1999 23:11:51 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: system function, Pros and Cons??
Message-Id: <1dmbbzy.145xfkd9puhrN@bay1-202.quincy.ziplink.net>
Ilya Zakharevich <ilya@math.ohio-state.edu> wrote:
> Turing machines have nothing to do with computers. Most things Perl
> do involve interaction with the outside world, thus cannot be done
> with Turing machines.
Huh? Turing machines interact with the outside world via the machine
tape. The machine tape is the Turing machine's input and output.
> Even if you think of your file system as a region on (one of?) the
> Turing machine tape(s), where would you put the link counts?
In whatever part of the machine tape is designated for link counts.
> The system clock?
In whatever part of the machine tape is designated for the system clock.
> How would a Turing machine TAB-complete user input?
By searching the appropriate part of the machine tape for the correct
completion of input in another part of the machine tape.
> Decrease the loudness of your sound card?
By writing the appropriate symbols to the appropriate section of the
machine tape.
> It may be interesting to coin a name for a CS abstraction which
> matches the *needs* of current programming, but a Turing machine is
> not one.
I think you're just not being abstract enough in your understanding of
Turing machines.
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: 28 Jan 1999 04:52:19 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: system function, Pros and Cons??
Message-Id: <78oqe3$n2a$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Ronald J Kimball
<rjk@linguist.dartmouth.edu>],
who wrote in article <1dmbbzy.145xfkd9puhrN@bay1-202.quincy.ziplink.net>:
> > Even if you think of your file system as a region on (one of?) the
> > Turing machine tape(s), where would you put the system clock?
>
> In whatever part of the machine tape is designated for the system clock.
> I think you're just not being abstract enough in your understanding of
> Turing machines.
I think you did not read the definition of a Turing machine lately.
Ilya
------------------------------
Date: Thu, 28 Jan 1999 04:59:18 GMT
From: vishalb@my-dejanews.com
To: mk@weconnectyou.com
Subject: Re: that "runops ... undefined" thing from perlcc
Message-Id: <78oqr3$d2s$1@nnrp1.dejanews.com>
Please check p5p archives at
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1998-09/msg01438.html
In article <36AF324A.A8F39375@weconnectyou.com>,
mk@weconnectyou.com wrote:
> Good-Day!
>
> I have a script (in use for quite some time) that I would like to build
> into an executable.
>
> So I waited fot the long awaited perlcc, and compile and built
> perl_5.005_02 and tried a simple "hello world"... it was fine!
>
> I perlcc'd my script and it compiled fine, but linking produced the
> "runops: undefined..." error.
> (I have seen mention of this by others in this group)
>
> There was a posting about it being an "eval" problem... (no help)(don't
> use any eval's in my script)
>
> There was a posting about the runops... problem being fixed in
> perl_5.005_54, so I built and tested that.
>
> The problem remains... is there any solution? Is this about the compiled
> file size?
Are you sure about this? I advise you to check the cc_runtime.h header file
for the PP_EVAL macro. Do you see a call to "runops" or a macro replacement
for it "CALLRUNOPS". This file gets included into the c file generated
by perlcc.I have a feeling your perlcc is still picking up the old header file
from some incorrect area.
>
> I grepped through the sources (to per) (and my script) there is no
> "runops" object or function that I can find???
>
> Anyone got a grip on this???
>
> Thanks to all!
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 28 Jan 1999 04:21:33 +0100
From: Jonathan Feinberg <jdf@pobox.com>
To: Jeffery Cann <jc_cann@ix.netcom.com>
Subject: Re: Why can't I do this?
Message-Id: <m3u2xc13r6.fsf@joshua.panix.com>
Jeffery Cann <jc_cann@ix.netcom.com> writes:
> I cannot do this:
>
> if ($aSplitLine[8] =~ /$aString/) {
> # do something else
> }
>
> Why won't the bind operator =~ work on a variable?
Works fine for me. Can you post a brief code sample that shows what
you mean when you say that it doesn't work?
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf
------------------------------
Date: Wed, 27 Jan 1999 23:20:35 -0500
From: Eugene Sotirescu <eugene@snailgem.org>
To: mark.c.hamlin@bt.com
Subject: Re: Wnt: Simple script to search & replace through a batch of files
Message-Id: <36AFE593.973C8772@snailgem.org>
Mark Hamlin wrote:
>
> Ted,
>
> Thanks for the tip. Love the way you use the find command and how damn simple the
> whole thing is,,, lovely!
>
> p.s If you know a really good book on Perl could you let me know. All the O-Reilly
> books have there strengths, but none of the books I've seen have convinced me to buy
> (I'm very tight for cash at the moment).
You can't go wrong with "Learning Perl".
Here are some bargain prices:
shopping.com has it for $19.47,
bookpool.com for $18.95
--
Eugene
"I have an Apache Web Server that uses CGI forms written in COBOL."
Post in clpm
------------------------------
Date: 12 Dec 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 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 4766
**************************************