[11192] in Perl-Users-Digest
Perl-Users Digest, Issue: 4792 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jan 31 19:07:13 1999
Date: Sun, 31 Jan 99 16:00:23 -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 Sun, 31 Jan 1999 Volume: 8 Number: 4792
Today's topics:
A little help, thanks. <wfs-dominion@worldnet.att.net>
Re: A little help, thanks. <STEVENHENDERSON@prodigy.net>
Re: Can you launch a background process from web page? <Savage.Ron.RS@bhp.com.au>
Creating a new directory (M)
Re: Dial up Networking and PERL (Simon Whitaker)
Re: Double Writing in Logs... Why? (Ronald J Kimball)
Re: Email script ..seems to be working.. anything overl (Ronald J Kimball)
File Testing Problem beach9000@hotmail.com
Re: Freelance Work Postings? <javaprogrammer@mindspring.com>
Help with "Malformed header" error <jeff909@hotmail.com>
How can ??-pattern matching be used? (Jan Garefelt)
Re: Is it possible to source a .cshrc file from a perl (Tad McClellan)
Need Tutorial <ktupper1@maine.rr.com>
Re: Need Tutorial (Matthew Bafford)
Re: Newbie question - posting code sample <gasmiley@nospam.mediaone.net>
Re: Perl Crashes IIS4! <Richard.Walker@west-server.com>
Re: Perl Criticism [summary] (Tad McClellan)
Re: Perl Criticism [summary] topmind@technologist.com
Re: Perl Criticism topmind@technologist.com
Re: Perl Criticism topmind@technologist.com
Re: Perl Criticism topmind@technologist.com
Perl script doesn't execute, instead displays contents <seshu@cs.wpi.edu>
Re: Request for negative value list indexes (Ronald J Kimball)
Select and FTP (Timothy Church)
Using integers in perl <aboe_bakr@_X_excite.com>
Re: Visual Perl? ("D.Taylor")
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 31 Jan 1999 22:42:02 GMT
From: "Justin Saul" <wfs-dominion@worldnet.att.net>
Subject: A little help, thanks.
Message-Id: <792m7q$866@bgtnsc02.worldnet.att.net>
Hi,
I am kind of new at this stuff, but I learn quickly and have one quick
problem I need fixed. Please tell me how I can manage the following problem:
I want to open a file that has data in it and make it into a variable. For
example file X.dat has my data and I want to have the data from that file
become variable $x, so that later I can use $x as a printible object.
Thanks,
Justin Saul
------------------------------
Date: Sun, 31 Jan 1999 14:56:36 -0600
From: "STEVEN T HENDERSON" <STEVENHENDERSON@prodigy.net>
Subject: Re: A little help, thanks.
Message-Id: <792n2r$iuu$1@newssvr03-int.news.prodigy.com>
kinda depends on what is stored in the file, but this works fine for me.
# Find user name left by the login script
if(! open(ATHLETE, "< $HOME_DIR/_$ENV{'REMOTE_ADDR'}"))
{
# Could not find file, bummer.
printf("ERROR: Cannot read temporary athlete file");
&EarlyExit;
}
# Otherwise...
$athlete = <ATHLETE>;
chop($athlete);
close(ATHLETE);
i am however no longer using this function 'cause i was storing an email
name coded with the IP address of the client machine. this was needed to
allow more than one user on the system at a time, but prove to be faulty due
to some proxy concerns, which of course has nothing to do with your original
question. just focus on the read and assign.
Justin Saul wrote in message <792m7q$866@bgtnsc02.worldnet.att.net>...
>Hi,
> I am kind of new at this stuff, but I learn quickly and have one quick
>problem I need fixed. Please tell me how I can manage the following
problem:
>
>I want to open a file that has data in it and make it into a variable. For
>example file X.dat has my data and I want to have the data from that file
>become variable $x, so that later I can use $x as a printible object.
>
>Thanks,
>Justin Saul
>
>
------------------------------
Date: Mon, 1 Feb 1999 09:17:00 +1100
From: "Ron Savage" <Savage.Ron.RS@bhp.com.au>
Subject: Re: Can you launch a background process from web page?
Message-Id: <792kgu$l61@atbhp.corpmel.bhp.com.au>
Yes, this can be done, and without fork too!
Sometime this week I'll put xml2HtmlGenerator.pl on my web site. I've tested
it under Apache.
--
Ron Savage
Office (preferred): Savage.Ron.RS@bhp.com.au
Home: rpsavage@ozemail.com.au
http://www.ozemail.com.au/~rpsavage
Robbin wrote in message <36B13336.6C44997D@trw.com>...
>I'm somewhat new to Perl and was wonder if someone has a sample script and
>willing to share that will start a client application from a web page, so
>that the client
>app will run in the background and bring up it's own gui.
>
>like if wanted to start emacs off a web page, or the clock or calendar on
>Solaris desktop.
>
>
>
------------------------------
Date: Sun, 31 Jan 1999 15:19:24 -0600
From: oncall@interaccess.com (M)
Subject: Creating a new directory
Message-Id: <oncall-3101991519240001@d150-195.ce.mediaone.net>
Can anyone help with the code. I am trying to create a script the will
allow an admin to create new directories on the server.
For some reason, the mkdir("filename", 0755) does not work.
Here is the code. Can someone please help me on this one?
$result = mkdir("newdir",0755);
Is there another function?
------------------------------
Date: Sun, 31 Jan 1999 21:02:14 GMT
From: simon@netcetera.org (Simon Whitaker)
Subject: Re: Dial up Networking and PERL
Message-Id: <36b4c4b6.4018557@news.u-net.com>
On Sun, 31 Jan 1999 12:53:26 -0000, gary robson wrote:
> Can anybody tell me how to connect and hangup and windows Dial up Networking
> account from perl.
> Cheers Gary
Try Win32::DUN
Info at: http://www.dux.ru/guest/fno/perl/
Simon
--
Take a STAND against ill-considered UK anti-crypto legislation
currently under proposal -- http://www.stand.org.uk/step1.php3
[Please alter spam to simon if replying to me by mail. Thanks]
------------------------------
Date: Sun, 31 Jan 1999 16:42:53 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Double Writing in Logs... Why?
Message-Id: <1dmi7qs.ri697x196k1tsN@bay2-74.quincy.ziplink.net>
E. Preble <preble@ipass.net> wrote:
> I have several cgi (perl) log file programs (some that I've
> written, some that others have written). The common thread to all
> of them is that they all seem to "double log" things occasionally.
> Anyone know why? Does it have to do with the flock command (to
> prevent file corruption) or possibly the way that browsers
> actually retrieve the document? Any workarounds?
They _all_ have a bug on line 17.
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Sun, 31 Jan 1999 16:42:54 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Email script ..seems to be working.. anything overlooked
Message-Id: <1dmi7vr.1577c8hcngxqiN@bay2-74.quincy.ziplink.net>
Quentin Compson <bcompson@yahoo.com> wrote:
> I am very new to perl so for all I know I may have over looked something.
> I was wondering if anyone who knows perl better than I do would see
> anything
> to burst my bubble with : ( or if this code is fine as is. : )
*pop!* :-)
The main thing you seem to have overlooked is the CGI.pm module. This
module handles the reading of data, the parsing of arguments, and the
conversion of hex escapes. It is strongly recommended that you 'use
CGI' in all your CGI scripts.
A few other things you overlooked...
You should check the return value from your read, to make sure you got
all the bytes you expected.
Instead of $x || $x = 'foo', you can do $x ||= 'foo'. Cute, huh? :-)
When you open a pipe to external command, you also need to check the
return value when you close the pipe. (BTW, you did remember to define
the HTMLdie subroutine somewhere, right?)
The HTML in your script could be improved. In particular, you're
missing the <HEAD></HEAD> section. Other issues: You set a background
color, but neglect to set the text and link colors. Your images need
ALT attributes. You close an </H3> that you never opened.
Despite all that, your script should work well, and it looks like you're
off to a good start with Perl!
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Sun, 31 Jan 1999 21:53:44 GMT
From: beach9000@hotmail.com
Subject: File Testing Problem
Message-Id: <792jd5$gg4$1@nnrp1.dejanews.com>
Hi, I make a file: $outfile = "/tmp/blah.txt"; I then make it unique:
$dateStamp=`date +.%m_%d_%y.%H:%M:%S`; $outfile .= $dateStamp; But when I
test the file with: ( -s "$outfile" ) ? print "size <> 0\n" : print "size =
0\n"; it comes up false when I know it to be true. But when I run the same
script again with out adding the datestamp to the outfile, it comes up true.
For example, the following concat returns true, even though its of the same
form. $outfile .= ".01_31_99.16:48:02"; Could somebody tell me what I'm
doing wrong? Or should I use the perl time functions? Thanks.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 31 Jan 1999 03:42:14 -0600
From: "d. kelly henderson" <javaprogrammer@mindspring.com>
Subject: Re: Freelance Work Postings?
Message-Id: <36B42576.BE729A4C@mindspring.com>
Stoic wrote:
> Hello,
> Would this forume be suitable for freelance work postings or would
> another list be more appropriate? It's not geographically biased.
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Yes, they are called Perl Prowlers....hehehe
------------------------------
Date: Sun, 31 Jan 1999 11:56:45 -0800
From: "Jeff" <jeff909@hotmail.com>
Subject: Help with "Malformed header" error
Message-Id: <792cu2$5ga$1@remarQ.com>
Hi, I am very new to perl and have been tryint to write a script that will
open a passwords file and check a name and password a user woudl eneter
against the names and pwords in the file. I THINK I have written the
script correctly but I keep getting an error message "Malformed header" but
it doesn't tell me which eader is malformed. Here is an example of the
script can someone tell me what the issue is? Thanks for any help.
#!/usr/bin/perl
require "cgi-lib.pl";
&ReadParse;
&PrintHeader;
open(FILE,"passcodes.pl") || die "Can't open file\n";
@indata = <FILE>;
$name = $in{name};
$password = $in{password};
close(FILE);
print "<HTML>";
print "<HEAD>";
print "<TITLE>Checking passwords</TITLE>";
foreach $i(@indata)
{
chop($i);
($Pname,$Ppassword)=split(/\|/,$i);
if($name == $Pname && $password == $Ppassword)
{
print "<P>Welcome</P>";
}
else
{
print "<P> No access </P>";
}
}
print "</HEAD></HTML>";
------------------------------
Date: 31 Jan 1999 23:16:19 +0100
From: jang.nospam@pobox.se (Jan Garefelt)
Subject: How can ??-pattern matching be used?
Message-Id: <y0fg18rt7f0.fsf@orange51.nada.kth.se>
In various kinds of Perl documentation I am told that:
?pattern?
works just like
/pattern/
...except that it matches only once between calls to the
reset-operator. It doesn't work that way, at least not for me.
Where can I find info or code examples that shows how to use
??-searching? I have really tried searching the web, but not found any
examples...
Thank you in advance,
Jan Garefelt
--
Jan Garefelt jang.nospam@pobox.se
(You know what part to remove to get my mail address!)
------------------------------
Date: Sun, 31 Jan 1999 15:28:05 -0600
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Is it possible to source a .cshrc file from a perl script?
Message-Id: <5th297.3g7.ln@magna.metronet.com>
Soo Jang (sjang@qualcomm.com) wrote:
: I'm trying to source a .cshrc file which sets environment variable
: by setenv c-shell command from a perl script.
Perl FAQ, part 8:
"I {changed directory, modified my environment} in a perl script.
How come the change disappeared when I exited the script?
How do I get my changes to be visible?"
: How can I perform this?
You can't.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sun, 31 Jan 1999 20:51:52 GMT
From: "the Tupper's" <ktupper1@maine.rr.com>
Subject: Need Tutorial
Message-Id: <01be4d5b$505baaa0$2951d2cc@yoda>
Can any good programmers out there tell me what they used to learn perl. If
you used any tutorials off the net just post the address. I don't really
want to buy a $70 book so don't bother giving me titles to books unless it
is absolutely the best thing you could ever get.
------------------------------
Date: Sun, 31 Jan 1999 21:03:46 GMT
From: dragons@scescape.net (Matthew Bafford)
Subject: Re: Need Tutorial
Message-Id: <slrn7b9h2u.r27.dragons@Server.Network>
On Sun, 31 Jan 1999 20:51:52 GMT, the Tupper's <ktupper1@maine.rr.com> wrote:
-> Can any good programmers out there tell me what they used to learn perl. If
-> you used any tutorials off the net just post the address. I don't really
-> want to buy a $70 book so don't bother giving me titles to books unless it
-> is absolutely the best thing you could ever get.
Standard Documentation:
perldoc perldoc
perldoc perl
perldoc perltoc
perldoc ...
LOL (List of Links):
http://www.perl.com/
http://reference.perl.com/query.cgi?section=tutorials
Books:
http://www.oreilly.com/catalog/lperl2/
http://www.oreilly.com/catalog/cookbook/
http://www.oreilly.com/catalog/pperl2/
Magazine (and magazine articles):
http://www.tpj.com/
http://www.stonehenge.com/merlyn/WebTechniques/
http://www.stonehenge.com/merlyn/UnixReview/
Search Engines:
http://www.yahoo.com/
http://www.altavista.com/
HTH!
--Matthew
------------------------------
Date: Sun, 31 Jan 1999 16:52:49 -0500
From: Gary Smiley <gasmiley@nospam.mediaone.net>
Subject: Re: Newbie question - posting code sample
Message-Id: <36B4D0B1.50C3D43@nospam.mediaone.net>
OK- I got the program.All I'm trying to do is write the results of a form to a
common file on a shared network drive.
Here's the file I'm trying to append to on the shared drive:
# Output file location
$outfile='\\\\computer\share\myfile.txt';
Here's where I try to write the file
# open text storage file
open (DTXT, ">> $outfile") || exit &errormsg("$outfile $!\n");
print DTXT
"$in{'Zipcode'}$in{'LastName'}$in{'FirstName'}$in{'Address1'}$in{'City'}$in{'State'}
"$in{'WEB'}$in{'DATEENTERED'}$in{'Address2'}$in{'IRANO'}$in{'IRAYES'}\n";
close(DTXT);
It consistantly gives me the error message: "Invalid Argument"
I tried every possible variation of slashes, but I believe that the above is
correct. File permissions are full access for everybody.
Hope this helps. - Gary
Abraham Grief wrote:
> On Sun, 31 Jan 1999, Gary Smiley wrote:
>
> > Thanks, but I don't think that's it. I stored my filename in a literal as
> > $myfile = "\\\\computername\\shareddrivename\\directoryname\\filename".
> > I found out the hard way that the backslash is an escape character so you
> > need two of them for each backslash in your string.
> > When it died I displayed the file name, which then appeared as:
> > "\\computername\shareddrivename\directoryname\filename".
> > The error was "invalid argument".
> > I still don't know the answer.
>
> Invalid argument? Is this error message from a check on an open or is it
> being generated by a call to the system function, or maybe even something
> else? Maybe posting some code would help, especially where it died...
--
To reply, please remove the anti-spam portion of the return address.
------------------------------
Date: Sun, 31 Jan 1999 15:30:36 -0500
From: Richard Walker <Richard.Walker@west-server.com>
Subject: Re: Perl Crashes IIS4!
Message-Id: <36B4BD6C.E32145D7@west-server.com>
I R A Aggie wrote:
>
> In article <790p07$92m$4@client2.news.psi.net>, abigail@fnx.com wrote:
>
> + Richard Walker (Richard.Walker@west-server.com) wrote on MCMLXXVIII
> + September MCMXCIII in <URL:news:36B39BAF.60761156@west-server.com>:
> + **
> + ** Every time I run a PerlScript in ASP that uses IO::Sockets, it executes,
> + ** then promptly shuts my IIS4 server down.
> +
> + Sounds like a bug in IIS to me.
Why does this sound like a bug?
>
> Sounds like a feature, actually.
Why would this be a feature? What purpose could it possibly serve?
Please elaborate.
>
> James
--
What is time? If no one asks me, I know; if I wish
to explain to one who asks, I do not know.
-- St. Augustine
------------------------------
Date: Sun, 31 Jan 1999 13:38:02 -0600
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Perl Criticism [summary]
Message-Id: <qeb297.217.ln@magna.metronet.com>
topmind@technologist.com wrote:
: In article <36B2780D.7D298414@mediaone.net>,
: "Michael D. Schleif" <mds-resource@mediaone.net> wrote:
: >
: > topmind@technologist.com wrote:
: > >
: > > So spelling and grammar are related to one's programming experiece.
: >
: > For once, I agree with topmind !!!
: That was an indirect question, not a claim.
No it wasn't.
Questions end with a question mark.
Statements end with a period.
Those are the rules of English grammar.
So that was a statement.
Say what you mean.
Some might say that your poor grammar is an insight
into the quality of your programming.
I'm going to agree with that.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sun, 31 Jan 1999 22:39:51 GMT
From: topmind@technologist.com
Subject: Re: Perl Criticism [summary]
Message-Id: <792m3m$ir5$1@nnrp1.dejanews.com>
In article <36B40A41.B3A8CA99@mediaone.net>,
"Michael D. Schleif" <mds-resource@mediaone.net> wrote:
>
> topmind@technologist.com wrote:
> >
> > In article <36B2780D.7D298414@mediaone.net>,
> > "Michael D. Schleif" <mds-resource@mediaone.net> wrote:
> > >
> > > topmind@technologist.com wrote:
> > > >
> > > > So spelling and grammar are related to one's programming experiece.
> > >
> > > For once, I agree with topmind !!!
> >
> > That was an indirect question, not a claim.
>
> And, questions end with _which_ punctuation?
>
> > > > (P.S. When I am done fixing programming languages, I am going
> > > > to replace english with a TRUE FONETIC system, so we are not
> > > > stuck with illogical rules given to us by bad history.
> > > > You probably cannot even recognize Englishes' illogical
> > > > rules because you seem to lack the ability to stand back from
> > > > what you are used to.)
> > >
> > > How many Englishes would possess illogical rules? Again, and again, sir
> > > topmind insists on changing things for which he himself has no command.
> > >
> > > What is this argument: I must change things that I do not understand so
> > > that I need not take time to master them?
> >
> > So you propose living with archaic, silly, illogical, inconsistant systems
to
> > benefit those who have the ability to master illogical cryptology?
> >
> > I sentence you to read and write ONLY in Chinese characters!
>
> And this is your `technical' argument?
>
> Sorry, but I've already stated that English is my language, which you've
> also insulted; but, I'll stay with it anyway. It suits me.
>
> In fact, as you may know, the bard William Shakespeare used English to
> great advantage. As well as linguists such as Chomsky and another of
> whom you may have heard, Larry Wall.
>
> Of course, they all took pride in their spelling, grammar and syntax.
> Could this be _why_ none of them are rushing to transmogrify Perl }:-^
>
> Perhaps, you would trivialize Sanskrit and Hebrew, too, for their great
> learning curves? It seems that that attitude would dismiss some of the
> world's most important philosophy -- unless, of course, Big Brother
> topmind, is about to impart profound wisdom to us, his eager acolytes,
> after which we will no longer need the words of Jesus nor Buddha ???
Are we talking art and asthetics or productivity?
>
> [...]
> Best Regards,
>
> mds
> mds resource
> 888.250.3987
>
> "Dare to fix things before they break . . . "
>
> "Our capacity for understanding is inversely proportional to how much we
> think we know. The more I know, the more I know I don't know . . . "
>
-tmind-
http://www.geocities.com/SiliconValley/Lab/6888/langopts.htm
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 31 Jan 1999 22:26:52 GMT
From: topmind@technologist.com
Subject: Re: Perl Criticism
Message-Id: <792lb3$iat$1@nnrp1.dejanews.com>
In article <36B27526.5F4D4B6A@mediaone.net>,
"Michael D. Schleif" <mds-resource@mediaone.net> wrote:
>
> topmind@technologist.com wrote:
> >
> > Yes, they confused me, and I am NOT A DUMB PERSON!
>
> Debatable; but, definitely *not* worth the bandwidth }:-^
>
> > If they confuse me, I guarentee they will confuse a good many
> > programmers, perhaps a majority.
>
> Even if we accept `majority,' what does that have to do with the
> integrity of Perl?
I was talking about referants/pointers in Perl, not Perl in general.
Their Power-to-Confusion ratio is not very high.
Assembler is complex, confusing and beyond most
> modern programmers -- yet, some of those who use it build things that
> *no* other language can touch in terms of efficiency, size and
> all-out-speed.
>
> Would you criticize assembler? Is it rendered useless simply because
> *you* cannot use it? Are you in any position to tell the assembler
> programmer that they are wrong for using assembler, *because* it
> confuses you?
>
If they used it simply because they were familiar with
it from archaic years, then it would be a problem.
It is a matter of knowing the criteria and trade-offs
and wieghing them between each other.
Pointers and referants are archiac constructs, not
meant for a scripting language IMO.
> Not once have you responded to my pragmatic issues of CONTEXT,
> PROFICIENCY and USABILITY.
>
Did I write that? I don't remember the context.
> Care to comment?
>
> --
>
> Best Regards,
>
> mds
-tmind-
http://www.geocities.com/SiliconValley/Lab/6888/langopts.htm
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 31 Jan 1999 22:30:48 GMT
From: topmind@technologist.com
Subject: Re: Perl Criticism
Message-Id: <792lio$idg$1@nnrp1.dejanews.com>
In article <917651962.268899@elaine.drink.com>,
gorilla@elaine.drink.com (Alan Barclay) wrote:
> In article <78t9t3$9hj$1@nnrp1.dejanews.com>,
> <topmind@technologist.com> wrote:
> >Yes, they confused me, and I am NOT A DUMB PERSON!
>
> Are you sure about that?
>
>
That is not a very imaganative nor creative insult.
(Either is my criticism of it, but hey.)
-tmind-
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 31 Jan 1999 23:03:13 GMT
From: topmind@technologist.com
Subject: Re: Perl Criticism
Message-Id: <792nfc$jtj$1@nnrp1.dejanews.com>
Reply to Kirby Krueger (1/29):
>> (Perl is not a 'scripting' language, in the sense that shell programming
languages are. But I'm convinced that arguing basic semantics with topmind is
a pointless operation.) <<
It would help if you could find an objective and
non-conflicting source of the formal, standard,
approved definition of "scription language".
Anyhow, I defined my personal interpretation
of it, and that is what I a working with.
>> Passing more than one complex parameter to a function (such as arrays and
hashes.) <<
Why are pointers necessary for this? Other
languages can pass arrays without pointers.
>> Object-oriented Perl uses references like crazy. (Whether or not OOP Perl is
good is another topic. I have my doubts.) <<
Other languages have OOP without pointers.
(I am not an OOP fan either.)
>> Efficient argument passing. (You don't want to pass a hash of 10000 elements
around much.) <<
Many languages support the idea of by-reference
and by value parameters. You use by-reference
so that a copy does NOT have to be made. (There
are further variations to consider.)
>> Complex data structures, such as arrays of hashes, hashes of hashes, etc.
Anyone who has done a lot of programming will understand that sometimes a well
designed data structure can save you a lot of trouble, even if the design
itself is somewhat complex. <<
There are probably other ways to do these that
just simply never occured to you. (I don't
know about in Perl, but in other languages and
paradigms.)
>> The claim that Perl would be better off without references is incredibly
absurd. <<
Well, I stand behind that claim until proven
otherwise.
-tmind-
http://www.geocities.com/SiliconValley/Lab/6888/langopts.htm
P.S., Thanks for discussing mostly technical and business
issues instead of insults. The flaming gets old.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 31 Jan 1999 16:34:01 -0500
From: Seshubabu Pasam <seshu@cs.wpi.edu>
Subject: Perl script doesn't execute, instead displays contents of file.
Message-Id: <Pine.GSO.3.96.990131163141.20620A-100000@crane.WPI.EDU>
Hi,
Why doesn't my perl script run. When I view the file from browser it
displays the contents of the file, instead of displaying the result.
Check: http://www.cs.wpi.edi/~seshu/checkmail.cgi
Thanks
Seshubabu Pasam
------------------------------
Date: Sun, 31 Jan 1999 16:42:55 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Request for negative value list indexes
Message-Id: <1dmi8rr.buk54m1olrdxmN@bay2-74.quincy.ziplink.net>
Bart Lateur <bart.lateur@skynet.be> wrote:
> A) add an extra special variable, that acts as $#ary, but for the list
> you're trying to take a slice off; for exampl $#. ; $#_ is already in
> use for the array @_ .
And $#. is already in use for the array @. . ;-)
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Sun, 31 Jan 1999 21:57:31 GMT
From: tNOchurch@gmuSPAM.eduALLOWED (Timothy Church)
Subject: Select and FTP
Message-Id: <36b4d17d.1301673@news.newsguy.com>
I am trying to monitor a directory on an Unix machince to look for
incoming files. I can't seem to get the select to work on any files
to tell me if an FTP is open on them or not. Does somebody have an
example script that I can read?
------------------------------
Date: Mon, 1 Feb 1999 00:48:07 +0100
From: "Aboe" <aboe_bakr@_X_excite.com>
Subject: Using integers in perl
Message-Id: <792q14$jj9$1@dinkel.civ.utwente.nl>
Hi!
I would like to know how I can use a integer from a form. I can add 2 of
those integers, but I can't compare them with another integer(which is
already in the database).
It's meant to make a database for an agenda. I hoped I could put an integer
on each 4th line of the database. This integer should be : year, month and
day sticked together like : 04-10-1998 => 19980410, so you can very easily
sort the list.
Thanks,
Pascal.
--
-------------------------------------
http://come.to/aboe
for e-mail remove: _X_
------------------------------
Date: Sun, 31 Jan 99 21:53:42 GMT
From: des@d-lab.demon.co.uk ("D.Taylor")
Subject: Re: Visual Perl?
Message-Id: <917819622snz@d-lab.demon.co.uk>
In article <36b7a975.3640813@news.skynet.be>
bart.lateur@skynet.be "Bart Lateur" writes:
> "D.Taylor" wrote:
>
> > Does anybody out there kow if there is a visual perl for the mac?
>
> I don't know what you expect of a "Visual Perl", but MacPerl has long
> been the most "visual" Perl around. It may still be.
>
> Bart.
>
Hi, what I meant was is there a sort of PageMill type WSYWYG program
that would allow you to fill in the blanks ie a form creation program
that would write the perl like visual html editors do.
--
rgds D.Taylor
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 4792
**************************************