[10030] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3623 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 2 20:06:06 1998

Date: Wed, 2 Sep 98 17:00:18 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 2 Sep 1998     Volume: 8 Number: 3623

Today's topics:
    Re: Argh! NT Perl <david.corcoran@pss.boeing.com>
        ASCII codes of a string <knguyen@ab.bluecross.ca>
    Re: Currency Formatting in Perl (s//) <peterm@zeta.org.au>
    Re: fast fork problem (was: Re: session id) (Alan Barclay)
    Re: Flushing data to disk for open files (John Moreno)
    Re: Flushing data to disk for open files (Larry Rosler)
    Re: help with grep (Larry Rosler)
    Re: How to run my scripts with Perl5 and not Perl 4 whe <strat@pacifier.com>
    Re: Install perl on mingwin32 <metcher@spider.herston.uq.edu.au>
    Re: mod_perl configuration <yong@shell.com>
    Re: mod_perl configuration (Randy Kobes)
    Re: MS Word to Text conversion (Michael Shavel)
        perl and pgp on unix <lfs97@tm.net.my>
    Re: Perl compiler <knguyen@ab.bluecross.ca>
    Re: Perl compiler (John Stanley)
    Re: PERL is horrible <support@acuity.com>
    Re: perl scripts as NT services? <support@acuity.com>
        Perl subprocesses <amrhein@harp.gsfc.nasa.gov>
        Run Word 97 macro from Perl error? <paul.cao@compaq.com>
    Re: simple prog that causes Segmentation fault <zenin@bawdycaste.org>
    Re: Tom Phoenix: ANSWERS WANTED! (Nathan V. Patwardhan)
    Re: Tom Phoenix: ANSWERS WANTED! (Nathan V. Patwardhan)
    Re: What is a "Real Programming Language"? <david.corcoran@pss.boeing.com>
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

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

Date: Wed, 2 Sep 1998 16:38:40 GMT
From: David Corcoran <david.corcoran@pss.boeing.com>
To: webadmin@bigo.net
Subject: Re: Argh! NT Perl
Message-Id: <35ED7490.55E4DC82@pss.boeing.com>

Subscribe to:

http://www.activestate.com/lyris/lyris.pl?enter=perl-win32-users&text_mode=0

And search the archives, this has be answered mutltiple times.

Jeff Riffle wrote:
> 
> I've installed Win32 Perl and PerlScript and Perl for IIS and don't know
> where to go from here, the batch files ran without error and the
> associations are there, the read/execute has been set on the cgi-bin dir
> and the files run from the command line but not from the web, .pl files
> when typed in the browser actually open the prompt box "save file or
> open"
> 
> Would appreciate any help.
> 
> Please cc reply to webadmin@bigo.net


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

Date: Wed, 02 Sep 1998 16:34:05 -0600
From: Ky Nguyen <knguyen@ab.bluecross.ca>
Subject: ASCII codes of a string
Message-Id: <35EDC7DD.E6C98E74@ab.bluecross.ca>

Hi all,

I have a print data file. Each line of this file has ascii characters
and control codes (Xerox and Univac codes). I would like to
print ascii characters in %s form and cotrol codes in %2x form.

What is the trick to use tr// or s// to achieve this task?

I've played with pack(), q//, ... but didnt get anywhere. I tried
to index the string and print all characters in %2x but $_[$i]
give me 00. How do I parse string "a,c" to print "61 2C 63"?

Thanks in advance!




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

Date: Thu, 03 Sep 1998 09:23:03 +1000
From: "Peter G. Martin" <peterm@zeta.org.au>
Subject: Re: Currency Formatting in Perl (s//)
Message-Id: <35EDD356.8CC756EB@zeta.org.au>

Internet Guy wrote:
> 
> Can anyone tell me how I can create an expression to format currency values
> in Perl?
> 
> I imagine it's something complicated involving s// but I can't get the
> parameters right.
> 
> I would input a number such as 200000 and would want 200,000 as the result
> 
> Replies by e-mail (ar@webcanada.com) are appreciated.
> 
> Thanks.
Perl Cookbook p 65:

sub commify {
	my $text = reverse $_[0];
	$text =~ s/(\d\d\d)(?=\d)(?!\d*\.)/$1,/g;
	return scalar reverse $text;
}

Real neat trick, that doing it backwards ....
-- 
peterm
Peter G. Martin, Tech.Writer & Perl User, The Scribe & Chutney Trust
peterm@zeta.org.au,  http://www.zeta.org.au/~peterm
ROZELLE, Australia       +61 2 9818 5094
Use of the passive should be minimised.


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

Date: 2 Sep 1998 23:19:18 GMT
From: gorilla@elaine.drink.com (Alan Barclay)
Subject: Re: fast fork problem (was: Re: session id)
Message-Id: <904778341.755346@elaine.drink.com>

In article <6sedvc$qrj$5@info.uah.edu>, Greg Bacon <gbacon@cs.uah.edu> wrote:
>In article <6s6t43$9bs$1@monet.op.net>,
>	mjd@op.net (Mark-Jason Dominus) writes:
>: 	$sess_id = time . ".$$';
>: 
>: This will fail if your system the same process ID number more than
>: once in the same second.
>
>I've seen lots of programs that make the assumption that
>C<time . ".$$"> will be unique.  I remember Jarkko writing on p5p that
>he'd like to see the machine that is capable of 64 Kforks/second.  Is
>this something that should be guaranteed?  If so, how?  By increasing
>NPROC?  Otherwise, is there a better way to generate unique IDs?

I'd say that a system which is capable of forking that fast, and is
actually doing so, would have many problems due to assumptions like
that, and problems which aren't due to faulty assumptions, but due to
race conditions such as doing a ps or opening a data file to find the
PID of a process you wish to kill, but by the time the signal is sent,
the original process has died and a new process occupies that PID.

In these cases PID's aren't fitting the job we ask for them, to
temporarily, but uniquely, identify a process, we need the grace time
when a PID is invalid.. In this case, increasing MAXPROC seems to me to
be a good idea, despite my reluctantance to type 6 or 7 digits for a PID.
I don't belive there are any systems which use less than 32 bits as their
pid_t, so this shouldn't be a problem from the API standpoint.

Of course, we could consider reformatting pid's to reduce the problem
of uniqueness without affecting the number of digits required to be
typed when doing shell operations.

Perhaps splitting pid into a uid:ppid pair, eg 1741:4844 meaning userid
1741, process 4844. At the same time, process 1742:4844 may exist,
with the userid portion being set as the real userid at time of fork().

A short format of just the ppid could be used for shelltools such as
ps & kill, 4844 instead of 1741:4844, and the only user who requires
to type long digited kill commands is the one who's done large numbers of
forks.


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

Date: Wed, 2 Sep 1998 18:08:30 -0400
From: phenix@interpath.com (John Moreno)
Subject: Re: Flushing data to disk for open files
Message-Id: <1deqqam.16edmk71wvv0hN@roxboro0-046.dyn.interpath.net>

<bowler@eisner.decus.org> wrote:

> Either I'm blind or it's late or this isn't in the faq so
> 
> I have a perl script that does...
> 
>       open (MYOUT, ">file.out");
> 
> and then goes on to do a bunch of 
> 
>       print MYOUT $stuff
> 
> over the next several hours.
> 
> Is there any way in perl to get it to flush what's been written so that I can
> look at the file to track progress?  I realize I could close MYOUT and re-open
> it using ">>file.out" but that seems so in-elegant...
> 
> ideally, I'd like a "flush every n minutes" but a "flush now" would also work
> for me...

Any particular reason why select(MYOUT); $| = 1; won't float your boat?

-- 
John Moreno


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

Date: Wed, 2 Sep 1998 15:03:13 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Flushing data to disk for open files
Message-Id: <MPG.10576081fe14b00398978c@nntp.hpl.hp.com>

[Posted to comp.lang.perl.misc and a copy mailed.]

In article <35edb0b6.13749265@news.btinternet.com> on Wed, 02 Sep 1998 
21:40:19 GMT, Jonathan Stowe <Gellyfish@btinternet.com> says...
> On Wed, 2 Sep 1998 20:00:25 GMT, bowler@eisner.decus.org wrote :
 ...
> >ideally, I'd like a "flush every n minutes" but a "flush now" would also work
> >for me...
> 
> I would suggest looking at the perlvar documentation searching for
> "flush" or "FLUSH" - I am sure this will lead you to enlightenment.  
> 
> You might also look at the first item in perlfaq5 whilst you are
> waiting for your eye test ;-}

I didn't suggest using '$| = 1' because of negative performance 
implications.  See the beginning of the FAQ you refer to.  The 
'seek/tell' approach retains the benefits of buffering, but flushes when 
desired.

-- 
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


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

Date: Wed, 2 Sep 1998 14:53:51 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: help with grep
Message-Id: <MPG.10575e4ea910bbc298978b@nntp.hpl.hp.com>

[Posted to comp.lang.perl.misc and a copy mailed.]

In article <6skcci$ser@mozo.cc.purdue.edu> on 2 Sep 1998 21:12:50 GMT, 
Michael J Gebis <gebis@fee.ecn.purdue.edu> says...
> lr@hpl.hp.com (Larry Rosler) writes:
 ... 
> }@strings{ @strings } = (1) x @strings;
> 
> }and run lots (like an order of magnitude!) faster if one cared.  Thanks 
> }again, Uri.
> 
> Ok, the last time this construct was posted, I sat down and thought
> about it.  I thought so hard I vomitted, and I still haven't achieved
> enlightenment.  So...can somebody (carefully) explain this to me?  

