[8724] in Perl-Users-Digest
Perl-Users Digest, Issue: 2341 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Apr 16 18:07:23 1998
Date: Thu, 16 Apr 98 15:00:25 -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 Thu, 16 Apr 1998 Volume: 8 Number: 2341
Today's topics:
Re: .= so why not =. ? (warning: wasted bandwidth) <sowmaster@juicepigs.com>
Re: .= so why not =. ? (Abigail)
Re: Array / List question (Abigail)
Re: Carriage return/line feed in text files <lr@hpl.hp.com>
Re: Carriage return/line feed in text files (Chris & Sheila King)
Re: Carriage return/line feed in text files (Craig Berry)
Re: cgi scripts to modify root-owned files and processe (Abigail)
Re: CLPM CONTENT POLICE (was info on cookies) (Abigail)
Re: commenting a whole block? <lr@hpl.hp.com>
Re: commenting a whole block? (Abigail)
Re: commenting a whole block? (brian d foy)
Re: creating pod - was Re: commenting a whole block? (brian d foy)
Re: creating pod - was Re: commenting a whole block? <dean@tbone.biol.sc.edu>
Re: Farnham's Freehold <andrewf@cp.pathfinder.com>
Re: grep (Abigail)
Re: grep <grinch@whoville.com>
how to remove blanks? <akogan@radiology.nwu.edu>
Re: how to remove blanks? (Craig Berry)
Re: HTTP Perl Question (Jim Esten)
Re: PERL aware code editor <j_harrison1@ti.com>
PERL Talks on Reg. Exps, 4/21 Bellevue WA (Tim Maher)
Re: push a non HTML document to a web browser? <grinch@whoville.com>
Setuid and Solaris wcdw@hotmail.com
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 16 Apr 1998 17:05:47 -0400
From: Bob Trieger <sowmaster@juicepigs.com>
Subject: Re: .= so why not =. ? (warning: wasted bandwidth)
Message-Id: <353672AB.2289@juicepigs.com>
John Klassa wrote:
>
> On Thu, 16 Apr 1998 14:51:51 -0400,
> Brad Baxter <bmb@ginger.libs.uga.edu> wrote:
>
> ->Okay, following is not a perl question, but most FAQ's and books I've
> ->read make use of the 'foobar' expression. Considering what this stands
> ->for, is anyone else out there slightly tired of seeing it, as am I?
> ->Chances are good that if I routinely used profane variable names in my
> ->posts, someone would call me on it.
>
> I think the version you're thinking of is FUBAR... The variables
> "foo" and "bar" (and even "baz") are canonical. When you need a
> variable and aren't interested in its name, it's "foo"...
There is no doubt whatsoever that foobar originated from fubar.
When did "baz" come into being and how? I saw it used for the first time
like 6 months ago.
--
Bob Trieger | Titanic: big boat, bigger
sowmaster@juicepigs.com | iceberg, big deal
------------------------------
Date: 16 Apr 1998 21:41:49 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: .= so why not =. ?
Message-Id: <6h5tut$jrg$5@client3.news.psi.net>
Brad Baxter (bmb@ginger.libs.uga.edu) wrote on MDCLXXXIX September
MCMXCIII in <URL: news:Pine.A41.3.96.980416142149.63622C-100000@ginger.libs.uga.edu>:
++ Okay, following is not a perl question, but most FAQ's and books I've read
++ make use of the 'foobar' expression. Considering what this stands for, is
++ anyone else out there slightly tired of seeing it, as am I? Chances are
++ good that if I routinely used profane variable names in my posts, someone
++ would call me on it.
Uh, if foobar offends you, perhaps you shouldn't play with the grownups.
Abigail
--
perl -MTime::JulianDay -lwe'@r=reverse(M=>(0)x99=>CM=>(0)x399=>D=>(0)x99=>CD=>(
0)x299=>C=>(0)x9=>XC=>(0)x39=>L=>(0)x9=>XL=>(0)x29=>X=>IX=>0=>0=>0=>V=>IV=>0=>0
=>I=>$r=-2449231+gm_julian_day+time);do{until($r<$#r){$_.=$r[$#r];$r-=$#r}for(;
!$r[--$#r];){}}while$r;$,="\x20";print+$_=>September=>MCMXCIII=>()'
------------------------------
Date: 16 Apr 1998 21:20:22 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Array / List question
Message-Id: <6h5smm$jrg$1@client3.news.psi.net>
Calle Dybedahl (qdtcall@esb.ericsson.se) wrote on MDCLXXXIX September
MCMXCIII in <URL: news:is3efdewzg.fsf@godzilla.kiere.ericsson.se>:
++ "A.P." <road@apdo.com> writes:
++
++ > I say this because an array in an scalar context I think it should
++ > return the number of elements, not the value of the last one.
++
++ It does. You don't have a scalar context.
Oh yes there is scalar context. You don't have an *array*.
Abigail
--
perl5.004 -wMMath::BigInt -e'$^V=new Math::BigInt+qq;$^F$^W783$[$%9889$^F47$|88768$^W596577669$%$^W5$^F3364$[$^W$^F$|838747$[8889739$%$|$^F673$%$^W98$^F76777$=56;;$^U=substr($]=>$|=>5)*(q.25..($^W=@^V))=>do{print+chr$^V%$^U;$^V/=$^U}while$^V!=$^W'
------------------------------
Date: Thu, 16 Apr 1998 13:48:59 -0700
From: Larry Rosler <lr@hpl.hp.com>
To: Chris & Sheila King <cking@wenet.net>
Subject: Re: Carriage return/line feed in text files
Message-Id: <35366EBB.A34A5111@hpl.hp.com>
Chris & Sheila King wrote:
>
...
>
> How do I create a LineFeed/Carriage Return in Perl for:
> 1. Win32
> and
> 2. if it's different...Unix/Linux systems.
>
> Thanks,
>
> Sheila King
> cking@wenet.net
\n in a double-quoted test string. (Your example uses single quotes,
which suppress this interpretation of backslash.) See "Learning Perl"
page 5: print ("Hello, world!\n"); or any other basic documentation.
Even though what actually gets written out depends on the operating
system, the difference shouldn't matter, because when read back in it
becomes the single character represented by \n once again.
Larry Rosler
Hewlett-Packard Laboratories
lr@hpl.hp.com
------------------------------
Date: Thu, 16 Apr 1998 21:22:46 GMT
From: cking@wenet.net (Chris & Sheila King)
Subject: Re: Carriage return/line feed in text files
Message-Id: <35387603.12838958@news.wenet.net>
On Thu, 16 Apr 1998 20:05:17 GMT, cking@wenet.net (Chris & Sheila King)
wrote:
:Ok, I'm the newest of newbies. Sitting here with a tutorial book.
...<snipped>...
:How do I create a LineFeed/Carriage Return in Perl for:
:1. Win32
:and
:2. if it's different...Unix/Linux systems.
Thanks for the e-mail responses. BTW, just for the record, I do have the
Lama book (1st ed.) and have looked over the Win32 Perl FAQ. I'm a Perl
newbie. Not a Usenet /programming newbie.
Sheila King
cking@wenet.net
Response that goes straight to the point:
:\n in a double-quoted test string. (Your example uses single quotes,
:which suppress this interpretation of backslash.) See "Learning Perl"
:page 5: print ("Hello, world!\n"); or any other basic documentation.
:
:Even though what actually gets written out depends on the operating
:system, the difference shouldn't matter, because when read back in it
:becomes the single character represented by \n once again.
------------------------------
Date: 16 Apr 1998 21:34:20 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Carriage return/line feed in text files
Message-Id: <6h5tgs$rgk$2@marina.cinenet.net>
Chris & Sheila King (cking@wenet.net) wrote:
: I just installed Perl5 on my Win95 machine, but expect to also put it on
: my Linux Box shortly. Portability issues are important.
:
: I'm doing the practice text exercises, like saving the following to a
: the file hello.pl:
:
: print 'Hello, World!';
:
: And then I go to the command line and type
: perl hello.pl
:
: It works fine. But, if I try to create any text files with more than one
: line, I can't. I can't figure it out. I just get one big long line
: (until eventually my DOS display wraps it).
How are your attempting to create multiline output? Could you post some
brief sample code? My guess is that you don't realize that the Perl
print function won't insert a terminal newline unless you ask for one,
using the (doublequote) escape sequence \n. Try this:
print "Line one\nand two\n";
print "...and three!\n";
When you run that, do you get three lines of output? If not, something
about your installation is seriously broken.
: How do I create a LineFeed/Carriage Return in Perl for:
: 1. Win32
: and
: 2. if it's different...Unix/Linux systems.
\n in both cases. It expands to The Right Thing on each host system:
\x0A on Unix
\x0D\x0A on DOS/Windows
\x0D on Macintosh
and so forth. Do remember that \n only works in doublequotish contexts,
so don't do 'Hello\n', but rather "Hello\n".
HTH!
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: 16 Apr 1998 21:27:07 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: cgi scripts to modify root-owned files and processes ?
Message-Id: <6h5t3b$jrg$2@client3.news.psi.net>
sweeting@neuronet.com.my (sweeting@neuronet.com.my) wrote on MDCLXXXIX
September MCMXCIII in <URL: news:6h5f4c$mic$1@nnrp1.dejanews.com>:
++ I have some CGI scripts to manage DNS ; this involves
++ modifying files owned by root (with 755 privileges) and
++ also involves restarting processes owned by root (with
++ kill -HUP PID).
++
++ However, since the webserver is run as Nobody, the
++ CGI scripts do not have the permission to do either of
++ the above.
++
++ Short of running the webserver's child processes as root,
++ is there any way of allowing the above ?
Well, you basically have to give the permissions to modify files and
restart processes to anyone using your web server. That's generally not
considered a smart idea, but if you insist, go ahead.
However, there's nothing Perl specific to your question. In fact, the
answer to your question will be OS and/or server specific. Please ask
in the appropriate groups.
Abigail
--
perl -e '$a = q 94a75737420616e6f74686572205065726c204861636b65720a9;
${qq$\x5F$} = q 97265646f9; s g..gqq e\x63\x68\x72\x20\x30\x78$&eggee;
{eval if $a =~ s e..eqq qprint chr 0x$& and \x71\x20\x71\x71qeexcess}'
------------------------------
Date: 16 Apr 1998 21:38:33 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: CLPM CONTENT POLICE (was info on cookies)
Message-Id: <6h5top$jrg$4@client3.news.psi.net>
Andrew F. Lee (andrewf@cp.pathfinder.com) wrote on MDCLXXXIX September
MCMXCIII in <URL: news:Pine.GSO.3.95.980416155516.18074G-100000@cp.pathfinder.com>:
++
++ In my humble opinion, Perl and CGI are commmon companions.
You are wrong. Just the fact a majority of CGI programs are written
in Perl doesn't mean the majority of Perl programs have anything
to do with CGI.
++ I think that
++ CGI questions coming from a Perl programmer ought to be welcome on
++ comp.lang.perl.misc (misc being short for miscellaneous, from the Latin
++ miscellus -- mixed).
You are wrong. CGI questions should go to the CGI group. After all, a CGI
programmer using C or a CGI programmer using Fortran might encounter the
same problems.
++ As a Perl programmer, I do not usually come to clpm questions about syntax
++ so much as questions about semantics. Apologies to those who are studying
++ Perl in a vacuum with no intention of ever writing applications.
You are wrong. Many applications are written in Perl that have nothing to
do with CGI.
++ My point: If you have something useful to say, please do. If you have
++ just had too much caffeine, please refrain from posting pointless and
++ sniveling comments (unless they are funny).
Your post is pointless and sniveling. And it ain't funny.
Abigail
--
perl -MTime::JulianDay -lwe'@r=reverse(M=>(0)x99=>CM=>(0)x399=>D=>(0)x99=>CD=>(
0)x299=>C=>(0)x9=>XC=>(0)x39=>L=>(0)x9=>XL=>(0)x29=>X=>IX=>0=>0=>0=>V=>IV=>0=>0
=>I=>$r=-2449231+gm_julian_day+time);do{until($r<$#r){$_.=$r[$#r];$r-=$#r}for(;
!$r[--$#r];){}}while$r;$,="\x20";print+$_=>September=>MCMXCIII=>()'
------------------------------
Date: Thu, 16 Apr 1998 14:05:47 -0700
From: Larry Rosler <lr@hpl.hp.com>
To: brian d foy <comdog@computerdog.com>
Subject: Re: commenting a whole block?
Message-Id: <353672AB.56070AF3@hpl.hp.com>
brian d foy wrote:
>
> In article <Pine.GSO.3.96.980416144604.18264A-100000@romulus.rutgers.edu>, Ji Huang <jonhuang@romulus.rutgers.edu> posted:
>
> >I am a new user of perl and maybe i am not well informed but I really
> >think it's extremely inconveniece in perl for me to bar a whole block of
> >codes from executing.
>
> see the previous arguments and opinions on this topic by searching
> Dejanews.
>
> good luck :)
>
> [1] Dejanews
> <URL:http://www.dejanews.com>
>
> --
> brian d foy <comdog@computerdog.com>
> CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
> Comprehensive Perl Archive Network (CPAN) <URL:http://www.perl.com>
> Perl Mongers <URL:http://www.pm.org>
> someone is going to end up calling someone else a nazi.
With all respect, this is a glib and totally useless response. I
followed your suggestion, and searched for "perl comment block", and
got 19 totally irrelevant responses (only 7 of which were from "perl"
groups, by the way). I don't want to waste more time refining the
search (adding "entire" reduced it to 1 irrelevant response, about
"Python").
If you point someone at Dejanews, please have the courtesy to try it
yourself first, then suggest the search keys. Otherwise,
> someone is going to end up calling someone else a nazi.
Larry Rosler
Hewlett-Packard Laboratories
lr@hpl.hp.com
------------------------------
Date: 16 Apr 1998 21:46:38 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: commenting a whole block?
Message-Id: <6h5u7u$jrg$6@client3.news.psi.net>
Ji Huang (jonhuang@romulus.rutgers.edu) wrote on MDCLXXXIX September
MCMXCIII in <URL: news:Pine.GSO.3.96.980416144604.18264A-100000@romulus.rutgers.edu>:
++
++
++ In C or C++ or Java all you have to do is put
++
++ /*
++
++ block
++
++ */
Well, not really, unless you have the tendency to not comment your code.
++
++ , but in perl i have to put # sign at the beginning of each line of the
++ block.
++
++ Is there any easier way for me to do it?
Yes. man perlpod
Abigail
--
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'
------------------------------
Date: Thu, 16 Apr 1998 17:55:44 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: commenting a whole block?
Message-Id: <comdog-ya02408000R1604981755440001@news.panix.com>
Keywords: from just another new york perl hacker
In article <353672AB.56070AF3@hpl.hp.com>, Larry Rosler <lr@hpl.hp.com> posted:
>brian d foy wrote:
>>
>> In article <Pine.GSO.3.96.980416144604.18264A-100000@romulus.rutgers.edu>, Ji Huang <jonhuang@romulus.rutgers.edu> posted:
>>
>> >I am a new user of perl and maybe i am not well informed but I really
>> >think it's extremely inconveniece in perl for me to bar a whole block of
>> >codes from executing.
>>
>> see the previous arguments and opinions on this topic by searching
>> Dejanews.
>With all respect, this is a glib and totally useless response. I
>followed your suggestion, and searched for "perl comment block", and
>got 19 totally irrelevant responses (only 7 of which were from "perl"
>groups, by the way).
this is a rather contentious thread that is full of flaming and
senseless posts like yours. people tend to get really worked up
over this subject. reading the past threads on this SAME EXACT
SUBJECT would have prevented you from making a fool of yourself.
>I don't want to waste more time refining the
>search (adding "entire" reduced it to 1 irrelevant response, about
>"Python").
i think this is the problem. i'm sorry that you don't have the skills
to do things on your own, but perhaps that is a sympton of the
fact that you also expect every post in usenet to explain the
universe.
>If you point someone at Dejanews, please have the courtesy to try it
>yourself first, then suggest the search keys. Otherwise,
i'm sorry that you are unable to find information on your own.
if you search only in the group comp.lang.perl.misc for "block comment",
i find about 100 responses. it seems like a fairly obvious thing to
do.
once you do that, count the number of times that this same subject has
come up, and look at the problems that each thread genereated.
now, think about the message that you posted to a world-wide medium. are
you sure this is the message you want to send about yourself to the
world?
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
Comprehensive Perl Archive Network (CPAN) <URL:http://www.perl.com>
Perl Mongers <URL:http://www.pm.org>
at least he didn't ask where the CGI Meta FAQ was, but probably will
------------------------------
Date: Thu, 16 Apr 1998 17:13:46 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: creating pod - was Re: commenting a whole block?
Message-Id: <comdog-ya02408000R1604981713460001@news.panix.com>
Keywords: from just another new york perl hacker
In article <35366009.2F1@flash.net>, dtbaker_@flash.net posted:
>could someone please review at a high level what is possible with pod?!
>i.e. the considerations/syntax for inserting it in your code, and the
>tools required to extract and read it?
perldoc perlpod
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
Comprehensive Perl Archive Network (CPAN) <URL:http://www.perl.com>
Perl Mongers <URL:http://www.pm.org>
------------------------------
Date: 16 Apr 1998 17:14:05 -0400
From: Dean Pentcheff <dean@tbone.biol.sc.edu>
Subject: Re: creating pod - was Re: commenting a whole block?
Message-Id: <87wwcp79lu.fsf@tbone.biol.sc.edu>
Dan Baker <dtbaker_@flash.net> writes:
> Jason Christian wrote:
> ...snip
> >
> > =pod
> > <buncha lines of perlcode that will be Really Ignored.>
> > =cut
> ------------------------
>
> could someone please review at a high level what is possible with pod?!
> i.e. the considerations/syntax for inserting it in your code, and the
> tools required to extract and read it?
See the perlpod manual page, distributed with perl. If you're on a
Unix-esque system, the command:
perldoc perlpod
should produce it for you. If not, you may have to grub around in
your perl program directories to find the documentation (but it's
almost certainly there). Failing all that, check at
http://www.perl.com for pointers to online versions of the Perl
documentation (but you're always better off knowing how to use the set
that's on your own system).
-Dean
--
N. Dean Pentcheff <pentcheff@acm.org>
Biological Sciences, Univ. of South Carolina, Columbia SC 29208 (803-777-7068)
------------------------------
Date: Thu, 16 Apr 1998 16:49:19 -0400
From: "Andrew F. Lee" <andrewf@cp.pathfinder.com>
Subject: Re: Farnham's Freehold
Message-Id: <Pine.GSO.3.95.980416164437.18074H-100000@cp.pathfinder.com>
On Thu, 16 Apr 1998, John Porter wrote:
> Ronald Stephens wrote:
> >
> > written by Todd Christianson and larry Wall, which I bumped into
>
> Nack!
>
> s/dd/m/;
> s/son/sen/;
>
> John Porter
>
s/\bl/L/;
------------------------------
Date: 16 Apr 1998 21:28:09 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: grep
Message-Id: <6h5t59$jrg$3@client3.news.psi.net>
Chris Snyder (snyderc@bvsd.k12.co.us) wrote on MDCLXXXIX September
MCMXCIII in <URL: news:353615AE.66E9@bvsd.k12.co.us>:
++ I am trying to write a program where the grep command is used to search
++ through all files in a directory (without knowing the file names) based
++ on a user entered string, and print out the names of all files
++ containing text matching the string.
Good for you! Now, don't forget to type ':wq' when you are done!
Abigail
--
perl -wleprint -eqq-@{[ -eqw\\- -eJust -eanother -ePerl -eHacker -e\\-]}-
------------------------------
Date: Thu, 16 Apr 1998 17:37:54 -0400
From: "Grinch" <grinch@whoville.com>
Subject: Re: grep
Message-Id: <6h5stv$3mc@fridge.shore.net>
Christian Wetzel wrote in message
<35363003.26E8@linguistik.uni-erlangen.de>...
>P.S.: On Unix, try the command
>
> find <directory> -exec grep -l '<search string>' {} \;
A faster way to do this:
find <directory> | xargs grep -l '<search string>'
The 'xargs' utility takes its stdin, appends it to whatever arguments its
given, and then executes the resulting command line. So, it calls only one
instance of 'grep' and passes it the list of files.
-grinch
--
-----
"Yes, I'm paranoid, but that doesn't mean
no one's out to get me." - me
Sherm Pendley
grinch@whoville.com
http://www.whoville.com
------------------------------
Date: Thu, 16 Apr 1998 14:58:19 -0500
From: akogan <akogan@radiology.nwu.edu>
Subject: how to remove blanks?
Message-Id: <353662DB.1DE072AB@radiology.nwu.edu>
Hi!
Can anyone tell me how to remove preceding and trailing spaces in a
string variable?
Thank you.
Alex.
------------------------------
Date: 16 Apr 1998 21:28:18 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: how to remove blanks?
Message-Id: <6h5t5i$rgk$1@marina.cinenet.net>
akogan (akogan@radiology.nwu.edu) wrote:
: Can anyone tell me how to remove preceding and trailing spaces in a
: string variable?
You know, this is the sort of question that gets newbies flamed around
here...you've asked an almost word-for-word FAQ:
perlfaq4/How_do_I_strip_blank_space_from_.html
(in the HTML version of the doc.) Read the FAQ. Study the FAQ. Check the
FAQ before posting. The FAQ is your friend. The FAQ answers questions
roughly 100 times faster than c.l.p.m, and much more reliably, too.
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: 16 Apr 1998 16:42:35 -0500
From: jesten@earth.execpc.com (Jim Esten)
Subject: Re: HTTP Perl Question
Message-Id: <6h5u0c$12r@newsops.execpc.com>
Phil Mein (pmein@johnco.cc.ks.us) wrote:
: Does anyone have a simple perl script that fetches a nonlocal web page
: in a text only mode?
: thanks
Try this...
#!/usr/bin/perl
use LWP::Simple;
use HTML::Parse;
getprint ($ARGV[0]);
cheers,
Jim
--
Jim Esten
WebDynamic
jesten@wdynamic.com http://wdynamic.com
------------------------------
Date: Thu, 16 Apr 1998 16:30:33 -0500
From: Jim Harrison <j_harrison1@ti.com>
Subject: Re: PERL aware code editor
Message-Id: <35367878.3A65735A@ti.com>
Glenn Schworak wrote:
> Hi, I am use to using a C editor that has a few nice features. The one I
> like most is the fact that comments and code are given two different
> colors while editing (not saved that way).
>
> I am wondering if there are such editors developed for PERL that will
> run under the Windows 95 environment. Also, are there any UNIX based
> programs that can do this by serving ANSI color codes to a telnet
> session?
>
> I have written a quick and dirty little editor using VB for use right
> now, but if there is something standard already out there it would be
> better to not re-invent the wheel. And if there is a UNIX program that
> can feed out ANSI color codes that would be even better yet as that way
> we wouldn't need to FTP the source codes up and down off the system any
> time we needed to make a change.
>
> Thanks for any guidence that can be offered!
I use a product call CRISP. It will run on UNIX and on Windows. It color
codes perl. It also let's you split the screen and run a shell session in
another window. This makes it pretty handy to develop in one window while
you edited the perl in the other. It also understands many other languages,
such as C.
he following companies can be contacted for CRiSP availability, pricing,
information, support or general sales queries.
Vital, Inc. Tel: +1 (214) 491 6907
4109 Candlewyck Drive Fax: +1 (214) 491 6909
Plano
Texas, USA 75024
Product Information - info@vital.com
Sales & Ordering - orders@vital.com
Technical Support - support@vital.com
WWW - http://www.vital.com
------------------------------
Date: 16 Apr 1998 21:13:39 GMT
From: spug@halcyon.com (Tim Maher)
Subject: PERL Talks on Reg. Exps, 4/21 Bellevue WA
Message-Id: <6h5sa3$7pp$1@brokaw.wa.com>
Keywords: SPUG PERL REs user groups
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
MEETING ANNOUNCEMENT:
The Seattle Perl User's Group (SPUG) will meet on April 21st, 1998
(3rd Tuesday)
TOPIC: Pattern-matching in Perl using Regular Expressions (REs).
SPEAKERS:
Marty Cudmore and Tim Maher will respectively
discuss Beginning and Advanced uses of Perl REs.
TIME: 7-9pm
LOCATION:
Thanks to the efforts of Marty and the generosity of BIT (www.bit.com),
we will be meeting at the CIBER, Inc. (www.ciber.com) building,
2125 112th Ave NE, Suite 201, Bellevue WA 98004.
There is a map with driving directions on our WEB site.
ADMISSION: free, and open to the general public.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
For more information, see http://www.halcyon.com/spug/, send Email to
spug@halcyon.com, or call Tim Maher, (206) 781-UNIX.
See you there!
===============================================================
| Tim Maher, Ph.D. Tel/Fax: (206)781-UNIX |
| SPUG Founder & Leader Email: spug@halcyon.com |
| Seattle Perl Users Group HTTP: www.halcyon.com/spug |
===============================================================
------------------------------
Date: Thu, 16 Apr 1998 17:45:48 -0400
From: "Grinch" <grinch@whoville.com>
Subject: Re: push a non HTML document to a web browser?
Message-Id: <6h5tcl$4d3@fridge.shore.net>
Paul wrote in message <6h4tmh$a03$1@yeppa.connect.com.au>...
>Is is possible to open a binary file like MSWord and send it to STDOUT?
>(assuming you send the right MIME type first?)
Yes, and that's pretty much all there is to it. Just send the appropriate
MIME type, and then send the binary data from the file.
Oh, and for future reference, there is a CGI group
(comp.infosystems.www.authoring.cgi) that deals with CGI issues. You can
probably find more help with things like this over there. This group deals
more with general Perl language issues such as syntax, modules usage and
such, and not so much with specific applications using Perl.
HTH!
-grinch
--
-----
"Yes, I'm paranoid, but that doesn't mean
no one's out to get me." - me
Sherm Pendley
grinch@whoville.com
http://www.whoville.com
------------------------------
Date: Thu, 16 Apr 1998 16:25:09 -0600
From: wcdw@hotmail.com
Subject: Setuid and Solaris
Message-Id: <6h5svl$at3$1@nnrp1.dejanews.com>
I'm having some problems with making setuid scripts work on Solaris 2.6 under
Perl 5.004_04. I was finally able to pound it into shape, but still wonder
why it required _quite_ so many gyrations.
For example, I can understand why PERL5LIB is ignored (even though this app
requires access to a different set of libs depending on input parameters,
forcing me to play "use lib [dir]" games). However, a couple things still
have me howling at the moon, and I was wondering if anyone could shed some
light for me.
1) Setting $ENV{PATH} to _ANYTHING_ (e.g., '/usr/bin') generates an "Insecure
PATH in setuid" error. Playing the following game:
my $x = '/usr/bin'; $x =~ /(\w+)$/; my $xx = $1;
$ENV{PATH} = $xx;
Appears to work, but then generates "Insecure directory in path..." errors --
even after setting /usr/bin explicitly to mode 0644. The only way Perl will
let me execute any backticked expressions is to explicitly "delete $ENV{PATH}"
-- and leave it deleted. (Not to mention $ENV{ENV} and $ENV{CDPATH}, but I
don't really care about those for this application.)
2) The following code does NOT work, but instead generates an "insecure
dependency in ``" error.
my $bin = '/usr/bin/progname';
my $str = `$bin $args`;
Yet if I change it as follows, it works just fine:
my $bin = '/usr/bin/progname';
$bin =~ /(.+)$/; my $b = $1;
my $str `$b $args`;
I have to untaint a variable whose value I set explicitly from hardcoded
data? I do not understand this one AT ALL.
Any comments welcome...
- bill
wcdw@hotmail.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 2341
**************************************