[11886] in Perl-Users-Digest
Perl-Users Digest, Issue: 5486 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Apr 26 13:16:58 1999
Date: Mon, 26 Apr 99 10:00:19 -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, 26 Apr 1999 Volume: 8 Number: 5486
Today's topics:
Re: "learning perl" does not seem to be written well ralawrence@my-dejanews.com
Re: "learning perl" does not seem to be written well <tchrist@mox.perl.com>
Re: "learning perl" does not seem to be written well <jbc@shell2.la.best.com>
Re: "learning perl" does not seem to be written well <jeff@vpservices.com>
Re: Administration Scripts Win-NT Perl <cassell@mail.cor.epa.gov>
Re: Better implementation of the modulus function? (Ilya Zakharevich)
Re: cgi script <jbc@shell2.la.best.com>
Re: chdir??? <cassell@mail.cor.epa.gov>
Re: Different between recurrence and looping <qwizzer2@hotmail.com>
Re: Encrypt/Decrypt <jwilson@ic.ac.uk>
Re: FAQ 7.14: How can I pass/return a {Function, FileHa (Andrew Allen)
Re: FAQ 7.22: How do I create a switch or case statemen (Andrew Allen)
Re: Fork() for windows <cassell@mail.cor.epa.gov>
Re: Free Web Hosting with CGI <cassell@mail.cor.epa.gov>
Re: How do i print something using perl? (Ilya Zakharevich)
Re: Is there Perl code to parse C++ programs? <t-armbruster@ti.com>
Re: pearl sdf spf (Thomas Arneberg)
Perl and Oracle.. pdean@pcmars.cs.ndsu.nodak.edu
perl binary for SCO-3 UNIX on i386 <gh@fh-sw.de>
Re: perl binary for SCO-3 UNIX on i386 <gellyfish@gellyfish.com>
Re: perl binary for SCO-3 UNIX on i386 <gh@fh-sw.de>
Re: perl binary for SCO-3 UNIX on i386 <gh@fh-sw.de>
Re: Perl operate autonomously? <hove@ido.phys.ntnu.no>
Pre-newbie needs help getting started <borger@ix.netcom.com>
Re: Pre-newbie needs help getting started <gellyfish@gellyfish.com>
Retrieving a file from the server and displaying it in manny99@my-dejanews.com
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 26 Apr 1999 15:49:10 GMT
From: ralawrence@my-dejanews.com
Subject: Re: "learning perl" does not seem to be written well
Message-Id: <7g21tk$ijg$1@nnrp1.dejanews.com>
In article <7g1o7q$94d$1@nnrp1.dejanews.com>,
mikecard@my-dejanews.com wrote:
> hi
>
> listening to suggestions from this group i purchased "learning perl" to...uhm
> learn perl (i was trying the various online tutorials but found they were
> making assumptions where they should not)
>
> i am only on page 13 and i am already getting aggrevated. the book introduces
> the =~ operator in an example but never explains what it is (they just seem to
> assume you'll figure it out, but since this is supposedly a book for beginners
> NO assuptions should be made).
>
I've been learning from the very same book and came to the conclusion that it
was fantastic (hi Randall). But onwards.
> then they give an example for turning an inputed variable to lower case with
> the expression $name =~ s/\W.*//; the eplanation says this command is
> supposed to "zap" all the characters in this expression and replace them
> with nothing...so, uhm if you take the contents of this scalar and replace
> them with nothing, where does it go, ascii purgatory? if the contents
of
> this scalar are replaced with nothing how can you make the contents lower
> case (aren't you just making nothing lower case)
>
Okay, for starters. $name =~ s/\W.*//; will indeed do a search and replace on
those characters literally zapping them. But hold on there bud, this is the
stroll though Perl, you're not expected to be learning about it much yet. Just
typing in the code and seeing that it works.
Here is how I see it (and I *am* a newbie so bear with me). s/\W.*// matches
any words (\W) followed by any character (.) any number of times (*). Since \W
is greedy (ie. it takes as many character as it can) then this is basically
saying replace any characters with nothing.
Remember, perl strings are not fixed length like C. You can do a search and
replace like this and they'll happily comply.
HOWEVER, I really do suggest you continue learning. You will be told all about
this in chapter 7 (which is where I learnt all that from).
> i am very frustrated that i threw down my hard earned money (which i have no
> problem doing if the product is as its advertised...in this case a BEGINNERS
> book on perl, if this is a beginners book EVERYTHING should be explained and
> explained well).
It is. You've not made it past the stroll yet. Thats not designed to explain
everything, just to show you what you can do.
> and one last thing, what the f*ck is SED AWK and GREP. the
> book keeps making references to this and i do not have a clue what they are.
Okay. Sed and awk are small programming languages. Grep is a command under
unix which allows you to list lines that match a pattern. All these are
explained much better in later chapters.
Trust me.
>
> is there a perl book out there that is actually written for beginners.
>
Yep, you have it. On a slightly different note, what is the next best one to
get now? Considering I like Randalls writing style and the "learning perl"
book?
> thanks for enduring my rant i feel much better
Keep reading, you'll get there.
Rich
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 26 Apr 1999 10:22:52 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: "learning perl" does not seem to be written well
Message-Id: <372492dc@cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc, mikecard@my-dejanews.com writes:
:I look forward to the next chapters and hopefully will be ready to move
:on to "Programming Perl" before long!
As others have pointed out, _Learning_Perl_ (the LLama) is really only
tuned for those programmers (not non-programmers aka Prisoners of Bill)
already conversant with the small-script culture that gave birth to
Perl; that is, the Unix sysadmin cum toolsmith culture. There is a
conceptual leap from non-programmer to lightweight programmer that
Learning Perl does not attempt to handle. Nor, to be honest, does it
tackle the growth path from accidental to professional programmer --
but I don't think that that is your problem.
After you're done gnashing your teeth over _Learning_Perl_, instead of
jumping right into the full-blown reference that is _Programming_Perl_
(the Camel), you might have better luck looking at _The_Perl_Cookbook_
(the Ram), which does a better job at providing results-oriented examples.
You can download the code examples from the book as a sampler from
ftp://ftp.oreilly.com/published/oreilly/perl/cookbook/
And view other materials, including a complete chapter, at
http://www.ora.com/catalog/cookbook/
I'm hardly a disinterested party, but if you read the covers off all
three cited creatures, you will see that I might perhaps know what I'm
talking about. :-)
You should probably peruse Amazon, Slashdot, and other sources of online
reviews to get a feel for the variety of Perl books. Some allege to
cater more to those of lesser experiences, although with the possible
exception of _Cross_Platform_Perl_, I don't think they deliver, but then
again I may not be the best judge of that. For serious and self-confident
programmers, _Perl:_The_Programmers_Companion_ is a much better book than
the LLama. The Ram should have something in it for everyone from acolyte
to grand vizier. You might also check out the _Perl_Desktop_Reference_
(for like $6.95) for a quickref approach.
--tom
--
English is a 5-tuple ... --dmr
------------------------------
Date: 26 Apr 1999 16:49:49 GMT
From: John Callender <jbc@shell2.la.best.com>
Subject: Re: "learning perl" does not seem to be written well
Message-Id: <3724992d$0$238@nntp1.ba.best.com>
Randal L. Schwartz <merlyn@stonehenge.com> wrote:
> Page 13 is still in chapter 1. You are reading through the brief
> runthrough of everything that appears in later chapters. It will be
> explained much more thoroughly later.
For what it's worth, I had exactly the same reaction to the Llama's
quick run-through when I first picked up the (then magenta) book
several years ago. I was in pretty much the same boat as this thread's
original author, with no formal programming/Unix background to speak
of, and I started to get panicky about halfway through the first
chapter.
It was a tremendous relief when I got to chapter 2 and realized that
the rest of the book did not continue at the same pace, but instead
covered the same material in much more detail.
I'm sure it's stated quite clearly somewhere that the first chapter is,
in fact, an *overview* of what will be covered in the rest of the book,
but given the number of unfamiliar concepts programming/Unix newbies
are juggling at that point it's understandable, perhaps, that we
overlooked that.
Or maybe the two of us were just incredible dweebs, and no one else has
ever had that problem. *shrug*
--
John Callender
jbc@west.net
http://www.west.net/~jbc/
------------------------------
Date: Mon, 26 Apr 1999 08:47:40 -0700
From: Jeff Zucker <jeff@vpservices.com>
Subject: Re: "learning perl" does not seem to be written well
Message-Id: <37248A9C.444BE8D1@vpservices.com>
mikecard@my-dejanews.com wrote:
>
> i am only on page 13 and i am already getting aggrevated. the book introduces
> the =~ operator in an example but never explains what it is
That section is titled "A Stroll Through Perl". It clearly states its
purpose: "The explanations here are extremely brief -- each subject area
is discussed in *much* greater detail later in this book. But this
little stroll should give you a quick taste ..."
So Randall has told us he is only giving us a quick taste and that the
real explanations come later in the book. It's like those Japanese
restaurants that have the plastic replicas of different meals in the
window: the plastic replicas are intended to give a quick idea of
what's available, they are, I would imagine, quite unsatisfactory if you
try to eat one.
> then they give an example for turning an inputed variable to lower case with
> the expression $name =~ s/\W.*//;
Well, no, the book doesn't say that expression turns anything into
lowercase. It says that expression is to get rid of non-word characters
in preparation for turning the rest of the string into lower case.
> uhm if you take the contents of this scalar and replace them with nothing,
> where does it go, ascii purgatory?
That's an interesting question, hold it in the back of your mind and
revisit it from time to time. I don't know if you (or I) will ever know
its full answer, but thinking about it helps develop programming
abilities the way other such theologically oriented questions do. If
you're not comfortable holding questions in the back of your mind and
revisiting them, then maybe Perl is not the best language for you and/or
maybe "Learning Perl" is not the best introduction for *you*.
--
Jeff
------------------------------
Date: Mon, 26 Apr 1999 09:39:24 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Administration Scripts Win-NT Perl
Message-Id: <372496BC.811F18A8@mail.cor.epa.gov>
Darren Bennett wrote:
>
> I have been looking to setup a collection of WIN -NT Administrative
> perl scripts that could do similiar functions as shell scripts in Unix
> (Administrative account tracking, Directory/disk usage..etc..).. anyone with
> any (or any ideas/links) please reply... THANKX!!
>
> Celtic
Did you know that the O'Reilly `octopus' book NT Administration is
all Perl? Have you checked out Dave Roth's latest book? Both are
excellent sources of NT admin info.
HTH,
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior Computing Specialist phone: (541) 754-4468
mathematical statistician fax: (541) 754-4716
------------------------------
Date: 26 Apr 1999 16:13:00 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Better implementation of the modulus function?
Message-Id: <7g23ac$ms2$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Don Roby
<droby@copyright.com>],
who wrote in article <7g1pt9$ans$1@nnrp1.dejanews.com>:
> If your number is larger than your system's maximum integer, you won't be
> working purely with integers anyway. Perl automatically casts to float when
> necessary.
Not in this case. But I hope that % works better in 5.005_57.
Ilya
------------------------------
Date: 26 Apr 1999 16:36:50 GMT
From: John Callender <jbc@shell2.la.best.com>
Subject: Re: cgi script
Message-Id: <37249622$0$238@nntp1.ba.best.com>
Gil Zigelman <zgil@cs.technion.ac.il> wrote:
> I am writing a cgi script using perl.
> In my script, I need to modify a file. The problem is that the script
> doesn't modify the file unless I give full writing permissions to the
> file, which is something I obviously to not want.
I have a (very watered-down, hopefully newbie-friendly) discussion of
this issue in my Beginner's Guide to CGI Scripting with Perl, at:
http://www.lies.com/begperl/guestbook.html#perms
The three approaches outlined there are:
1) make the file you want to write to be owner-writeable, and be owned
by the same user as the Web server process ('nobody' or 'www' or
whatever). A variation on this would be to have the file owned by the
Web server's group, instead, and make it group writeable.
2) have the CGI script run in setuid mode, such that it can write to
owner-writeable files owned by you. This will require you to deal with
tainting, which is a good idea anyway.
3) make the file you want to write to world-writeable (which you
already know about).
Under Unix, those are basically your choices. Each has pluses and
minuses.
--
John Callender
jbc@west.net
http://www.west.net/~jbc/
------------------------------
Date: Mon, 26 Apr 1999 09:37:05 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: chdir???
Message-Id: <37249631.FCDC343E@mail.cor.epa.gov>
long_way_home@my-dejanews.com wrote:
>
> Hi. I can't seem to get the chdir command to work. I run my script and then
> the damn thing doesn't complain..... or work. It doesn't seem to change the
> working directory. here it is #! /bin/perl5 use Cwd;
>
> print "Welcome to CSD on thor. Who are you?\n"; $person = <STDIN>;
> chomp($person); $path=cwd(); $succ=mkdir($person,0777);
> open(logfile,'>>/tmp/csdlog'); $date = `date`; chop($date); print (logfile
> "$date $person\n"); if ($succ == 1){ chdir "$path/$person" or die
> "Can't cd to $person: $!\n"; print "Welcome $person. A directory has
> been created for your files \n"; print "and you should move to it (cd
> dir). If you need to use the help \n"; print "type \"csdhelp\". I don't
> know how to use the program so you're not\n"; print "getting help on
> that front from me but anything system related you \n"; print "can talk to
> me. PS make sure the CSD DATABASE V5.17 CD is in the drive\n"; } if ($succ ==
> 0){ $us=`du -k $person`; chop($us); ($amt,$gar)=split(/\s+/,$us);
> $amt .= "K"; # $hm="$path/$person";
>
> chdir "$path/$person/" or die "Can't cd to $person: $!\n";
> print "Welcome back $person. You are using $amt space.\n";
> print "PS make sure the CSD DATABASE V5.17 CD is in the drive\n";
> }
>
> What am I doing wrong???
A number of things. The big thing you're doing wrong with respect to
your given question is "not reading the FAQ". Specifically, in
perlfaq8:
"I {changed directory, modified my environment} in a perl script. How
come the change disappeared when I exited the script? How do I get my
changes to be visible?"
As you know, the script executes as a different process from the shell
in which it was started. Therefore, the changes aren't reflected in
the parent process. Check out the FAQ [and the comp.unix.questions
FAQ] for a bit of shell magic to work around this.
However, there are other things you are doing which are going to be
important in other programs [if not this one]. I'll start by
assuming that the ghastly non-formatting above is due to evilness on
the part of your newsreader. But I highly recommend adhering to
the perlstyle guidelines.
Let perldoc be your friend, and the docs your guide.
Always use -w on the shebang line.
use strict;
Don't waste time shelling out to get things like `date` when Perl
has built-ins to do the same (or better) for less cost.
Use here-docs instead of multiple print() lines.
Learn about chomp(), which is often better than chop().
Perl has nice flow constructs, like if-then-elsif, and unless.
And 42 more things I forgot. :-)
> Thanks
You're welcome,
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior Computing Specialist phone: (541) 754-4468
mathematical statistician fax: (541) 754-4716
------------------------------
Date: Mon, 26 Apr 1999 11:24:57 -0500
From: "Joe Taylor" <qwizzer2@hotmail.com>
Subject: Re: Different between recurrence and looping
Message-Id: <1E8902574FF4A57D.5A88244A47C24516.AD6BFC4F5BF02748@library-proxy.airnews.net>
Right. Don't bother with it. I mean, you can do a proof by reductio ad
absurdum or by induction. Ergo, you don't need to bother with induction
because you can achieve proof via reduction ad absurdum. You can also pound
a screw into a wall with a hammer, therefore you don't need to learn about
screwdrivers. I recommend studying only what you need to to get the job
done, despite the elegance or possible efficiency of other techniques.
That's what the difference between programmers and engineers is.....
Carfield Yim wrote in message <3720BBE6.C3DC5EAC@polyu.hknet.com>...
>It seen that looping can do the work of recurrence call, is there any
>different other than concept? Why do we need to study more?
>
------------------------------
Date: 26 Apr 1999 16:33:06 GMT
From: "Jeff Wilson" <jwilson@ic.ac.uk>
Subject: Re: Encrypt/Decrypt
Message-Id: <01be9002$76d3a9f0$d53ec69b@leicester>
I don't know how secure this method is (not doubt somebody will tell us)
but it seems to work quite well.
Take as a password a word or phrase, multiply each characters asci value by
the next and feed the result to the random number generator.
To encrypt take each visable character, and space, in the file by turn and
increase it's asci value by the next random number generated to produce
it's replacement - going back to 32 if too large (think of all the visable
characters and space being on a wheel). Thus the characters "aaaaa bbbbb"
could be changed to "w^1baXd hT!". To decrypt, supply the same password and
reverse the process.
My Perl script for this is 96 lines long - email me if you want a copy.
--
Jeff Wilson
London ~ UK
vilo8720@my-dejanews.com wrote in article
<7fqhrq$eje$1@nnrp1.dejanews.com>...
> Is there any encryption perl library (or any other utility for perl) to
> encrypt data before storing them into file and then decrypt them after
> reading them from file? I don't mean crypt() function because that let's
you
> only encrypt, there is no way of changing encrypted text with crypt()
back to
> original text. I mean some Encrypt/Decrypt system.
>
> thanks
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
------------------------------
Date: 26 Apr 1999 16:39:54 GMT
From: ada@fc.hp.com (Andrew Allen)
Subject: Re: FAQ 7.14: How can I pass/return a {Function, FileHandle, Array, Hash, Method, Regexp}?
Message-Id: <7g24sq$4v8$1@fcnews.fc.hp.com>
Tom Christiansen (perlfaq-suggestions@perl.com) wrote:
: How can I pass/return a {Function, FileHandle, Array, Hash, Method, Regexp}?
<snip>
: Passing Regexps
<snip>
Seems like qr{} should probably be mentioned here.
: To pass regexps around, you'll need to either use one of the
: highly experimental regular expression modules from CPAN (Nick
: Ing-Simmons's Regexp or Ilya Zakharevich's Devel::Regexp), pass
: around strings and use an exception-trapping eval, or else be
: very, very clever. Here's an example of how to pass in a string
: to be regexp compared:
: sub compare($$) {
: my ($val1, $regexp) = @_;
: my $retval = eval { $val =~ /$regexp/ };
: die if $@;
: return $retval;
: }
: $match = compare("old McDonald", q/d.*D/);
: Make sure you never say something like this:
: return eval "\$val =~ /$regexp/"; # WRONG
: or someone can sneak shell escapes into the regexp due to the
: double interpolation of the eval and the double-quoted string.
: For example:
: $pattern_of_evil = 'danger ${ system("rm -rf * &") } danger';
: eval "\$string =~ /$pattern_of_evil/";
: Those preferring to be very, very clever might see the O'Reilly
: book, *Mastering Regular Expressions*, by Jeffrey Friedl. Page
: 273's Build_MatchMany_Function() is particularly interesting. A
: complete citation of this book is given in the perlfaq2
: manpage.
------------------------------
Date: 26 Apr 1999 16:48:16 GMT
From: ada@fc.hp.com (Andrew Allen)
Subject: Re: FAQ 7.22: How do I create a switch or case statement?
Message-Id: <7g25cg$4v8$2@fcnews.fc.hp.com>
Tom Christiansen (perlfaq-suggestions@perl.com) wrote:
: (This excerpt from perlfaq7 - Perl Language Issues
: ($Revision: 1.25 $, $Date: 1999/04/14 03:46:19 $)
: part of the standard set of documentation included with every
: valid Perl distribution, like the one on your system.
: See also http://language.perl.com/newdocs/pod/perlfaq7.html
: if your negligent system adminstrator has been remiss in his duties.)
: How do I create a switch or case statement?
You mean you're not going to mention the "goto EXPR" method ;)
Andrew
------------------------------
Date: Mon, 26 Apr 1999 09:54:35 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Fork() for windows
Message-Id: <37249A4B.BA4FB5CA@mail.cor.epa.gov>
Lawrence Ng wrote:
>
> Is there a fork equivalent in Perl for windows?
Umm.. well.. am I under oath here?
> I am trying to do this.
> I use a perl script to start Matlab and then before the matlab finish
> running, I want to open a web page at the client's side to display the
> Matlab results (MAtlab is still running). However, I cannot do this because
> perl waits for Matlab to finish executing before it opens the web page. Can
> someone tell me how to "fork" processes in windows?
Install linux. :-)
But seriously, folks. You might want to look into the
Win32::Process module (which comes with ActiveState Perl BTW).
One of the available methods is Win32::Process::Create .
I believe that one of the permitted $cflags allows you to spawn
off a detached process.
If you decide that you want a true fork() and a real honest-to-Bill
win32 system, you might look into installing the Cygwin32 version of
Perl, which has a real fork() and alarm().
> Also, I am trying to retrieve several web pages using the LWP package
> function "get". Can I get them all at one time (something like a fork
> process) so that I don't have to wait for Perl to get them one by one.
>
> Thanks
You're welcome,
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior Computing Specialist phone: (541) 754-4468
mathematical statistician fax: (541) 754-4716
------------------------------
Date: Mon, 26 Apr 1999 09:45:16 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Free Web Hosting with CGI
Message-Id: <3724981C.8B8C49CF@mail.cor.epa.gov>
Bob Trieger wrote:
>
> "Paul A. Fortin" <pafortin@i-1.net> wrote:
> >Is there a site out there that allows CGI hosting and that is free.
> >I've tried "webjump" but they severely limit what you can do in a script
> >and it has become an irritant?
>
> And this has something to do with perl?
<jumping up and down madly>
Good answer! Good answer!
</jumping up and down madly>
:-)
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior Computing Specialist phone: (541) 754-4468
mathematical statistician fax: (541) 754-4716
------------------------------
Date: 26 Apr 1999 16:10:35 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: How do i print something using perl?
Message-Id: <7g235r$mpn$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Tom Christiansen
<tchrist@mox.perl.com>],
who wrote in article <3724500f@cs.colorado.edu>:
> In comp.lang.perl.misc,
> ilya@math.ohio-state.edu (Ilya Zakharevich) writes:
> :Wow, what an informative error message! open() has something to do
> :with fork() only on systems with unfortunately primitive process
> :starting API:
>
> Ilya, please go soak your head. Why do we have to listen to
> your ranting about why OS/2 is a Gift from God? I am tired
> of it. You still don't get it, and never will, and won't shut up.
Do not get what? That EMX has fork(), exec(), AND spawn(), while it
is *impossible* to code spawn() with POSIX API?
Ilya
P.S. Well, I think I *may* know how to code some good approximation
to spawn() with POSIX, but I doubt Tom is up to this task.
------------------------------
Date: Mon, 26 Apr 1999 11:46:17 -0500
From: "Tim Armbruster" <t-armbruster@ti.com>
Subject: Re: Is there Perl code to parse C++ programs?
Message-Id: <3P0V2.6$GU3.601@dfw-service1.ext.raytheon.com>
I'm not sure about C++, but the ANSI C grammar fro Yacc and Lex is available
at:
http://www.lysator.liu.se/c/ANSI-C-grammar-y.html
and
http://www.lysator.liu.se/c/ANSI-C-grammar-l.html
if that helps.
Matthew Blais wrote in message <37248e62.0@newsfeed.vitts.com>...
>Is there Perl code available to parse C++ programs? Or, where would I find
>the C++ grammar to use with yacc?
>
>Thanks,
>-- Matt
>
>
------------------------------
Date: 26 Apr 1999 16:14:13 GMT
From: toma@cray.com (Thomas Arneberg)
Subject: Re: pearl sdf spf
Message-Id: <7g23cl$dt6$1@walter-fddi.cray.com>
In article <7g181g$rs6$1@nnrp1.dejanews.com> beyret@my-dejanews.com writes:
>
>I am a newbie engineer, got my BS just a couple of months ago. I will be
>working in real life in a few months and I will use Cadence tools. I need to
>find beginner information on things like SDF(standard delay format), SPF
>(standard parasitic format), TLF (?) and Pearl static timing analyzer of
>Cadence. Is there any pdf tutorial about Pearl?
^^^^^
Wow...I thought "surely, this newbie must be mistaken. There's no way a
CAD company would name a product 'Pearl'! Must be a typo."
But I've been out of the loop on Cadence stuff for a couple years now,
so I checked their web page...and sure enough:
http://www.cadence.com/software/DeepSubmicron/pearl.html
Amazing.
I wonder if there was any discussion within Cadence about this name.
Do users write Perl scripts to parse output from Pearl? Would they be
Pearl Perl scripts?
Maybe Cadence should name their next program "Younicks" or "Said"
or "Tickle" to help alleviate the confusion... :-/
- Tom A. (crossposting to comp.lang.perl.misc)
--------------------------------------------+---------------------
;-) I'd rather be ____ Thomas R. Arneberg | Only 384 more days
:-) singing in a |____| toma@arneberg.com | until my sabbatical!
:-) Barbershop _| _| sqi/Cray IC Design | http://arneberg.com
:-) Quartet! (_) (_) Chippewa Falls, WI | We're the colon in http:
--------------------------------------------+---------------------
------------------------------
Date: Mon, 26 Apr 1999 16:25:22 GMT
From: pdean@pcmars.cs.ndsu.nodak.edu
Subject: Perl and Oracle..
Message-Id: <7g241c$kqo$1@nnrp1.dejanews.com>
Hi...
I'm trying to write a CGI script which has to access the Database that is
running on the different machine.I'm using DBD-Oracle to connect to the
database do i have to set up any ENV variable or do i have to meddle with any
tnsnames.ora file.If so pls let me what i have to do ....Any help is
requested.
Regards,
Pradeep.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Mon, 26 Apr 1999 18:08:09 +0200
From: Gerd huessner <gh@fh-sw.de>
Subject: perl binary for SCO-3 UNIX on i386
Message-Id: <37248F69.8D78749@fh-sw.de>
Does anyone know where I could get a binary version of perl 5.00x for
SCO-Unix V3
Thanks for your help
wfr
Gerd
------------------------------
Date: 26 Apr 1999 17:20:17 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: perl binary for SCO-3 UNIX on i386
Message-Id: <37249241@newsread3.dircon.co.uk>
Gerd huessner <gh@fh-sw.de> wrote:
> Does anyone know where I could get a binary version of perl 5.00x for
> SCO-Unix V3
>
> Thanks for your help
>
Go to :
<http://www.sco.com/skunkware/html/web/interp.html>
/J\
--
Jonathan Stowe <jns@gellyfish.com>
------------------------------
Date: Mon, 26 Apr 1999 18:43:39 +0200
From: Gerd huessner <gh@fh-sw.de>
To: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: perl binary for SCO-3 UNIX on i386
Message-Id: <372497BB.CA5A15B@fh-sw.de>
Thanks for your answer.
I've already found this pages but there are only binaries for UnixWare and
OpenServer distributions.
What I need is a binary for an old SCO-Unix Version 3.x.
Do you know an other source?
Ciao
Gerd
---------------------------
Jonathan Stowe schrieb:
> Gerd huessner <gh@fh-sw.de> wrote:
> > Does anyone know where I could get a binary version of perl 5.00x for
> > SCO-Unix V3
> >
> > Thanks for your help
> >
>
> Go to :
>
> <http://www.sco.com/skunkware/html/web/interp.html>
>
> /J\
> --
> Jonathan Stowe <jns@gellyfish.com>
------------------------------
Date: Mon, 26 Apr 1999 18:44:00 +0200
From: Gerd huessner <gh@fh-sw.de>
To: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: perl binary for SCO-3 UNIX on i386
Message-Id: <372497CF.D84A87C2@fh-sw.de>
Thanks for your answer.
I've already found this pages but there are only binaries for UnixWare and
OpenServer distributions.
What I need is a binary for an old SCO-Unix Version 3.x.
Do you know an other source?
Ciao
Gerd
---------------------------
Jonathan Stowe schrieb:
> Gerd huessner <gh@fh-sw.de> wrote:
> > Does anyone know where I could get a binary version of perl 5.00x for
> > SCO-Unix V3
> >
> > Thanks for your help
> >
>
> Go to :
>
> <http://www.sco.com/skunkware/html/web/interp.html>
>
> /J\
> --
> Jonathan Stowe <jns@gellyfish.com>
------------------------------
Date: 26 Apr 1999 18:14:36 +0200
From: Joakim Hove <hove@ido.phys.ntnu.no>
Subject: Re: Perl operate autonomously?
Message-Id: <k0naevv1hqr.fsf@ido.phys.ntnu.no>
<joeyandsherry@mindspring.com> writes:
> I want to create a little utility that keeps a "robotic" watch on my
> database files, like periodically checking for errors, etc. Is there a way
> for this script to operate on its own? Not requiring it to be called to have
> it perform these checks?
If you are on a Unix-variety :
man cron
man crontab
JH
--
------------------------------
Date: Mon, 26 Apr 1999 09:00:23 -0700
From: David Borger <borger@ix.netcom.com>
Subject: Pre-newbie needs help getting started
Message-Id: <37248D97.B4CDA90@ix.netcom.com>
I am a pre-newbie when it comes to perl. I've been using awk for
several years and have programmed (though not professionally) in several
other languages. Awhile back someone suggested to me that if I liked
awk, I'd love Perl, so I thought I would take a look. I downloaded and
installed ActiveState Perl for Win32 Version 5.003_07 Build 307 (running
under Windows 95) tried out some simple stuff which seemed to work,
bought and started on the Camel book and have otherwise been lurking in
this group.
One thing the latter has taught me is (class, repeat after me) DO YOUR
HOMEWORK. I thought I would start by familiarizing myself with the
perldoc command. I typed it and got some error message which I finally
tracked down as due to some environment variables not being set. I took
care of that and now when I type perldoc I get the message
Missing $ on loop variable at d:\perl\lib/strict.pm line
90
The above mentioned line 90 reads
foreach my $s (@_){ $bits |= $bitmask{$s} || 0; };
I looked around at the FAQ and other promising-sounding pages on the
Active State web site to no avail. Any ideas?
Thanks
Dave
------------------------------
Date: 26 Apr 1999 17:22:56 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Pre-newbie needs help getting started
Message-Id: <372492e0@newsread3.dircon.co.uk>
David Borger <borger@ix.netcom.com> wrote:
> I downloaded and
> installed ActiveState Perl for Win32 Version 5.003_07 Build 307 (running
> under Windows 95)
>
There is a build 515 out now which is made from the 5.005.03 source
get it now and install it .
/J\
--
Jonathan Stowe <jns@gellyfish.com>
------------------------------
Date: Mon, 26 Apr 1999 16:43:06 GMT
From: manny99@my-dejanews.com
Subject: Retrieving a file from the server and displaying it in HTML.
Message-Id: <7g252p$lsc$1@nnrp1.dejanews.com>
Hello there,
Here's my situation, I have a bunch of graphics and text files that
are named according to the YY MM DD in which they were created, (ie.99mar12).
What I want to do is somehow that retrieve those files according to the date
in which they were created upon request from a some type of a form, and
display them in a HTML page.
If anyone can point me in the right direction I would greatly
appreciate it.
Thank you,
Jaret Richards
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
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 5486
**************************************