Hehehe.  I posted it, so I guess I get to gloss it.

You won't find 'hash slice' in the index for the Blue Camel, but it is in 
the Bighorn Sheep, which landed on my desk just this morning.  And I 
can't explain better than those authors.

In the section titled "4.7  Finding Elements in One Array but Not 
Another" [sound familiar -- that's what this thread is about], we find 
the following snippet:

  # build lookup table
  @seen{@B} = ();

  ... unless exists $seen{$item};

 ...

  $hash{"key1"} = 1;
  $hash{"key2"} = 2;

is equivalent to:

  @hash{"key1", "key2"} = (1, 2);

 ...

  @seen{@B} = ();

This uses items in @B as keys for %seen, setting each corresponding value 
to undef, because there are fewer values on the right side than places to 
put them.  This works out here because we check for the existence of the 
key, not logical truth or definedness of the value.  If we needed true 
values, a slice could still shorten our code:

  @seen{@B} = (1) x @B;

See Also

Hash slices are explained in perldata(1) and the "Variables" section of 
Chapter 2 of Programming Perl; ... [I didn't find it in either of those 
places!  LR]

__END__  of excerpt

HTH.

-- 
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


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

Date: Wed, 2 Sep 1998 15:22:31 -0700
From: "Christian Brink" <strat@pacifier.com>
Subject: Re: How to run my scripts with Perl5 and not Perl 4 when both are installed in the same place
Message-Id: <35edc539.0@news.pacifier.com>


