[6268] in Perl-Users-Digest
Perl-Users Digest, Issue: 890 Volume: 7
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Feb 4 01:07:51 1997
Date: Mon, 3 Feb 97 22:00:19 -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 Mon, 3 Feb 1997 Volume: 7 Number: 890
Today's topics:
$45.00/HR for CGI/PERL PROGRAMMERS!! (general reply account)
..MMM needs CGI/PERL PROGRAMMERS !!! (general reply account)
Re: [help] matching multiple patterns (Chris Nandor)
Announce: Progressive Networks RealMedia Conference <pnetwork@sbexpos.com>
Anyone got a base64 encoder? <osborri@mail.northgrum.com>
Re: Anyone got a base64 encoder? (brian d foy)
Re: Bug in Copy.pm (produces warning message) (Hugo van der Sanden)
CGI/PERL @ manhattanmultimedia !!! (general reply account)
Re: Color coding perl (Terje Bless)
Re: dropping trailing zeroes when "write (FA).... <rootbeer@teleport.com>
Re: Generating bgcolor for html <r3cgm@cdrom.com>
Re: Help in setting up S/// (Jeffrey)
Re: HELP! Difficult regexp matter! (Jeffrey)
Re: Here document.. here... Good boy (root)
Large Project Code Organization <r3cgm@cdrom.com>
Re: Large Project Code Organization (Dave Thomas)
NYC: PERL PERL PERL PERL PERL PERL PERL (general reply account)
Re: Please help me with this very simple PERL program.. (Tad McClellan)
Re: PSCOPE - an CSCOPE for perl source <rootbeer@teleport.com>
Re: reg exps (Tad McClellan)
Re: reg exps <jander@jander.com>
UNIX-based perl: backgrounding and file descriptors <christopher.wolff@nb.rockwell.com>
Re: UNIX-based perl: backgrounding and file descriptors (Nathan V. Patwardhan)
Re: UNIX-based perl: backgrounding and file descriptors <rootbeer@teleport.com>
Re: using putpwent <rootbeer@teleport.com>
Re: Where to search for all newsgroup <rootbeer@teleport.com>
~~ NYC: CGI/PERL FREELANCER NEEDED !! ~~ (shea)
Digest Administrivia (Last modified: 8 Jan 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 4 Feb 1997 05:12:30 GMT
From: mmm@panix.com (general reply account)
Subject: $45.00/HR for CGI/PERL PROGRAMMERS!!
Message-Id: <5d6gfu$4hj$64@spasmolytic.openix.com>
Keywords: nyc, nyc, new york, new york, c++, c++, cgi, cgi, unix, unix, programmer, programmer, java, java, sybase, sybase, oracle, oracle, c, c, ny, ny, nj, nj, new jersey, new jersey, part time, part time, sql, sql, internet, internet, html, html.
To whom this may concern,
ManhattanMultiMedia, Inc. <http://www.manhattanmultimedia.com>
is a rapidly growing firm and is always looking to hire
people proficient in CGI-PERL scripting.
Our positions are usually full-time temporary projects that
pay anywhere from $35.00 - $50.00 per hour (depending on
the project and/or your experience).
-------------------------------------------------------
!! IMMEDIATE OPENING !!
-------------------------------------------------------
We have an immediate opening:
Pay is $45.00 per hour
and is estimated to be a 3-6 Month Project.
You must also have good understanding of SQL, and/or Sybase.
This is a temporary, full-time position.
(for NYC area or NJ only)
--------------------------------------------------------
--------------------------------------------------------
These positions are perfect for knowledgeable graduates looking
to gain valuable work experience and/or anyone looking to
add to their portfolio.
or, PLEASE EMAIL YOUR RESUME to:
resume@manhattanmultimedia.com (subject: cgi-perl)
For additional information, please contact shea:
shea@manhattanmultimedia.com (subject: cgi-perl)
or PLEASE FAX YOUR RESUME to: 212-262-3915
Thank you very much for your interest.
Sincerely,
Shea Writer
MMM
tel: +.212-489-0304
fax: +.212-262-3915
------------------------------
Date: 4 Feb 1997 05:03:08 GMT
From: mmm@panix.com (general reply account)
Subject: ..MMM needs CGI/PERL PROGRAMMERS !!!
Message-Id: <5d6fuc$4hj$46@spasmolytic.openix.com>
Keywords: nyc, nyc, new york, new york, c++, c++, cgi, cgi, unix, unix, programmer, programmer, java, java, sybase, sybase, oracle, oracle, c, c, ny, ny, nj, nj, new jersey, new jersey, part time, part time, sql, sql, internet, internet, html, html.
To whom this may concern,
ManhattanMultiMedia, Inc. <http://www.manhattanmultimedia.com>
is a rapidly growing firm and is always looking to hire
people proficient in CGI-PERL scripting.
Our positions are usually full-time temporary projects that
pay anywhere from $35.00 - $50.00 per hour (depending on
the project and/or your experience).
-------------------------------------------------------
!! IMMEDIATE OPENING !!
-------------------------------------------------------
We have an immediate opening:
Pay is $45.00 per hour
and is estimated to be a 3-6 Month Project.
You must also have good understanding of SQL, and/or Sybase.
This is a temporary, full-time position.
(for NYC area or NJ only)
--------------------------------------------------------
--------------------------------------------------------
These positions are perfect for knowledgeable graduates looking
to gain valuable work experience and/or anyone looking to
add to their portfolio.
or, PLEASE EMAIL YOUR RESUME to:
resume@manhattanmultimedia.com (subject: cgi-perl)
For additional information, please contact shea:
shea@manhattanmultimedia.com (subject: cgi-perl)
or PLEASE FAX YOUR RESUME to: 212-262-3915
Thank you very much for your interest.
Sincerely,
Shea Writer
MMM
tel: +.212-489-0304
fax: +.212-262-3915
------------------------------
Date: Mon, 03 Feb 1997 18:03:31 -0500
From: pudge@pobox.com (Chris Nandor)
Subject: Re: [help] matching multiple patterns
Message-Id: <pudge-ya023480000302971803320001@news.idt.net>
In article <5d5leq$54v@lothar.scs.unr.edu>, scottf@scs.unr.edu (Scott C.
Fritzinger) wrote:
# something like :
#
# if (($text =~ /%name/) || ($text =~ /%info/)) {
# # blah blah blah
# }
#
# but only using 1 statement... like:
#
# $text =~ /%name , %info/i
#
$text =~ /%name|%info/i
XRef:
Blue Camel, p. 59.
Hip Owls, p. 15.
perlre manpage
Please do some homework. Hope this helps,
#================================================================
Chris Nandor pudge@pobox.com
PGP Key 1024/B76E72AD http://pudge.net/
Keyfingerprint = 08 24 09 0B CE 73 CA 10 1F F7 7F 13 81 80 B6 B6
------------------------------
Date: Mon, 03 Feb 1997 18:31:00 -0800
From: "pnetwork@sbexpos.com" <pnetwork@sbexpos.com>
Subject: Announce: Progressive Networks RealMedia Conference
Message-Id: <32F69F64.3C43@sbexpos.com>
Announcement: Progressive Networks RealMedia Conference
Progressive Networks, creator of RealAudio, invites you to a real
conference that tells you everything you need to know about delivering
real-time multimedia over the Internet.
To register visit:
http://www.real.com/realdeveloper/conference/index.html
Learn how to:
- Add CD-quality sound to your web site
- Integrate full-motion video, animation and MIDI
- Get the most from ActiveX and Java
- Explore the hottest new plug-ins
- Sidestep bandwidth limits
- Combine a series of streaming media types to transform your site into
a multimedia-enabled channel
Join us as we present Real Technology Sessions:
- Advanced programming tips, from web site to web channel
- Producing and incorporating production-quality audio in your web site
- Producing and incorporating high-quality video in your web site
- Producing large-audience live broadcasts
- Using the RealMedia Architecture
- Producing and incorporating high-quality animation, 3-D and streaming
text
- RealMedia intranet solutions and applications
- Maximizing your server investment
- And more
Progressive Networks RealMedia Conference is prepared to equip its
attendees with the most up-to-date technical information available.
Space is limited, so register today.
What: Progressive Networks RealMedia Conference
Where: Hyatt Regency San Francisco Airport
When: March 3-4, 1997
To Register: visit
http://www.real.com/realdeveloper/conference/index.html
or call 800-765-3705 (US) or 415-372-6705 (Int'l)
------------------------------
Date: 4 Feb 1997 03:07:59 GMT
From: "Rick Osborne" <osborri@mail.northgrum.com>
Subject: Anyone got a base64 encoder?
Message-Id: <01bc1248$910c77f0$1f7fe484@mlbweb>
I need the algorithm for base64 encoding in perl. Anyone got? I'd also
like to find some perl for BinHex4, if anyone's got it, but I've got the
C++ for that and can always convert if no one does...
_________ o s b o r n e @ g a t e w a y . g r u m m a n . c o m _________
I.R.S.: We've got what it takes to take what you've got!
------------------------------
Date: Sun, 02 Feb 1997 23:51:42 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Anyone got a base64 encoder?
Message-Id: <comdog-0202972351420001@nntp.netcruiser>
In article <01bc1248$910c77f0$1f7fe484@mlbweb>, "Rick Osborne"
<osborri@mail.northgrum.com> wrote:
> I need the algorithm for base64 encoding in perl. Anyone got? I'd also
> like to find some perl for BinHex4, if anyone's got it, but I've got the
> C++ for that and can always convert if no one does...
check the MIME module for the Base64 stuff. you should be able to find
it along with other really keen modules at your nearest CPAN (Comphrensive
Perl Archive Network), which you can find through your favorite search
engine.
--
brian d foy <URL:http://computerdog.com>
unsolicited commercial email is not appreciated
------------------------------
Date: 4 Feb 1997 00:34:05 GMT
From: hv@crypt.compulink.co.uk (Hugo van der Sanden)
Subject: Re: Bug in Copy.pm (produces warning message)
Message-Id: <5d605t$3eb@zinc.compulink.co.uk>
Martin Gregory (mgregory@asc.sps.mot.com) wrote:
:cp("foo.pl", "bar") or die;
[...]
:Use of uninitialized value at /app/perl-5.003/lib/perl-5.003/File/Copy.pm line 103.
:
:If I add this:
:
:$\ = ''; # make Copy.pm happy.
:
:after the use File::Copy line, it makes this warning go away. But
:surely I shouldn't have to do that!
It is a bug in perl, rather than in the File;:Copy program. It is fixed
already for when 5.004 is released; in the meantime, I'd recommend using
the fix you have (or accepting the warning).
Hugo van der Sanden
------------------------------
Date: 4 Feb 1997 05:03:42 GMT
From: mmm@panix.com (general reply account)
Subject: CGI/PERL @ manhattanmultimedia !!!
Message-Id: <5d6fve$4hj$48@spasmolytic.openix.com>
Keywords: nyc, nyc, new york, new york, c++, c++, cgi, cgi, unix, unix, programmer, programmer, java, java, sybase, sybase, oracle, oracle, c, c, ny, ny, nj, nj, new jersey, new jersey, part time, part time, sql, sql, internet, internet, html, html.
To whom this may concern,
ManhattanMultiMedia, Inc. <http://www.manhattanmultimedia.com>
is a rapidly growing firm and is always looking to hire
people proficient in CGI-PERL scripting.
Our positions are usually full-time temporary projects that
pay anywhere from $35.00 - $50.00 per hour (depending on
the project and/or your experience).
-------------------------------------------------------
!! IMMEDIATE OPENING !!
-------------------------------------------------------
We have an immediate opening:
Pay is $45.00 per hour
and is estimated to be a 3-6 Month Project.
You must also have good understanding of SQL, and/or Sybase.
This is a temporary, full-time position.
(for NYC area or NJ only)
--------------------------------------------------------
--------------------------------------------------------
These positions are perfect for knowledgeable graduates looking
to gain valuable work experience and/or anyone looking to
add to their portfolio.
or, PLEASE EMAIL YOUR RESUME to:
resume@manhattanmultimedia.com (subject: cgi-perl)
For additional information, please contact shea:
shea@manhattanmultimedia.com (subject: cgi-perl)
or PLEASE FAX YOUR RESUME to: 212-262-3915
Thank you very much for your interest.
Sincerely,
Shea Writer
MMM
tel: +.212-489-0304
fax: +.212-262-3915
------------------------------
Date: Tue, 04 Feb 1997 02:30:38 +0100
From: link@tss.no (Terje Bless)
Subject: Re: Color coding perl
Message-Id: <link-0402970230380001@rte-pm.tss.no>
In article <5d36us$d67$1@brokaw.wa.com>,
blm@chinook.halcyon.com (Brian L. Matthews) wrote:
>While I like BBEdit, it's perl coloring needs some work.
I love BBEdit. It saved me from having to use the Macintosh port of VIM
when I wanted to edit/process text rather than "design" a document.
The syntax coloring in BBEdit needs some work allright. It was thrown in
by Bare Bones Software in a minor revision. Rumor has it that it was a
hack to the text engine that they where using internally, which had become
stable enough for public release.
Anyway, it's good enough for simple Perl programming on a Macintosh and I
think you can expect it to improve in future versions. If you do a lot of
work on Macs and don't already have m{[xX]?emacs} installed; it may be an
adequate solution.
--
Party? Party, Lord? Yes, Lord. Right away, Lord. - Beopunk Cyberwolf
------------------------------
Date: Mon, 3 Feb 1997 20:28:15 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: John Ulmer <jru@gel.com>
Subject: Re: dropping trailing zeroes when "write (FA)....
Message-Id: <Pine.GSO.3.95.970203202630.20100D-100000@linda.teleport.com>
On Mon, 3 Feb 1997, John Ulmer wrote:
> If a variable is "2.0" coming from &crossoverTable, the
> write (FA) command drops the zero and the decimal and
> writes "2" into the output file. How can I make it keep
> the trailing zero and thus keep the correct number of
> significant figures?
There's nothing internally different between the numbers 2.0 and
2.00000000, but you can choose which one to print out by using printf or
sprintf. Hope this helps!
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: Mon, 03 Feb 1997 19:18:36 -0800
From: "Christopher G. Mann" <r3cgm@cdrom.com>
To: Henrik Parsen <henrik_parsen@hermes.ics.lu.se>
Subject: Re: Generating bgcolor for html
Message-Id: <32F6AA8C.5245@cdrom.com>
Henrik Parsen wrote:
>
> This may be a small problem.
> I can4t generate a different background color for my html page.
> The problem seems to be how to write # without having perl taking them
> for remarks.
>
print "<FONT COLOR=\"#FFFF80\">Yellow world!</FONT>\n";
--
Christopher G. Mann - r3cgm@hornet.org
Webmaster & Technical Support, Walnut Creek CDROM
Hornet Archive Maintainer, (ftp|www).hornet.org/pub/demos
------------------------------
Date: 03 Feb 1997 21:16:55 GMT
From: jfriedl@tubby.nff.ncl.omron.co.jp (Jeffrey)
To: mreilley@clc.cc.il.us (Mike Reilley)
Subject: Re: Help in setting up S///
Message-Id: <JFRIEDL.97Feb4061655@tubby.nff.ncl.omron.co.jp>
Mike Reilley <mreilley@clc.cc.il.us> wrote:
|> I have a text line in the format of
|> Multiple leading spaces (Must Be Kept)
|> an optional asterisk ( would like to remove it ) change it to a blank.
|> Multiple spaces (Must be kept)
|> Text ..............
|>
|> The need is to remove the optional asterisk if it is there
|> but not to remove any asterisks that may be in the text.
Try
s/^(\s*)\*/$1 /;
Jeffrey
----------------------------------------------------------------------------
Jeffrey Friedl <jfriedl@omron.co.jp> Omron Corp, Nagaokakyo, Kyoto 617 Japan
O'Reilly & Associates' _Mastering Regular Expressions_
http://enterprise.ic.gc.ca/~jfriedl/regex/
------------------------------
Date: 03 Feb 1997 21:13:34 GMT
From: jfriedl@tubby.nff.ncl.omron.co.jp (Jeffrey)
To: oganessi@informatik.hu-berlin.de (Oussik Oganessian)
Subject: Re: HELP! Difficult regexp matter!
Message-Id: <JFRIEDL.97Feb4061334@tubby.nff.ncl.omron.co.jp>
Oussik Oganessian <oganessi@informatik.hu-berlin.de> wrote:
|> There are a number of chars which must be replaced with expressions
|> respectivelly. E.g.:
|> $ -> \$
|> \ -> $\backslash$
|> and so on...
|>
|> Previously I used to translate these with s/// sequentially, but the
|> above example hampers that, since $ or \ on the right side of the first
|> substitution will be replaced by the second substitution.
You might try something like:
$trans{'$'} = '\$';
$trans{'\\'} = '$\backslash$';
s/([$\\])/$trans{$1}/g;
If some of the things which need to be processed are more than one
character, you can put them as alternatives, such as
s/([$\\]|%%)/$trans{$1}/g;
or whatnot. Just don't forget to create an entry in %trans!
Jeffrey
----------------------------------------------------------------------------
Jeffrey Friedl <jfriedl@omron.co.jp> Omron Corp, Nagaokakyo, Kyoto 617 Japan
O'Reilly & Associates' _Mastering Regular Expressions_
http://enterprise.ic.gc.ca/~jfriedl/regex/
------------------------------
Date: 4 Feb 1997 03:32:08 GMT
From: root@alex.alex.net (root)
Subject: Re: Here document.. here... Good boy
Message-Id: <slrn5fdboc.14n.root@d-m01-33.cyberion.com>
Hi!
Get rid of the quotes. It should work
> # Print out thank you to user
> print STDOUT <<'EndOfHtml';
^ ^
>
><html>
><head>
><title>SurfWatch Register</title>
></head>
></html>
>
>EndOfHtml
>
If it doesn't work, let me know!
--
Alex Dickinson
alexd@helix.net
http://www.helix.net/~alexd/homepage.html
------------------------------
Date: Mon, 03 Feb 1997 19:16:18 -0800
From: "Christopher G. Mann" <r3cgm@cdrom.com>
Subject: Large Project Code Organization
Message-Id: <32F6AA01.57E5@cdrom.com>
I've been using Perl for a while now. In the beginning it was quite
handy
to just whip up a script to do this or that. But as time went on, I
needed
to code larger and larger projects.
First I tried having a standard library file, containing common
constants
and low-level functions. All the scripts in a given project would
"require"
this library. And for a while, everything was happy.
But then I noticed my scripts growing out of control with new features
and
improvements. I attempted to break them up to perform smaller
operations.
The directories started to grow cluttered and disorganized (and I don't
like
that). So I got a hot cup of coffee and started thinking, "What exactly
am
I trying to accomplish here?" How should this be structured?
I think there at least 4 fundamental types of script projects we as Perl
coders do.
1. Total hack scripts... get something done quickly.
2. Decent single scripts... gonna use this regularly.
3. Small projects, have common library file.
4. Large projects, keep building and building until it becomes too large
and unwieldly and you resort to writing comp.lang.perl.misc.
I would like to have a stable and modifiable framework for larger
projects
but seem to be failing utterly. So from the veterans out there, may I
ask
how you have structured directories, files, and libraries as your
projects
grew to "large" status?
-------------------------------------------------------------------------------
Christopher G. Mann - r3cgm@hornet.org
(ftp|www).cdrom.com - Webmaster & Technical Support, Walnut Creek
CDROM
(ftp|www).hornet.org/pub/demos - Hornet Archive Maintainer
------------------------------
Date: 4 Feb 1997 04:12:55 GMT
From: dave@fast.thomases.com (Dave Thomas)
Subject: Re: Large Project Code Organization
Message-Id: <slrn5fddll.hck.dave@fast.thomases.com>
On Mon, 03 Feb 1997 19:16:18 -0800, Christopher G. Mann <r3cgm@cdrom.com>
wrote:
> I would like to have a stable and modifiable framework for larger
> projects but seem to be failing utterly. So from the veterans out there,
> may I ask how you have structured directories, files, and libraries as
> your projects grew to "large" status?
In a word - badly ;-)
In a few more words...
1. I try to make sure I use Perl classes to structure all major
work I do. Occasionally something that I think is small escapes
and turns into a monster, but I find this happens less if I impose
class and module discipline on myself.
2. I make sure that my personal classes and project classes are in my
@INC, so that I don't have to think when using them.
3. I use source control (currently CVS). Otherwise, an ill-thought out
change to a class for one project can have some "interesting"
repercussions on other projects!
4. I avoid clever code when I can. Its a courtesy to others on the team and
to myself (otherwise we'd all end oup getting into a "see who can write
the cleverest one-liner" competitions, and maintenance would be
a nightmare).
5. I try to comment stuff. Recently I've been using POD format, and the
project publishes the documenation via pod2html in an indexed developer's
web area. Useful when you're looking for a module that you just know has
to be out there...
6. I use a standard layout (actually the CPerl default layout rules in
XEmacs). Makes it easier to follow stuff later, and the fact that the
editor has a valiant go at reformatting imported code makes it
relatively painless.
7. I use 'strict' and '-w' just about always (there are some CPAN modules
that still complain with -w, and clients don't like the warnings, so
I turn it off when using them).
8. I try to incorporate regression test cases in modules, so if other people
make changes then can test it out. Recently, I've been using MakeMaker
to manage all this (before it was all hand-coded).
9. I burn a pizza-scented stick of incense in an empty Jolt can to the
God of Bugs daily.
Don't know if that was the kind of thing you were looking for.
Regards
Dave
for one project
--
_________________________________________________________________________
| Dave Thomas - Dave@Thomases.com - Unix and systems consultancy - Dallas |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
Date: 4 Feb 1997 05:26:02 GMT
From: mmm@panix.com (general reply account)
Subject: NYC: PERL PERL PERL PERL PERL PERL PERL
Message-Id: <5d6h9a$5ai$12@spasmolytic.openix.com>
Keywords: nyc, nyc, new york, new york, c++, c++, cgi, cgi, unix, unix, programmer, programmer, java, java, sybase, sybase, oracle, oracle, c, c, ny, ny, nj, nj, new jersey, new jersey, part time, part time, sql, sql, internet, internet, html, html.
To whom this may concern,
ManhattanMultiMedia, Inc. <http://www.manhattanmultimedia.com>
is a rapidly growing firm and is always looking to hire
people proficient in CGI-PERL scripting.
Our positions are usually full-time temporary projects that
pay anywhere from $35.00 - $50.00 per hour (depending on
the project and/or your experience).
-------------------------------------------------------
!! IMMEDIATE OPENING !!
-------------------------------------------------------
We have an immediate opening:
Pay is $45.00 per hour
and is estimated to be a 3-6 Month Project.
You must also have good understanding of SQL, and/or Sybase.
This is a temporary, full-time position.
(for NYC area or NJ only)
--------------------------------------------------------
--------------------------------------------------------
These positions are perfect for knowledgeable graduates looking
to gain valuable work experience and/or anyone looking to
add to their portfolio.
or, PLEASE EMAIL YOUR RESUME to:
resume@manhattanmultimedia.com (subject: cgi-perl)
For additional information, please contact shea:
shea@manhattanmultimedia.com (subject: cgi-perl)
or PLEASE FAX YOUR RESUME to: 212-262-3915
Thank you very much for your interest.
Sincerely,
Shea Writer
MMM
tel: +.212-489-0304
fax: +.212-262-3915
------------------------------
Date: Mon, 3 Feb 1997 19:43:51 -0600
From: tadmc@flash.net (Tad McClellan)
Subject: Re: Please help me with this very simple PERL program...
Message-Id: <n846d5.e61.ln@localhost>
Adrian Singh (ade.singh@zetnet.co.uk) wrote:
: I have never in all my years on newsnet seen a post with
: so much know-it-all smug nonsense
I believe that all of the things I pointed out to the original poster
are standard Usenet good manners. Do you feel that some (any?) of them
are not part of standard manners here?
Or do you feel that good manners are not necesary here?
What, exactly, is your beef?
By pointing them out I helped Mikael avoid being ignored by the
people who are most likely able to help him.
A quick check at Dejanews reveals that this is the only post you
have made to c.l.p.m. An admirable record of aiding the perl
community. I think I will listen very carefully to what someone
as sage as yourself has to say...
: tadmc@flash.net (Tad McClellan) wrote:
: >[ comp.lang.perl.modules, comp.lang.perl.tk trimmed from Followups ]
: >[ emailed, posted ]
: >Whew!
: >I have never in my time on Usenet seen a post with more bad manners
: >all collected into the same post as yours!
: >I'm sure you didn't know that you were exhibiting bad manners, but
: >you need to take the time to find out what *is* seen as bad manners
: >when using Usenet.
: >Read the articles in the news.announce.newusers newsgroup.
: [ snip ??? lines of elitist crap ]
Good manners are elitist crap? How so?
--
Tad McClellan SGML Consulting
Tag And Document Consulting Perl programming
tadmc@flash.net
------------------------------
Date: Mon, 3 Feb 1997 20:24:56 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: "Mark A. Lehmann" <mlehmann@prismnet.com>
Subject: Re: PSCOPE - an CSCOPE for perl source
Message-Id: <Pine.GSO.3.95.970203201706.20100C-100000@linda.teleport.com>
On 3 Feb 1997, Mark A. Lehmann wrote:
> Subject: PSCOPE - an CSCOPE for perl source
> I've requested this many times and no one has offered any solution,
> code, or really any suggestions for this, so I'm going to write one.
That's the spirit!
What is it?
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: Mon, 3 Feb 1997 20:00:55 -0600
From: tadmc@flash.net (Tad McClellan)
Subject: Re: reg exps
Message-Id: <n856d5.na1.ln@localhost>
Susan Molero (susanmolero@adv.es) wrote:
: Hello,
: I'm working with perl and have a problem with two bits
: of code. I think the problem is with the regular
: expressions I'm using, but I'm not sure.
: If anyone can easily spot the problem, I'd really
: appreciate a hand.
: I have a file called doc, with the following data:
: hjshjsdhchjdh bbvffgvrf
: TI: This is field TI
: PD: This is pd
: TX:jhsdhjd
: 1. Field one.
: 2. Field two.
: OA: Field OA
: The following code tries to get the value of fields
: TI and PD.
Does this help?
------------
#! /usr/bin/perl -w
$/ = '';
$_ = <DATA>; # slurp it into one string
$ti = $1 if /^TI:(.*)/m; # don't really need to strip out the newlines
$pd = $1 if /^PD:(.*)/m;
print "TI: $ti\n";
print "PD: $pd\n";
__DATA__
hjshjsdhchjdh bbvffgvrf
TI: This is field TI
PD: This is pd
TX:jhsdhjd
1. Field one.
2. Field two.
OA: Field OA
------------
--
Tad McClellan SGML Consulting
Tag And Document Consulting Perl programming
tadmc@flash.net
------------------------------
Date: 03 Feb 1997 22:46:46 -0500
From: Jim Anderson <jander@jander.com>
Subject: Re: reg exps
Message-Id: <d8uh44ih.fsf@jander.com>
"Susan Molero" <susanmolero@adv.es> writes:
>
>
> Hello,
> I'm working with perl and have a problem with two bits
> of code. I think the problem is with the regular
> expressions I'm using, but I'm not sure.
> If anyone can easily spot the problem, I'd really
> appreciate a hand.
>
> I have a file called doc, with the following data:
>
> hjshjsdhchjdh bbvffgvrf
> TI: This is field TI
> PD: This is pd
> TX:jhsdhjd
> 1. Field one.
> 2. Field two.
> OA: Field OA
[...]
> Any idea ?
=========================================================
#!/usr/bin/perl
while (<DATA>) {
print ("TI=>$1\n"), next if /^TI:(.*)/;
print ("PD=>$1\n"), next if /^PD:(.*)/;
}
__DATA__
hjshjsdhchjdh bbvffgvrf
TI: This is field TI
PD: This is pd
TX:jhsdhjd
1. Field one.
2. Field two.
OA: Field OA
=========================================================
Produces:
=========================================================
TI=> This is field TI
PD=> This is pd
=========================================================
--
Jim Anderson jander@jander.com
PGP Public Key Fingerprint: 0A 1C BB 0A 65 E4 0F CD
4C 40 B1 0A 9A 32 68 44
------------------------------
Date: Mon, 03 Feb 1997 17:06:53 -0800
From: Christopher M Wolff <christopher.wolff@nb.rockwell.com>
Subject: UNIX-based perl: backgrounding and file descriptors
Message-Id: <32F68BAD.41C67EA6@nb.rockwell.com>
Two UNIX-based perl questions:
1) Can a background process be launched from within perl?
I tried using fork,exec,and system, but at best they spawn a child
process which dies when the parent does. In order to get a true
background process, I call a C-shell that launches the background
process for me and then exits. I hope to eliminate such ugliness
if possible.
2) How can I write to a file descriptor specified by number alone?
I tried using syswrite, but it doesn't seem to work like the C "write"
function. I need to do this because a parent process has setup the
file descriptors 3 and 4 for communication. At the moment I am
stuck using C for the "write," and I'd like to get rid of this
platform dependence by doing it all in perl if possible.
Thanks,
--
Christopher M. Wolff Rockwell Semiconductor Systems
christopher.wolff@nb.rockwell.com
Design Automation
------------------------------
Date: 4 Feb 1997 02:52:12 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: UNIX-based perl: backgrounding and file descriptors
Message-Id: <5d688s$nbf@fridge-nf0.shore.net>
Christopher M Wolff (christopher.wolff@nb.rockwell.com) wrote:
: 1) Can a background process be launched from within perl?
: I tried using fork,exec,and system, but at best they spawn a child
: process which dies when the parent does. In order to get a true
[snip]
You could always run your Perl program in the background ... [ducking!].
No, really. Actually, when I've played with the HTTP modules from the
LWP package, and run a server on port x, I've run the perl script in
the background and terminated it when I was done.
--
N Patwardhan
nvp@shore.net
What is your favorite color?
------------------------------
Date: Mon, 3 Feb 1997 20:44:09 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Christopher M Wolff <christopher.wolff@nb.rockwell.com>
Subject: Re: UNIX-based perl: backgrounding and file descriptors
Message-Id: <Pine.GSO.3.95.970203203839.20100J-100000@linda.teleport.com>
On Mon, 3 Feb 1997, Christopher M Wolff wrote:
> 1) Can a background process be launched from within perl?
Yes.
> I tried using fork,exec,and system, but at best they spawn a child
> process which dies when the parent does.
Really? (Well, I'd expect anything started by system to finish up _before_
your script does... :-)
> In order to get a true background process, I call a C-shell that
> launches the background process for me and then exits. I hope to
> eliminate such ugliness if possible.
Why ask the C-shell to do it? Let your own process launch the background
process. A common way is to fork a process which does nothing but fork the
background process and exit. Anything the C-shell can do, Perl can do
better.
> 2) How can I write to a file descriptor specified by number alone?
> I need to do this because a parent process has setup the
> file descriptors 3 and 4 for communication.
However the parent process opened them, they're open in the same way for
the child process. That is, if you could write to WRITE before the fork,
you can still do so after the fork. You shouldn't need to deal with
descriptors by number, which is fortunate because I don't think I know how
to do it. :-)
Hope this helps!
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: Mon, 3 Feb 1997 20:32:19 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: "D. M. Johnson" <ez045864@peseta.ucdavis.edu>
Subject: Re: using putpwent
Message-Id: <Pine.GSO.3.95.970203203025.20100E-100000@linda.teleport.com>
On Mon, 3 Feb 1997, D. M. Johnson wrote:
> Anyone know the syntax for using putpwent??? The man page is not much
> help.
An undocumented function is pretty useless. You should ask your vendor to
ship better man pages. Good luck!
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: Mon, 3 Feb 1997 20:34:31 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: "Kevin E." <itr@address.net>
Subject: Re: Where to search for all newsgroup
Message-Id: <Pine.GSO.3.95.970203203304.20100G-100000@linda.teleport.com>
On Mon, 3 Feb 1997, Kevin E. wrote:
> My question for the experienced newsgroup users are where can you go to
> find a whole host of newsgroup channels? Is there a newsgroup listing
> of all newsgroup sites? As you can tell, I'm new to the newsgroup
> world. So if someone knows, please help!
You will find some very good information in the newsgroup
news.announce.newusers. I hope you'll check out everything that's there.
Good luck!
news:news.announce.newusers
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: 4 Feb 1997 04:45:16 GMT
From: resume@manhattanmultimedia.com (shea)
Subject: ~~ NYC: CGI/PERL FREELANCER NEEDED !! ~~
Message-Id: <5d6ess$4hj$15@spasmolytic.openix.com>
Keywords: nyc, nyc, new york, new york, c++, c++, cgi, cgi, unix, unix, programmer, programmer, java, java, sybase, sybase, oracle, oracle, c, c, ny, ny, nj, nj, new jersey, new jersey, part time, part time, sql, sql, internet, internet, html, html.
To whom this may concern,
ManhattanMultiMedia, Inc. <http://www.manhattanmultimedia.com>
is a rapidly growing firm and is always looking to hire
people proficient in CGI-PERL scripting.
Our positions are usually full-time temporary projects that
pay anywhere from $35.00 - $50.00 per hour (depending on
the project and/or your experience).
-------------------------------------------------------
!! IMMEDIATE OPENING !!
-------------------------------------------------------
We have an immediate opening:
Pay is $45.00 per hour
and is estimated to be a 3-6 Month Project.
You must also have good understanding of SQL, and/or Sybase.
This is a temporary, full-time position.
(for NYC area or NJ only)
--------------------------------------------------------
--------------------------------------------------------
These positions are perfect for knowledgeable graduates looking
to gain valuable work experience and/or anyone looking to
add to their portfolio.
or, PLEASE EMAIL YOUR RESUME to:
resume@manhattanmultimedia.com (subject: cgi-perl)
For additional information, please contact shea:
shea@manhattanmultimedia.com (subject: cgi-perl)
or PLEASE FAX YOUR RESUME to: 212-262-3915
Thank you very much for your interest.
Sincerely,
Shea Writer
MMM
tel: +.212-489-0304
fax: +.212-262-3915
------------------------------
Date: 8 Jan 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Jan 97)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
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 V7 Issue 890
*************************************