[10040] in Perl-Users-Digest
Perl-Users Digest, Issue: 3633 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Sep 4 09:05:48 1998
Date: Fri, 4 Sep 98 06: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 Fri, 4 Sep 1998 Volume: 8 Number: 3633
Today's topics:
#!/usr/bin/perl not working? <triangle@iinet.net.au>
Re: #!/usr/bin/perl not working? <jeffp@crusoe.net>
500 Internal error: Auto reply CGI script written in PE <julius@clara.net>
Re: 500 Internal error: Auto reply CGI script written i <Tony.Curtis+usenet@vcpc.univie.ac.at>
Re: 500 Internal error: Auto reply CGI script written i <kevinbartz@geocities.com>
array of "objects" <norbertheller_dontspammeatall@swol.de>
Re: Beginner needs help <jhi@alpha.hut.fi>
Re: CGI scripts <xwings@usa.net>
CGI search engines scripts vivekvp@hotmail.com
Re: Delay m96sla@my-dejanews.com
File copying from Mac To Unix <eric_lim_wt@sph.com.sg>
Re: file copying <sales@madm.com>
Re: HELP : Pattern Matching (Larry Rosler)
help! wanted cgi program <roca77@unitel.co.kr>
How do I get a $scalar to print literal ..... <sales@madm.com>
Re: How do I get a $scalar to print literal ..... (Matthew Bafford)
Re: How do you pass quotes to the command line? <r.goeggel@atos-group.de>
Re: How to DownLoad a file w/o using the browser <roeder@dba-sys.com>
Implemented <thealienz@thealienz.com>
Re: Implemented <sneaker@sneex.fccj.org>
Re: Is perl millennium compliant ? (David Cantrell)
Passing dirhandle to Xsub <scru@rdovira.lviv.ua>
Re: Perl gurus opinion needed. <dan@fearsome.net>
Re: Perl gurus opinion needed. <sneaker@sneex.fccj.org>
Re: Perl gurus opinion needed. <perlguy@inlink.com>
Problem with If <plateforme@wanadoo.fr>
Re: Programmer Needed ASAP <dan@fearsome.net>
Q: symlink under NT possible? (Bernhard Ehrminger)
Removing comments from C files ? asheikh@my-dejanews.com
Removing comments from C files using perl asheikh@my-dejanews.com
Search prakashpatel@hotmail.com
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 04 Sep 1998 20:02:51 +0800
From: Andrew Mulvey <triangle@iinet.net.au>
Subject: #!/usr/bin/perl not working?
Message-Id: <35EFD6EB.4B109D35@iinet.net.au>
Hi
*Very* new to Perl person here.
I can easily run perl scripts I have written in Linux (RH5.0) by typing
"perl exename" at the shell prompt but even if i start the script with
#!/usr/bin/perl my script won't run simply by entering its name at the
prompt (and yes i have set the file the script is saved in as executable
by u, g and o). The perl exe is sitting in /usr/bin btw.
Can anyone enlighten me?
Thanx
T :)
------------------------------
Date: Fri, 4 Sep 1998 08:33:46 -0400
From: Jeff Pinyan <jeffp@crusoe.net>
Subject: Re: #!/usr/bin/perl not working?
Message-Id: <Pine.GSO.3.96.980904083225.4216A-100000@crusoe.crusoe.net>
> I can easily run perl scripts I have written in Linux (RH5.0) by typing
> "perl exename" at the shell prompt but even if i start the script with
> #!/usr/bin/perl my script won't run simply by entering its name at the
> prompt (and yes i have set the file the script is saved in as executable
> by u, g and o). The perl exe is sitting in /usr/bin btw.
It might be the curse of the screwy path.
Try typing ./exename instead of just exename. If that works, then that
means that for some fruity reason, the . directory is not in your path.
It needs to be added to your path.
Jeff Pinyan
Crusoe Communications, Inc.
973-882-1022
jeffp@crusoe.net
ICQ 10222129
www.crusoe.net
------------------------------
Date: Fri, 4 Sep 1998 08:47:43 +0100
From: "Jules" <julius@clara.net>
Subject: 500 Internal error: Auto reply CGI script written in PERL, please help!!
Message-Id: <6so5k8$d87$1@eros.clara.net>
Dear all, I have written this little piece of perl code to auto reply to
whoever typed in the email address and hit the button on a webpage which is
as follows:
<HTML><BODY><FORM ACTION="emailist.cgi">
Email: <INPUT NAME="emailadd" size=25><P>
<INPUT TYPE=SUBMIT VALUE="SIGN UP">
</FORM></BODY></HTML>
and the PERL code is here:
#! /usr/bin/perl -w
use CGI qw(:standard);
$emailadd = param("emailadd");
open MAIL, "|mail $emailadd";
print MAIL "You will be notified of updates";
close MAIL;
It sends a message but IE4 still gives me an 500 Internal Error message
even though I get an email straight away (I tested with my email address).
What am I doing wrong?
Please help.
Thanx,
Jules
------------------------------
Date: 04 Sep 1998 10:32:57 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: 500 Internal error: Auto reply CGI script written in PERL, please help!!
Message-Id: <7xg1e8e0qu.fsf@salome.vcpc.univie.ac.at>
Re: 500 Internal error: Auto reply CGI script written in
PERL, please help!!, Jules <julius@clara.net> said:
Jules> Dear all, I have written this little piece of perl
Jules> code to auto reply to whoever typed in the email
Jules> address and hit the button on a webpage which is as
Jules> follows:
Jules> <HTML><BODY><FORM ACTION="emailist.cgi"> Email:
Jules> <INPUT NAME="emailadd" size=25><P> <INPUT TYPE=SUBMIT
Jules> VALUE="SIGN UP"> </FORM></BODY></HTML>
Jules> and the PERL code is here:
Jules> #! /usr/bin/perl -w use CGI qw(:standard); $emailadd
Jules> = param("emailadd"); open MAIL, "|mail $emailadd";
Jules> print MAIL "You will be notified of updates"; close
Jules> MAIL;
Jules> It sends a message but IE4 still gives me an 500
Jules> Internal Error message even though I get an email
2 things spring to mind:
1. the script is not outputting anything on stdout back to
the browser. That explains the error message. It has to
return _something_ back, and usually this is a simple HTML
document.
2. You've created a security hole by passing a value entered
by the user into an open() which goes through a shell (the
email address is the command line to `mail'. Just think of
all the security exploits if people type in things like
"< /etc/passwd").
Solution: use the Mail:: modules, or at least don't let
the value passed in a form go anywhere near a
shell evaluation.
This is covered in the perlfaq (perldoc perlfaq on-line)
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | private email:
Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>
------------------------------
Date: Fri, 4 Sep 1998 01:22:32 -1000
From: "Kevin Bartz" <kevinbartz@geocities.com>
Subject: Re: 500 Internal error: Auto reply CGI script written in PERL, please help!!
Message-Id: <6soiob$1er$1@supernews.com>
I tried this a while ago and had the same problem. You need to have the
thing send some disgusting output to the browser, or it hangs for a while,
ending with an Internal Server Error.
--- Kevin Bartz
Jules wrote in message <6so5k8$d87$1@eros.clara.net>...
>Dear all, I have written this little piece of perl code to auto reply to
>whoever typed in the email address and hit the button on a webpage which is
>as follows:
>
><HTML><BODY><FORM ACTION="emailist.cgi">
>Email: <INPUT NAME="emailadd" size=25><P>
><INPUT TYPE=SUBMIT VALUE="SIGN UP">
></FORM></BODY></HTML>
>
>and the PERL code is here:
>
>#! /usr/bin/perl -w
>use CGI qw(:standard);
>$emailadd = param("emailadd");
>open MAIL, "|mail $emailadd";
>print MAIL "You will be notified of updates";
>close MAIL;
>
>It sends a message but IE4 still gives me an 500 Internal Error message
>even though I get an email straight away (I tested with my email address).
>What am I doing wrong?
>
>Please help.
>
>Thanx,
> Jules
>
>
------------------------------
Date: Fri, 04 Sep 1998 09:24:02 +0200
From: norbert heller <norbertheller_dontspammeatall@swol.de>
Subject: array of "objects"
Message-Id: <35EF9591.BCC4BC9B@swol.de>
i am looking for a way to create an array of "objects" with perl 5
something like this
obj1:
red, left, string
obj2:
blue, right, number
obj3:
yellow, left, string
obj4:
white, middle, string
and so on ..
in my program is wish to init a table or database with all object
descriptions accordingly, without having to rely on a fixed number of
objects ( 2 - 100 maybe)
maybe someone can help ?
------------------------------
Date: 04 Sep 1998 11:23:34 +0300
From: Jarkko Hietaniemi <jhi@alpha.hut.fi>
Subject: Re: Beginner needs help
Message-Id: <oeer9xsqoah.fsf@alpha.hut.fi>
"Tijs" <Jantijs@dds.nl> writes:
> Hello,
Hello. Did you know that your Subject line is very, very, bad?
Please read the
http://www.perl.com/CPAN/authors/id/DMR/subjects.post
> After a calculation my script displays e.g. 270,7
>
> this must be 270,70 because it's a currency.
>
> or
>
> 270 this must be 270,00
(1) You can get the decimals with printf, see perlfunc for the long
story, but for now, printf "%.2f\n", $n
But do you really want the decimals is another matter, see the next item.
(2) Using Perl numbers for currency/financial calculations is dubious.
Perl numbers are exactly what in C are doubles and they are as bad.
The problem is called "floating point inaccuracy". You are not using
decimal numbers, you are using floating point numbers. You can find
more of it in perlfaq4, the very first question, but as an example:
0.1 cannot be represented accurately (using the most common
floating point numbers). Floating point numbers work best for
scientific/engineering calculations where the accountants
don't get a stroke if 0.1 + 0.9 differs from 1.0.
(3) You explicitly change '.' into a ','. Well, yes, that works.
But you could try using locales, this way you do not have to
change every number. See perllocale for full description but in short:
Before calling Perl set up your locale:
for example "setenv LC_NUMERIC nl_NL.ISO8859-1"
(the details depend on your operating system)
And then in the Perl script just:
use locale;
> $n =$premie; # $premie is the result of a calculation
> $n =~ s/\./\,/g; # convert . into ,
> $premie="<strong> $n</strong>";
> print "$premie";
>
> Thanks
>
>
--
$jhi++; # http://www.iki.fi/~jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen
------------------------------
Date: Fri, 04 Sep 1998 17:28:48 +0800
From: wings <xwings@usa.net>
Subject: Re: CGI scripts
Message-Id: <35EFB2CF.A83C711A@usa.net>
>
>
>
> print << END;
> Content-type: text/html
> <HTML><BODY><H1><P>Thank you for joining the list</H1></BODY></HTML>
> END
>
> }
>
there should be two "\n\n" after "Content-type:text/html".
wings
------------------------------
Date: Fri, 04 Sep 1998 10:34:26 GMT
From: vivekvp@hotmail.com
Subject: CGI search engines scripts
Message-Id: <6sofni$99o$1@nnrp1.dejanews.com>
are there any CGI search engine scripts out there? i want one that will
search the majoy search engines form one site - then returnt he output to me.
is there such an animal - or do i have to pay to get one?
thanx!
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Fri, 04 Sep 1998 08:31:43 GMT
From: m96sla@my-dejanews.com
Subject: Re: Delay
Message-Id: <6so8hf$vqt$1@nnrp1.dejanews.com>
In article <6sir18$cgv$1@baker.cc.tut.fi>,
Tommi Reiman <tkr@lehtori.cc.tut.fi> wrote:
> I must have missed something... How can I make a simple 1 (or n) sec.
> delay with perl??
>
> Tommi
>
read the man pages, look for sleep.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Fri, 04 Sep 1998 15:37:00 +0800
From: Eric <eric_lim_wt@sph.com.sg>
Subject: File copying from Mac To Unix
Message-Id: <35EF989B.7019CC18@sph.com.sg>
Hi all,
I have a program that copy file from Mac to Unix using Perl script
throught HTML's. However, the file copied is not the exact size ( the
resource fork of Mac's file is not copied).
So, how can I make sure that every single byte(raw data)is copied?
=== to select the file to copy in HTML =======
<FORM ACTION="/cgi-bin/copyfile.pl" ENCTYPE="multipart/form-data"
METHOD="POST">
<INPUT TYPE="FILE" NAME="EPSFILE" SIZE=30 ><BR>
<INPUT TYPE="SUBMIT" VALUE="TRANSFER">
</FORM>
======= to copy file in Perl ========
open ( FILE,"> /tmp/$fname" );
print FILE $pairs[1];
Regards.
------------------------------
Date: Fri, 4 Sep 1998 00:56:51 -0700
From: "Doyle Johnson" <sales@madm.com>
Subject: Re: file copying
Message-Id: <6so75a$83j$1@nnrp03.primenet.com>
Thanks to both of you... they both work...:)
>
------------------------------
Date: Fri, 4 Sep 1998 00:02:33 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: HELP : Pattern Matching
Message-Id: <MPG.1059306519308502989823@nntp.hpl.hp.com>
[Posted to comp.lang.perl.misc and copy mailed.]
In article <35EF8B6F.167E@cse.unsw.edu.au> on Fri, 04 Sep 1998 16:40:47
+1000, Chern Leong Lau <s2170000@cse.unsw.edu.au> says...
> how do u exclude some strings in your regular expression?
> Example , I want to match for links in a html file, links such as
>
> <a href = "http://something/">
> <a href = "./myscript.html">
>
> but I want to exclude mailto or ftp links ,like
> <a href="mailto:s2170000@cse.unsw.edu.au">
This can be done by zero-width negative look-ahead assertions. For
example, using your regex as a basis,
/<a href="(?!(?:mailto|ftp):)(.*?)">/ig
--
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Fri, 4 Sep 1998 20:29:05 +0900
From: "rocabilly" <roca77@unitel.co.kr>
Subject: help! wanted cgi program
Message-Id: <6soiqs$jh5$1@news.kornet.nm.kr>
I want cgi script for wanted
I will be happy that you send me cgi source about wanted
I am sorry that I can't do english very well
please
I hope
------------------------------
Date: Fri, 4 Sep 1998 01:04:16 -0700
From: "Doyle Johnson" <sales@madm.com>
Subject: How do I get a $scalar to print literal .....
Message-Id: <6so7j7$86a$1@nnrp03.primenet.com>
Heh couldnt get it all in the title....:)
How do I get a $scalar to print literal .... in the same line with one
that is avaluated? Im trying to create a CGI from a CGI and I have trouble
printing the variables.
The line needs to print to a file like so:
$bigdeal = "aaa";
But the tricky part is that one is an actual variable that needs to be
evaluated and the other does not. Example:
print "$bigdeal = "$user";\n";
ok variable $bigdeal needs to stay "$bigdeal" when printed to the new
file... but
"$user" needs to return its value to be printed to the new file. Am I
making sense?
I hope so.....:)
MadmX
------------------------------
Date: Fri, 4 Sep 1998 06:26:44 -0400
From: dragons@scescape.net (Matthew Bafford)
Subject: Re: How do I get a $scalar to print literal .....
Message-Id: <MPG.10598a1edd0b6f5398968c@news.south-carolina.net>
In article <6so7j7$86a$1@nnrp03.primenet.com> on Fri, 4 Sep 1998
01:04:16 -0700, Doyle Johnson (sales@madm.com) pounded in the
following text:
=> Heh couldnt get it all in the title....:)
=>
=> How do I get a $scalar to print literal .... in the same line with one
=> that is avaluated? Im trying to create a CGI from a CGI and I have trouble
=> printing the variables.
=>
=> The line needs to print to a file like so:
=>
=> $bigdeal = "aaa";
=>
=> But the tricky part is that one is an actual variable that needs to be
=> evaluated and the other does not. Example:
=>
=> print "$bigdeal = "$user";\n";
=>
=> ok variable $bigdeal needs to stay "$bigdeal" when printed to the new
=> file... but
=> "$user" needs to return its value to be printed to the new file. Am I
=> making sense?
=> I hope so.....:)
=>
=> MadmX
=>
print "\$bigdeal = $user\n";
Hope This Helps!
--Matthew
------------------------------
Date: Fri, 4 Sep 1998 10:54:07 +0200
From: "Ronald Gvggel" <r.goeggel@atos-group.de>
Subject: Re: How do you pass quotes to the command line?
Message-Id: <6so9vt$6oa$1@news.pop-stuttgart.de>
Dick Thaxter schrieb in Nachricht <35EEEC83.3D0A@loc.gov>...
>I want to execute:
>
> grep -i -e 'word1 word2' filename
>
@hits = `grep -i -e 'word1 word2' filename`;
this run fine on
hptest1:~/perl(16)> perl -v
This is perl, version 5.004_04 built for PA-RISC1.1
Copyright 1987-1997, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5.0 source
kit.
what's your problem?
what's your perl?
what's your OS?
Ronald
------------------------------
Date: Thu, 03 Sep 1998 11:07:38 -0400
From: William Roeder <roeder@dba-sys.com>
To: jwb79@mail.idt.net
Subject: Re: How to DownLoad a file w/o using the browser
Message-Id: <35EEB0BA.96C59B8D@dba-sys.com>
You might also consider sending a command to a already running netscape.netscape -help types:
-remote <remote-command> to execute a command in an already-running Netscape process. For
more info, see http://home.netscape.com/newsref/std/x-remote.html
Jim Babbington wrote:
> Vasant Kumar <vasant@bellatlantic.net> wrote in article <35EDED90.4487@bellatlantic.net>...
> : Hi -
> :
> : Can someone refer me to some program, script, or code that will let me
> : download a file from the given URL site without using the browser. I do
> : have access to Unix and Windows 95 machine, and can use Perl, C, or
> : Java.
> :
> : Example -
> :
> : When I go to the following location using Netscape browser, I am
> : prompted if quotes.csv (the file name in this case) should be downloaded
> : or saved:
> :
> : http://quote.yahoo.com/d/quotes.csv?s=dell&f=sl1d1t1c1ohgv&e=.csv
> :
> : If I select 'save', the file quotes.csv is saved. IS THERE A SIMPLE WAY
> : I can still download quotes.csv, in this example, without explicitly
> : going to the browser?
> :
>
> Try the LWP module. For what your doing, the "simple" get method should do just the trick.
> --
> HTH,
>
> Jim
------------------------------
Date: Fri, 04 Sep 1998 17:37:14 +0800
From: Justin Archie <thealienz@thealienz.com>
Subject: Implemented
Message-Id: <35EFB4C9.F7BBA081@thealienz.com>
Hello,
I have seen some sites that have integrated with PERL script/program
with a password login. Not just any though it loads something up using
something similar to htaccess. I have read docs on how to do this, but I
am not quite sure how to load up the password dialog box and check the
passwords and username within the script.
Justin Archie
------------------------------
Date: Fri, 04 Sep 1998 06:25:29 -0400
From: Bill 'Sneex' Jones <sneaker@sneex.fccj.org>
Subject: Re: Implemented
Message-Id: <35EFC019.E2B76C88@sneex.fccj.org>
Justin Archie wrote:
>
> Hello,
>
> I have seen some sites that have integrated with PERL script/program
> with a password login. Not just any though it loads something up using
> something similar to htaccess. I have read docs on how to do this, but I
> am not quite sure how to load up the password dialog box and check the
> passwords and username within the script.
>
> Justin Archie
A search of DejaNews will turn up lots of posts covering this.
Some of them posted recently - some not.
See http://www.perl.com and see http://www.dejanews.com
HTH,
-Sneex- :]
__________________________________________________________________
Bill Jones | FCCJ Webmaster | Murphy's Law of Research:
Enough research will tend to support your theory.
------------------------------
Date: Fri, 04 Sep 1998 10:37:40 GMT
From: NukeEmUp@ThePentagon.com (David Cantrell)
Subject: Re: Is perl millennium compliant ?
Message-Id: <35f0c180.62929107@thunder>
On 03 Sep 1998 17:43:43 -0400,
Dean Pentcheff <dean2@mail.biol.sc.edu> enlightened us thusly:
>Les George <georgelj@boat.bt.com> writes:
>> Does snybody knwo if the current releases of perl have been certified
>> for millennium compliance ?
>
>Hmmm... Let's see:
>
[snip]
> my(@date_sequence) = ( 991229, 991230, 991231, 000101 );
[snip]
> Bummer. Y2K failure ...
Programmer error, not language error. You've decided to use two
digits to represent the years. In your code, the year 0 is just that
- zero. The year 99 is just the year 99. Obviously, 0 comes before
99 and not after.
Would anyone bother asking whether C was compliant? Didn't think so.
perl is a language, and as such, is about as Y2K compliant as
Serbo-Croat.
--
David Cantrell, part-time NT/java/SQL techie
full-time chef/musician/homebrewer
http://www.ThePentagon.com/NukeEmUp
------------------------------
Date: 4 Sep 1998 13:16:34 +0300
From: Scrobach Ura <scru@rdovira.lviv.ua>
Subject: Passing dirhandle to Xsub
Message-Id: <Pine.BSF.3.91.980904120838.5168B-100000@rdovira.lviv.ua>
I need my own readdir sub that returns items declared in dirent struct
in array context and a filename in scalar context. Perl's readdir just
pops up SV casting it to GV and operates on it. I couldn't get success
doing so althuogh the code below surprisingly works fine if I pass a
symref to dirhandle.
@items = getdirent(\*DIR);
It also works it I omitt parentheses:
@items = getdirent DIR;
But does not if I use:
@items = getdirent(DIR);
Can someone tell me why this happen. I don't now much about perl's
internals and perlguts doesn't say much about GV.
void
getdirent(handle)
void *handle;
PPCODE:
Direntry_t *dp;
IO *io = GvIO((GV*)handle);
if (!io || !IoDIRP(io))
croak("getdirent: bad dir handle");
if ((dp = (Direntry_t *)readdir(IoDIRP(io))) != NULL)
if (GIMME_V == G_ARRAY) {
XPUSHs(sv_2mortal(newSViv(dp->d_fileno)));
XPUSHs(sv_2mortal(newSViv(dp->d_type)));
XPUSHs(sv_2mortal(newSVpv(dp->d_name, dp->d_namlen)));
} else
XPUSHs(sv_2mortal(newSVpv(dp->d_name, dp->d_namlen)));
Thanks.
------------------------------
Date: Fri, 4 Sep 1998 10:07:16 +0100
From: "Daniel Adams" <dan@fearsome.net>
Subject: Re: Perl gurus opinion needed.
Message-Id: <904906462.25686.1.nnrp-10.c2deb1c5@news.demon.co.uk>
stevenjm@olywa.net wrote in message <6sncck$sor$1@nnrp1.dejanews.com>...
>What!
>
>No Perl Diver's?
Actually, I was just thinking on this again last night - can't be arsed to
trace thr original post, but I seem to remember some Russian guy was looking
at the feasibility of "Perlacker" because of the lingiustic crudity of "Perl
Hacker" in Russian. Would not "Perl lackey" or "Perlackey" be a suitable
alternative? You know what a lackey is, even if I've spelt it wrong, right?
--
Dan Adams
dan@fearsome.net
http://fearsome.net
------------------------------
Date: Fri, 04 Sep 1998 07:13:57 -0400
From: Bill 'Sneex' Jones <sneaker@sneex.fccj.org>
Subject: Re: Perl gurus opinion needed.
Message-Id: <35EFCB75.4FECF631@sneex.fccj.org>
Daniel Adams wrote:
>
> stevenjm@olywa.net wrote in message <6sncck$sor$1@nnrp1.dejanews.com>...
> >What!
> >
> >No Perl Diver's?
>
> Actually, I was just thinking on this again last night - can't be arsed to
> trace thr original post, but I seem to remember some Russian guy was looking
> at the feasibility of "Perlacker" because of the lingiustic crudity of "Perl
> Hacker" in Russian. Would not "Perl lackey" or "Perlackey" be a suitable
> alternative? You know what a lackey is, even if I've spelt it wrong, right?
That's what we are afraid of: More Lackey. Just what Perl needs.
-Sneex-
__________________________________________________________________
Bill Jones | FCCJ Webmaster | http://webmaster.fccj.org/Webmaster
__________________________________________________________________
It is common sense to take a method and try it. If it fails,
admit it frankly and try another. But above all, try something.
-- Franklin D. Roosevelt
------------------------------
Date: Fri, 4 Sep 1998 11:20:52 GMT
From: Brent Michalski <perlguy@inlink.com>
Subject: Re: Perl gurus opinion needed.
Message-Id: <35EFCD14.4C337F5D@inlink.com>
What is _wrong_ with Perl guy? (Note my e-mail address :-)
Hi Elaine!
--
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ Brent Michalski $
$ -- Perl Evangelist -- $
$ E-Mail: perlguy@technologist.com $
$ Resume: http://www.inlink.com/~perlguy $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
------------------------------
Date: Fri, 04 Sep 1998 09:21:37 +0200
From: plateforme <plateforme@wanadoo.fr>
Subject: Problem with If
Message-Id: <35EF9501.57119DD8@wanadoo.fr>
Hello,
I would like to make a programm but I have a problem with a condition :
I must say: " If find toto then save toto and words until titi in $a.
A friend says me :
$a = $1 if /\b(toto\b.*)/; but I dont think that is right.
So, thanks for your help,
Fred
------------------------------
Date: Fri, 4 Sep 1998 10:04:09 +0100
From: "Daniel Adams" <dan@fearsome.net>
Subject: Re: Programmer Needed ASAP
Message-Id: <904906461.25686.0.nnrp-10.c2deb1c5@news.demon.co.uk>
Ronald J Kimball wrote in message
<1desve1.1sse4lqwjfk9cN@bay2-87.quincy.ziplink.net>...
>Aaron <aaron@pornoinferno.com> wrote:
>
>> and will pay hansomly.
> ^^^^^^^^
>
>But, you'll have to pay income taxis.
You forget about the perl tax, also. Granted, you'd have to be from Nu Yawk
and living in Thatchertite Britain.
Bit of a stretch, I know. ;-)
--
Dan Adams
dan@fearsome.net
http://fearsome.net
------------------------------
Date: 4 Sep 1998 11:01:03 GMT
From: bernhard@perm.geologie.uni-freiburg.de (Bernhard Ehrminger)
Subject: Q: symlink under NT possible?
Message-Id: <6soh9f$77h$1@n.ruf.uni-freiburg.de>
Hi,
I would like to know if symlink works under NT?
IF not: are there other options for creating links
in an automatic manner under NT (no its not a joke)?
cheers Bernhard
------------------------------
Date: Fri, 04 Sep 1998 12:11:04 GMT
From: asheikh@my-dejanews.com
Subject: Removing comments from C files ?
Message-Id: <6solco$f4v$1@nnrp1.dejanews.com>
How do I remove comments from a C file using perl's pattern matching. Please
note that comments can span multiple lines. Here is some examples:
/**** COMMENTS ****/
/****
**
** COMMENTS
**
**
*****/
/**
**
**
**
**/
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Fri, 04 Sep 1998 12:06:03 GMT
From: asheikh@my-dejanews.com
Subject: Removing comments from C files using perl
Message-Id: <6sol3b$f2a$1@nnrp1.dejanews.com>
How to remove comments (even multiline) from a C file using perl's pattern
matching.
Please note that all the following lines should be removed as comments :
/**** COMMENTS ****/
/***
*
* COMMENTS
*
*
*/
/***** COMMENTS *****/
/****
****
COMMENTS
*****
*****/
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Fri, 04 Sep 1998 12:34:42 GMT
From: prakashpatel@hotmail.com
Subject: Search
Message-Id: <6somp2$glg$1@nnrp1.dejanews.com>
Hello friends, I am trying to write a small database program. All I have
gotten so far is to display all the data and add the data to the data file. I
want to write a search script the would search the data file with the given
string. Can someone provide me with the algorithm and some functions i can
use to search a data file. Thank you.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>
Administrivia:
Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.
If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 3633
**************************************