One fact you need to keep in mind.

you can not have 2 files of the same name in *nix.... Never!

with the given information, one would conclude either.
1. perl5 does not link to perl version 5
2. your initial assumption of the failure to load modules
    has to do with something else besides a version
    problem.



Fernando wrote in message <6skacp$16c0$1@news.doit.wisc.edu>...
>Both versions are installed in /usr/bin/
>.. so if i run a script it automatically tries to run perl4 and not perl5
even
>if I have " #!/usr/bin/perl5 " at the top of the script.
>How do i know is running perl4 and not perl5?
>Because some libraries are not available in perl 4 and everytime I try to
run
>the script by tyiping "name.pl" I get:
>
>"use:: not found"
>
>but if i do "perl5 name.pl" the script runs nicely.
>
>Thanks in advance...
>




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

Date: Thu, 03 Sep 1998 09:05:32 +1000
From: Jaime Metcher <metcher@spider.herston.uq.edu.au>
Subject: Re: Install perl on mingwin32
Message-Id: <35EDCF3C.3D67246@spider.herston.uq.edu.au>

Go to the Win32 subdirectory and read the README file.  Sarathy points
you to a site from which you can download dmake.  IIRC, he even states
that GNU make won't work.  But I'm pretty sure that both GCC and EGCS
with mingw32 are mentioned.

-- 
Jaime Metcher

balestra@ppg.com wrote:
> 
> I am trying to install perl 5.005_51 on mingwin32 with gcc.
> 
> The problem is that there is no particular instruction for this environment
> (or, better, I didn't find them) and the makefile for visual c++ or Borland
> c++ does not work with the make I download with mingwin32.
> 
> Doe someone has a clue? Dos someone has a makefile that I can edit for my
> installation?
> 
> Thank you in advance
> 
> --
> Massimo Balestra     EMAIL: balestra@ppg.com
> System Engineer      Phone: +39-0131-770.507
> PPG Italia
> 
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Wed, 02 Sep 1998 17:08:17 -0500
From: yong <yong@shell.com>
To: marad@usa.net
Subject: Re: mod_perl configuration
Message-Id: <35EDC1D1.B5CB315B@shell.com>

>> There were such problems in particular combinations of some earlier
>> versions of these that have since been resolved.
>>    There may be something else in one of the *.conf files that's
>> causing this problem - for example, do you have a ScriptAlias
>> definition pointing to the same directory?

>No.

I think that's the problem. It wasn't a problem till Apache 1.2.6 if I remember
right. But there may be some way to solve the problem (which may be what the Apache
group expects us) but I just set that alias to make CGI work and didn't bother
reading the documentation in greater detail.

Yong Huang
Email:yong@shell.com



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

Date: 2 Sep 1998 22:18:09 GMT
From: randy@theory.uwinnipeg.ca (Randy Kobes)
Subject: Re: mod_perl configuration
Message-Id: <slrn6urhgb.9t9.randy@theory.uwinnipeg.ca>

On Wed, 02 Sep 1998 21:01:50 GMT, marad@usa.net <marad@usa.net> wrote:
>First, many thanks to everyone who is assisting me.
>
>>In article <comdog-ya02408000R2808982119520001@news.panix.com>,
>>  comdog@computerdog.com (brian d foy) wrote:
>> In article <6s72au$7gi$1@nnrp1.dejanews.com>, marad@usa.net posted:
>>[snip]
>> >Alias /perl/ /usr/apache/share/perl/
>> ><Location /perl>
>> >SetHandler perl-script
>> >PerlHandler Apache::Registry
>> >Options ExecCGI
>> ></Location>
>
>>Try to include "PerlSendHeader On" within that <Location>.
>
>Changing this setting didn't seem to do anything. It's hard to tell what's
>going on because no error messages are reported in the log; the page just
>comes up showing the source, not running it. If I activate CGI, the test-cgi
>script (running in the cgi-bin directory, not ../perl), says Apache/1.3.1
>(Unix) mod_perl/1.15, so I'm pretty sure the compile went okay.
>
[snip]

Hi,
   In your script, are you sending the HTTP header explicitly like
	print "Content-type: text/html\n\n";
I believe you have to do this with PerlSendHeader set to be On within that
Location. However, if you're using CGI.pm to send the HTTP header in
your script, then PerlSendHeader should be Off.

-- 
		Best regards,
		Randy Kobes

Physics Department		Phone: 	   (204) 786-9399
University of Winnipeg		Fax: 	   (204) 774-4134
Winnipeg, Manitoba R3B 2E9	e-mail:	   randy@theory.uwinnipeg.ca
Canada				http://theory.uwinnipeg.ca/


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

Date: Wed, 02 Sep 1998 18:00:18 -0400
From: mshavel@erols.com (Michael Shavel)
Subject: Re: MS Word to Text conversion
Message-Id: <mshavel-0209981800180001@130.9.16.207>

In article <35ed7a77.415180768@news.wma.com>, emercer@wma.com (Ernie
Mercer) wrote:

> I'm in urgent need of a Perl module/script (heck, any command line
> application) that can be used to convert larger numbers of MS Word
> (.doc) documents into plain text (.txt) files. Anyone know of such a
> critter? Thanks.
> 
> Ernie Mercer
> emercer@wma.com

I have just been working on such a script and came looking in this newsgroup 
for some advice as well. My first shot at this is to use the UNIX
(strings) program to parse out all the Ugly Binay stuff and then parse the
remaning stuff
as well. I know this is not the BEST way to do this but for my purposes
(extracting a few lines from a series of word docs) it is working pretty
well. 
If you would like to see the beginnings of the script let me know. 

You are a programmer working on Writing a script I assume. Otherwise this
will not do you much good. 


-Mike
mshavel@erols.com


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

Date: 3 Sep 1998 02:27:57 +0800
From: "Liew Fook Sin" <lfs97@tm.net.my>
Subject: perl and pgp on unix
Message-Id: <01bdd71d$90d14860$89b6bcca@tm.net.my>

I am doing a project for a course that require me to use pgp to encrypt in
coming files and save then in a server. Pgp should be activated using a cgi
written in Perl. Can't it be done. If so how?

Thank you

Liew from Penang


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

Date: Wed, 02 Sep 1998 17:09:28 -0600
From: Ky Nguyen <knguyen@ab.bluecross.ca>
Subject: Re: Perl compiler
Message-Id: <35EDD027.2AD48EFD@ab.bluecross.ca>

Bart Lateur wrote:

> Lily Y. Fu wrote:
>
> >I didn't want them to read the text, simply
> >because I have password embedded in the program
> >in clear text.

Even if you hide it in a compiled binary, if you let the usersread it,
they can strings (in Unix) to find out what that is.

> >I would appreciate you guys help me out
> >on "protecting the password" issue...
>

We had big debate about "security" on our site similar to what
going on on this thread. The way I see it is security is like a
bolt lock at your door. Most people look at this and assume
that the house is locked. Few might want to enter and then
realize that the house is actually locked. Among these people,
some might want to gain access. And if they are good enough
they can -- specially those that make the bolt lock.

PS: I think the "compile vs non-compile" topic is within perl
newsgroup but the "security" topic is not.



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

Date: 2 Sep 1998 23:33:16 GMT
From: stanley@skyking.OCE.ORST.EDU (John Stanley)
Subject: Re: Perl compiler
Message-Id: <6skkjs$h44$1@news.NERO.NET>

In article <joe.mcmahon-0209981135520001@prtims.stx.com>,
Joe McMahon <joe.mcmahon@gsfc.nasa.gov> wrote:
>What I'm failing to understand is this.
>
>We'll assume for the sake of argument, that your software is perfect and
>will never need maintenance, upgrades or support; that it will not be used
>in a business-critical application in which it is crucial to the company
>which is using it to have it fixed fast if it breaks; and that there is no
>need to train people in how to use it, or to write books illustrating its
>proper application in a wide range of areas.

You know, not a single thing you have mentioned in that paragraph has
anything to do with compiling or obfuscating code. Compiled code can be
maintained, it can be upgraded, it can be supported. You can provide
24/7 support if it is a critical application. You certainly can train
people how to use software that has been compiled, and there are tens of
thousands of books published on using compiled code.

>Now that we have these methods of profiting from the program out of the
>way -- 

Maybe that's why you don't understand. None of those ways of profiting
are "out of the way" when you compile or obfuscate code. In fact, if the
customer does not have the source, you are more likely to get paid to
support the code since they cannot support it in-house. They will
possibly get faster support for critical fixes because they will
immediately call the person who knows the code intimately instead of
investing any time in having the IT department looking in the code.

>Why, if you have created software system X, investing a lot of money in
>programmer time, facilities, etc., and believe that software system X is
>worth more money, do you not think investing in a few hours of lawyer time
>to have a licensing agreement drawn up is a good idea? 

Nobody has said it is bad to have a licensing agreement.  Once again,
what you have asked about has nothing to do with compiling or
obfuscating code.  Have you not noticed that Microsoft has lots of
licences, and I can't think of one single program that they provide as
source.

What has been said is that licensing agreements do not prevent code
theft, they only provide legal remedies when it happens. If there is no
way of catching a violation, then licenses aren't worth much.

>People are less likely to try to get around a licensing agreement, because
>breaking a licensing agreement and getting caught will cost them money --

Ahhhh, you say it but you don't see it. "And getting caught." If they
don't get caught, it costs them nothing. If they do get caught and you
can't afford to sue them, it costs them nothing. If they think you
cannot catch them or you do not have the resources to sue them, then
only if they pay you for the copies they are using does it cost them
money.

>they could, for instance, lose access to the software, making their

How in God's name do you "lose access" to perl code once you have it in
your hand? If I can't afford to sue you, what stops you from using it?

>investment in it a loss. Companies HATE losses. They could end up paying
>you a lot of money in court. Companies HATE being sued and losing. 

And companies are made up of individuals, some of whom hate having to
pay licensing fees for software. 

>Breaking a security method -- whatever method -- will not cost them any
>money, 

You undervalue the cost of a programmer's time. Unless they happen to
have a hacker on staff who does this in his spare time, they will have
to pay someone to do it. Even if it is someone on staff, they are paying
him to do it instead of doing something else. It's a cost. 

>unless there is a specific agreement that says they know that they
>are breaking a contract with you if they even try it.

And this won't cost them any money unless they get caught and they get
sued. If it's source code you give them, I cannot imagine how you would
catch them.



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

Date: Wed, 02 Sep 1998 17:59:14 -0500
From: John Warner <support@acuity.com>
Subject: Re: PERL is horrible
Message-Id: <35EDCDC1.9B1E4A3A@acuity.com>

Learning Perl is certainly a good start.  Many of my customers have found _Perl 5 for Dummies_ published
by IDG extremely helpful.  As for learning regular expressions, I found_Mastering Regular Expressions_ by
Jeffrey Freidl (published by O'Reilly) the most helpful resource.

Larry Rosler wrote:

> [Posted to comp.lang.perl.misc and copy mailed.]
>
> In article <6secal$m2o$1@eros.clara.net> on Mon, 31 Aug 1998 15:28:31
> +0100, Jules <julius@clara.net> says...
> ...
> > I'm struggling to understand Larry Wall and the lot, on the camel book Programming Perl published by
> > O'Reilly. Is there any other "dummy" or "die unless $jules =~ s/java_mind/perl_mind/g" book on Perl
> > which is good? I think I will need that. =(
>
> From <URL:http://www.perl.com> (actually, from the link at the bottom,
> until they go back to their regular format from the Perl Conference
> stuff), you will find a link 'Books and Magazines' to book reviews and
> recommendations.  The book for novices that most people here recommend is
> 'Learning Perl', ISBN: 1-56592-284-0, by Randal L. Schwartz and Tom
> Christiansen.
>
> BTW, set your newsreader to wrap lines at 72 characters in the future.
>
> --
> (Just Another Larry) Rosler
> Hewlett-Packard Laboratories
> http://www.hpl.hp.com/personal/Larry_Rosler/
> lr@hpl.hp.com





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

Date: Wed, 02 Sep 1998 17:48:20 -0500
From: John Warner <support@acuity.com>
Subject: Re: perl scripts as NT services?
Message-Id: <35EDCB34.57A19191@acuity.com>

If you have the NT Resource Kit installed you can probably find
a way to do with the AT command which schedules tasks.  From the
on-line documentation, AT is designed to work with dates not
events.

Alex Tatistcheff wrote:

> Use srvany in the NT Resource Kit.
>
> Chris Roelle wrote:
>
> >     Hello -
> >
> >     does anyone know how i can run a perl script
> > as an NT service?  just need to get it going at
> > boot-up, as a regular user (who could be an Admin,
> > i guess), without automatically logging in.  help/http/ftp
> > addresses w/ instructions welcome, of course, as i
> > would gladly rtfm, if  i could find one....
> >
> >     thanks a lot,
> >
> >     chris roelle
> >     cr@ucsd.edu
>
> --
>
> ----------------------
> Please remove NOSPAM from email address when replying
>
> Alex Tatistcheff
> alext @ pobox . com





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

Date: Wed, 02 Sep 1998 21:47:39 +0000
From: Jim Amrhein <amrhein@harp.gsfc.nasa.gov>
Subject: Perl subprocesses
Message-Id: <35EDBCFB.E1045E84@harp.gsfc.nasa.gov>

Hello,
    I'm  trying  to have a perl program call a second perl program and
have it use the same version
    of  perl as  it's parent ???

The following

#  This program uses 2 versions of perl , one in mycopy and the system's
version of perl
#!/usr/people/mycopy/bin/perl -w

# This can't be hardcoded and I can't add  the  perl path to the second
file.
system "perl Makefile.PL";

                                                                Thanx,

Jim Amrhein



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

Date: Wed, 2 Sep 1998 22:38:05 GMT
From: "paulc" <paul.cao@compaq.com>
Subject: Run Word 97 macro from Perl error?
Message-Id: <EyoHJL.Ht4@twisto.im.hou.compaq.com>

Hi,
    I used the following perl script to run a Word 97 macro but doesn't
work.
the script is as following:

use Win32::OLE;
my $wdapp1 = Win32::OLE->new('Word.Application.8','Quit')
||   die "CreateObject: $!";
$wdapp1->{Visible} = 1;
$doc1 = $wdapp1->Documents->Open("E:\\perl\\vba\\fdr\\word\\mix.doc");
$wdapp1->Run("ConvertCNew6");
$doc1->SaveAs("e:/perl/vba/fdr/word/mix.doc");
$doc1->Close();
$wdapp1->Quit();

The error that it produce is:

OLE exception from "Microsoft Word":

Unable to run the specified macro

OLE error 0x800a1219
    in methodcall/getproperty "Run" at wrd3.pl line 6");

Basically, I was able to run this macro manually. The macro's function is to
format
the whole document to a certain font and size.


Thanks

Paul









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

Date: 2 Sep 1998 22:45:22 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: simple prog that causes Segmentation fault
Message-Id: <904776265.618498@thrush.omix.com>

Pascal Rigaux <rigaux@pomme.irisa.fr> wrote:
: Look at this prog:
        >snip<

        Fixed in 5.00502.

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


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

Date: Wed, 02 Sep 1998 23:29:52 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Tom Phoenix: ANSWERS WANTED!
Message-Id: <QxkH1.300$kE2.1266217@news.shore.net>

Birgitt Funk (birgitt@hamburg.citde.net) wrote:

: Why should a FAQ question get more than a pre-canned response. There
: is a lack of content or depth in the question, so there can't be
: a mass of content or depth in the answer.

When a question is a FAQ, it's definitely FREQUENT these days!

: FAQ questions and T.P.'s answers are easily skipped over. What
: clutters are threads like these.

As unpleasant the discussion, it's not somebody asking for a FAQ for a
change!

: Does this concern you, if they don't return or are you glad they don't
: ?
: Why is it of any importance at all ?

And thanks very much for your input.  It's appreciated!  Keep up the
good work and hope this helps!

--
Nate Patwardhan|root@localhost
"Fortunately, I prefer to believe that we're all really just trapped in a
P.K. Dick book laced with Lovecraft, and this awful Terror Out of Cambridge
shall by the light of day evaporate, leaving nothing but good intentions in
its stead." Tom Christiansen in <6k02ha$hq6$3@csnews.cs.colorado.edu>


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

Date: Wed, 02 Sep 1998 23:34:33 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Tom Phoenix: ANSWERS WANTED!
Message-Id: <dCkH1.301$kE2.1266217@news.shore.net>

Chris Russo (news@russo.org) wrote:

: "Nathan V. Patwardhan" == "Mee"

Definitely not!  Perl's regular expressions are wonderful and I've no
complaints!

: Even if it's not true, their equally plonkable.

If it suits you and the plonk does what you expect, you've definitely
come to the right place.  I've decided that a grammar flame would be
tactless so I won't correct your misuse of 'their'.  Hope this helps!

--
Nate Patwardhan|root@localhost
"Fortunately, I prefer to believe that we're all really just trapped in a
P.K. Dick book laced with Lovecraft, and this awful Terror Out of Cambridge
shall by the light of day evaporate, leaving nothing but good intentions in
its stead." Tom Christiansen in <6k02ha$hq6$3@csnews.cs.colorado.edu>


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

Date: Wed, 2 Sep 1998 16:33:18 GMT
From: David Corcoran <david.corcoran@pss.boeing.com>
To: John Hagen <john.b.hagen@boeing.com>
Subject: Re: What is a "Real Programming Language"?
Message-Id: <35ED734E.FD93677F@pss.boeing.com>

No disscussion about Real Programming Languages would be complete
without a definition of Real Programmers:

	http://pcsel10.scu.edu/jhoward/r_prog.html

John Hagen wrote:
 
> Greetings, earthlings.
 
> However, the programmers I work with maintain that Perl is not a "real
> programming language", only C, C++ and Fortran are, since they are


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

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


Administrivia:

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

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


The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 3623
**************************************

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