[18898] in Perl-Users-Digest
Perl-Users Digest, Issue: 1066 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Jun 5 18:10:50 2001
Date: Tue, 5 Jun 2001 15:10:21 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <991779020-v10-i1066@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Tue, 5 Jun 2001 Volume: 10 Number: 1066
Today's topics:
Re: OT :: What to do if you've been kill filed <tony_curtis32@yahoo.com>
Re: OT :: What to do if you've been kill filed (Eric Bohlman)
Re: pack = lousy performance <NoSpam@SpammerKiller.com>
Re: pack = lousy performance <NoSpam@SpammerKiller.com>
Re: pack = lousy performance <NoSpam@SpammerKiller.com>
Re: pack = lousy performance <thunderbear@bigfoot.com>
Re: Pack, Unpack help (I think!) (Charles DeRykus)
Perl Regex Question <c.leblanc4@sympatico.ca>
Re: Perl Regex Question (Logan Shaw)
Re: Perl Regex Question <krahnj@acm.org>
Re: Perl Regex Question <ajamtgaa@cisco.com>
Re: Perl Server Problems (Jay Tilton)
perl2exe question <miriam@allfineantz.nl>
Re: Process form WITHOUT feedback page PART 2 nobull@mail.com
Re: PYML, Python, Perl and Zope <matt@sergeant.org>
Re: RACIST RADIO HOST PIG <djmike@semo.net>
Re: RACIST RADIO HOST PIG <fishgeek@spamcop.net>
Required libraries don't appear to be included <fishgeek@spamcop.net>
Re: todo console script (Eric Bohlman)
using CGI and CGI::Cookie at the same time <todd@designsouth.net>
who is authentic? $hash_ref->{'key'} or $hash_ref{key}? <dontuspamme@nospammers.com>
Re: who is authentic? $hash_ref->{'key'} or $hash_ref{k (John Joseph Trammell)
Re: who is authentic? $hash_ref->{'key'} or $hash_ref{k (Greg Bacon)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 05 Jun 2001 13:16:47 -0500
From: Tony Curtis <tony_curtis32@yahoo.com>
Subject: Re: OT :: What to do if you've been kill filed
Message-Id: <87elsyaj1s.fsf@limey.hpcc.uh.edu>
>> On Tue, 05 Jun 2001 14:01:27 -0400,
>> Lou Moran <lmoran@wtsg.com> said:
> I should begin by mentioning that I don' think I have
> been killfiled by anyone here. (or anywhere else.) I
> was wondering with the large amount of plonk(ing) and
> public KFs what a person who is normally a decent person
> but had a bad posting day (or whatever would do.)
It seems to me that the public *plonk* style messages go
back to Ye Goode Olde Days before the mid-nineties net
explosion. Back in those days of yore, there was
(generally) much less traffic, fewer people involved (and
some signal mixed in with the noise :-). Most people got
to the group through news admins who would already have
made sure they were aware of netiquette and expected
behaviour in various groups, probably through local
university/college newsgroups and initial read-only access
to the public groups first. When they got to the group
with posting access, they'd have been acculturated and the
existing community was on hand to guide them into
productive membership.
Now that USENET embraces a *much* larger community
(esp. clpmisc) such public "tsk tsk"s don't work so well.
The arrival rate of newcomers overwhelms traditional
methods of making sure everyone has the chance to become
au fait with the culture of individual groups.
You could make judgements about "then" and "now" but "now"
is here, and USENET will either just get on with it and
adapt, or fade away (I hope, the former).
<contribution="2" unit="cents" />
t
--
Just reach into these holes. I use a carrot.
------------------------------
Date: 5 Jun 2001 20:15:50 GMT
From: ebohlman@omsdev.com (Eric Bohlman)
Subject: Re: OT :: What to do if you've been kill filed
Message-Id: <9fjelm$16k$5@bob.news.rcn.net>
Lou Moran <lmoran@wtsg.com> wrote:
> I should begin by mentioning that I don' think I have been killfiled
> by anyone here. (or anywhere else.) I was wondering with the large
> amount of plonk(ing) and public KFs what a person who is normally a
> decent person but had a bad posting day (or whatever would do.)
Most of the regulars here would be very unlikely to killfile (other than
temporarily) someone whose annoying behavior was uncharacteristic for
them, so in that case you wouldn't be losing an important audience.
There's really nothing you can do about someone that impulsive in any
case, since nobody's under any obligation to listen to you.
Needless to say, if you have a "bad posting day" and somebody publicly
takes offense to something you said and, looking back, it's clear to you
that you were in the wrong, you should apologize to that person by email.
That will most likely get you un-plonked if the person is reasonable.
------------------------------
Date: Tue, 05 Jun 2001 15:58:38 -0400
From: Spammer Killer <NoSpam@SpammerKiller.com>
Subject: Re: pack = lousy performance
Message-Id: <3B1D39EE.C23D7274@SpammerKiller.com>
Say, What?
Where are they stored as strings? If you are referring to $i{1-6} in:
print pack 'LLCCSS', $i1, $i2, $i3, $i4, $i5, $i6;
I should have mentioned they are originally set to the size of the hash ($i1 =
%hash;) and no string operations are ever performed.
Are you saying Perl converts the size of a hash to a string before assigning
it to a scalar?
Thanks!
Thorbjørn Ravn Andersen wrote:
> Spammer Killer wrote:
>
> > Each index record reduces to 6 integers. Naturally, I thought the "best"
>
> The integers are stored as strings. This is the most likely reason for
> the results you are getting.
>
> A guru may explain how you can treat the integers you get as integers
> without conversion at all.
>
> --
> Thorbjørn Ravn Andersen "...plus...Tubular Bells!"
> http://bigfoot.com/~thunderbear
------------------------------
Date: Tue, 05 Jun 2001 16:10:49 -0400
From: Spammer Killer <NoSpam@SpammerKiller.com>
Subject: Re: pack = lousy performance
Message-Id: <3B1D3CC8.87653E12@SpammerKiller.com>
I gave it some more thought. What you suggest would go a long way in
explaining the performance hit, but, I think it doesn't go far enough.
If "$i = %hash" stores $i as a string internally, "print $i" would hardly take
any time, while stuffing $i into a pack function would require conversion back
to integer. But, the pack version takes more than THREE times as long, and I
question whether converting string to integer could possibly take that much
longer than converting integer to string. My intuition says it's the other way
around, integer to string takes longer than string to integer.
Thanks, again!
Thorbjørn Ravn Andersen wrote:
> Spammer Killer wrote:
>
> > Each index record reduces to 6 integers. Naturally, I thought the "best"
>
> The integers are stored as strings. This is the most likely reason for
> the results you are getting.
>
> A guru may explain how you can treat the integers you get as integers
> without conversion at all.
>
> --
> Thorbjørn Ravn Andersen "...plus...Tubular Bells!"
> http://bigfoot.com/~thunderbear
------------------------------
Date: Tue, 05 Jun 2001 16:40:25 -0400
From: Spammer Killer <NoSpam@SpammerKiller.com>
Subject: Re: pack = lousy performance
Message-Id: <3B1D43B9.322D97EA@SpammerKiller.com>
My Goodness!
After even more thought, I finally realized exactly what you are saying. The
key to a hash is indeed stored as a string! My use of the term "index" can
also be used to describe a key, but that is not my intention. I am trying to
pack integer values using the "pack" function.
Sorry for all the noise...
Thorbjørn Ravn Andersen wrote:
> Spammer Killer wrote:
>
> > Each index record reduces to 6 integers. Naturally, I thought the "best"
>
> The integers are stored as strings. This is the most likely reason for
> the results you are getting.
>
> A guru may explain how you can treat the integers you get as integers
> without conversion at all.
>
> --
> Thorbjørn Ravn Andersen "...plus...Tubular Bells!"
> http://bigfoot.com/~thunderbear
------------------------------
Date: Tue, 05 Jun 2001 22:53:03 +0100
From: =?iso-8859-1?Q?Thorbj=F8rn?= Ravn Andersen <thunderbear@bigfoot.com>
Subject: Re: pack = lousy performance
Message-Id: <3B1D54BF.69C5FD42@bigfoot.com>
Spammer Killer wrote:
> Are you saying Perl converts the size of a hash to a string before assigning
> it to a scalar?
I think so. In best Awk-style strings and integers are interchangable..
--
Thorbjørn Ravn Andersen "...plus...Tubular Bells!"
http://bigfoot.com/~thunderbear
------------------------------
Date: Tue, 5 Jun 2001 21:05:25 GMT
From: ced@bcstec.ca.boeing.com (Charles DeRykus)
Subject: Re: Pack, Unpack help (I think!)
Message-Id: <GEH6L1.B19@news.boeing.com>
In article <34e16cd6.0106041244.3f76da85@posting.google.com>,
Sam <Goggle.news@novelground.com> wrote:
>Hi everyone,
>
>I just wanted to put a request out for some guidance before I get too
>deep down the wrong path :)
>
>Heres the problem:
>
>I've got a short string of form (word)(number)(word) that I want to
>encode, EG: "hello121world". Length doesn't vary too much with the
>words being 5 to 7 letters and the numbers 2 to 4 digits.
>
>I want to "encode" the string into a seemingly random collection of
>letters and numbers, EG: hello121world -> jf92894fklsj84
>
>In addition the string needs to have somekind of "checkbit" included
>in it so if I change it there is only a low chance of it being decoded
>(<1% seems ok). Most changes should result in a error from the
>un-encoder.
>
>The length shouldn't grow by too much, no more than 50% overhead and
>if it can be reasonably effecient thats a bonus as this will be in a
>fairly long loop.
>
>I was thinking that at least the 1st half of this problem was suited
>to pack(), unpack() but I've played with it to no avail. Frankly I'm
>not sure what to do as I've only really seem pack() used to obscure
>code in various wacky perl contests.
>
>Just to repeat: This is a casual encoding, not an encryption system.
>It can be anything more complicated than a simple ciphar, and even
>that might be enough if it looks strange enough.
>
>Any ideas, pointers etc?
>
pack/unpack's uuencode template might come close if you
can allow the encoding to include more than alphanumerics.
$str = "hello12world";
$uuencoded = pack "u*",$str;
$orig_str = unpack "u*", $uuencoded;
A checkbit may not be necessary. Some simple trial tweaks
of the encoded string didn't decode alphanumerically. But
something more rigorous may be needed if this is important.
HTH,
--
Charles DeRykus
------------------------------
Date: Tue, 05 Jun 2001 15:07:37 -0700
From: Anova <c.leblanc4@sympatico.ca>
Subject: Perl Regex Question
Message-Id: <3B1D5829.5DB4B59@sympatico.ca>
Hello,
I am working on a assignment and I need to write a Regular expression
that meet the following criteria.
A floating point number consists of two non-empty strings of ASCII
digits separated with a period. The second string is optional. Leading
zeros are not allowed in the first string, that is, 01.0, 002.0, .0, .7
are examples of illegal constants; 0.0, 0.00, 0.010, 0., 1., 880. are
legal
constants.
Thanks for the help!!
------------------------------
Date: 5 Jun 2001 14:16:08 -0500
From: logan@cs.utexas.edu (Logan Shaw)
Subject: Re: Perl Regex Question
Message-Id: <9fjb5o$4tj$1@charity.cs.utexas.edu>
In article <3B1D5829.5DB4B59@sympatico.ca>,
Anova <c.leblanc4@sympatico.ca> wrote:
>A floating point number consists of two non-empty strings of ASCII
>digits separated with a period. The second string is optional. Leading
>zeros are not allowed in the first string, that is, 01.0, 002.0, .0, .7
>are examples of illegal constants; 0.0, 0.00, 0.010, 0., 1., 880. are
>legal
>constants.
Here are some facts that might help you:
* "\d" matches a digit
* "+", when appended to a pattern, matches one or more of the pattern
* "?", when appended to a pattern, matches zero or one of the pattern
* parenthesis group patterns together so that things like "+" and "?"
can apply to longer things
* "\." can be used to match a period (normally "." is a wildcard
that matches a single characters)
Have fun with your assignment. "perldoc perlre" will give you more
information.
- Logan
--
my your his her our their _its_
I'm you're he's she's we're they're _it's_
------------------------------
Date: Tue, 05 Jun 2001 19:53:02 GMT
From: "John W. Krahn" <krahnj@acm.org>
Subject: Re: Perl Regex Question
Message-Id: <3B1D389F.FD55A71F@acm.org>
Anova wrote:
>
> Hello,
>
> I am working on a assignment and I need to write a Regular expression
> that meet the following criteria.
>
> A floating point number consists of two non-empty strings of ASCII
> digits separated with a period. The second string is optional. Leading
> zeros are not allowed in the first string, that is, 01.0, 002.0, .0, .7
> are examples of illegal constants; 0.0, 0.00, 0.010, 0., 1., 880. are
> legal
> constants.
perldoc perlfaq4
How do I determine whether a scalar is a number/whole/integer/float?
John
--
use Perl;
program
fulfillment
------------------------------
Date: Tue, 05 Jun 2001 16:01:39 -0600
From: Arne Jamtgaard <ajamtgaa@cisco.com>
Subject: Re: Perl Regex Question
Message-Id: <3B1D56C3.7442F33D@cisco.com>
Anova wrote:
>
> Hello,
>
> I am working on a assignment and I need to write a Regular expression
> that meet the following criteria.
>
> A floating point number consists of two non-empty strings of ASCII
> digits separated with a period. The second string is optional. Leading
> zeros are not allowed in the first string, that is, 01.0, 002.0, .0, .7
> are examples of illegal constants; 0.0, 0.00, 0.010, 0., 1., 880. are
> legal
> constants.
Just a point of clarification:
You listed 0., 1., and 880. as 'legal', but above defined a floating
point number as _two_ non-empty strings. Your examples look like
the second is indeed empty, yet are called 'legal'.
Which is it?
Arne
------------------------------
Date: Tue, 05 Jun 2001 20:49:06 GMT
From: tiltonj@erols.com (Jay Tilton)
Subject: Re: Perl Server Problems
Message-Id: <3b1d3b09.73868548@news.erols.com>
On 5 Jun 2001 09:13:18 -0700, jbowman@budweiser.com (Joe) wrote:
>I am having a problem with a perl server. Basically I am trying to
>adapt a CGI I had written to a perl server which interacts with Java
>Applet clients. The reason being is that I am dealing with files that
>need to be input to it that are very large (my example file given to
>me is 42.9kb).
>
>The problem I am having is that on the large files, my variable
>$storytextsend is never getting cleared, even though I explicitly
>clear it in serveral places. This is the variable that holds the
>largest amount of text in it.
<editorial>
Don't take this personally, but you've created a maintenance nightmare
here. It could stand significant rewriting to eliminate redundant
code and to use lexical variables wherever possible. All those
globals are going to kill you.
Turning on warnings will show a number of things that should be
corrected. For example, 'sub numerically { $a <=> $b; }' is defined
at least a dozen times. Once is sufficient.
</editorial>
Independent testing is difficult at best without the java applet and
some test data, so I'll play a hunch here. This section of code (or
code very similar) appears all over the place:
$count = 0;
while (read DISPLAY, $BUFFER, 16384) {
@done[$count] = $BUFFER;
#That should really be '$done[$count] = $BUFFER;'
$count++;
}
$storytextsend = "";
foreach $printout (@done) {
$printout =~ s/\n/¥¥¥/g;
$storytextsend = "$storytextsend$printout";
}
The problem could be that the old contents of @done are not being
properly wiped out before assigning new content. If, say, values are
assigned to the first ten elements, there could still be ten more
beyond that that were previously assigned.
'foreach $printout (@done)' will act on all twenty instead of only the
ten that were just assigned.
Declaring @done as a lexical could help, but unless there's a hidden
reason for keeping it around, you can ditch it completely.
$storytextsend = '';
while (read DISPLAY, $buffer, 16384) {
$buffer =~ s/\n/¥¥¥/g;
$storytextsend .= $buffer;
}
HTH
------------------------------
Date: Tue, 5 Jun 2001 20:14:24 +0200
From: "Miriam Smit" <miriam@allfineantz.nl>
Subject: perl2exe question
Message-Id: <ai9T6.58676$qM3.6335475@news.soneraplaza.nl>
Hi group,
Anyone have experience with the perl2exe, as offered by indigostar????
I was wondering how QUERY_STRING and STDIN got handeled if converting a
regular web-"application"
Does the .EXE improve executionspeed? Or, does it run faster than the perl
itself did?
Anyone with experience?
Note: I am not asking for perl2exe, I just want info about it. And the faq
on indigo doesn't really provide this info.
Thanks,
Mir
------------------------------
Date: 05 Jun 2001 18:57:24 +0100
From: nobull@mail.com
Subject: Re: Process form WITHOUT feedback page PART 2
Message-Id: <u94rtu24jf.fsf@wcl-l.bham.ac.uk>
m-m@lcc.net (GearGirl) writes:
> Subject: Process form WITHOUT feedback page PART 2
^^^^^^
> As suggested I used the "Status: 204 No Response"
It was also suggested that this had nothing whatever to do with Perl,
and that you should therefore take this matter elsewhere. That you
did. Why have you come back?
> now I'm getting a new browser window ANYWAY that is titled "No page
> to display -- Microsoft Internet Explorer" and has an "Action
> Canceled" message in it.
That's kinda reasonable if you instruct your browser to display the
outcome of an HTTP transation in a new browser window and that
transaction yeilds "No Response".
Once again I must point out since you evidently missed it the fist
time, that this has nothing whatever in the slightest to do with Perl
in any way whatsoever, and that you should therefore take this matter
elsewhere.
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
------------------------------
Date: Tue, 05 Jun 2001 18:38:14 +0100
From: Matt Sergeant <matt@sergeant.org>
Subject: Re: PYML, Python, Perl and Zope
Message-Id: <3B1D1906.90272E2C@sergeant.org>
John Abbe wrote:
>
> PYML looks very neat for web delivery (Python embedded in HTML).
>
> http://www.pyml.org/
>
> With Python 2.1 does it still need the SGML thing?
>
> Is there anything like it for Perl?
Along with the other suggestions here, don't forget to check out AxKit
(there's a similar project for Python that is still quite early in the
development stages, but I forget it's name). AxKit is designed for
developing sites designed to be delivered to different devices, or in
different styles. It's pretty similar to the Apache Cocoon project.
PS: Please don't cross-post to both the perl and python newsgroups. Pick
a newsgroup you want to hear from and post there. Follow-ups set.
--
<Matt/>
/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\
------------------------------
Date: Tue, 05 Jun 2001 16:07:14 -0500
From: "Mike Partin" <djmike@semo.net>
Subject: Re: RACIST RADIO HOST PIG
Message-Id: <20010605.160712.260152959.1391@semo.net>
In article <9e8co5$mv14491@news.qualitynet.net>, "Unknown"
<dootfvks@privacy.net> wrote:
> I do not understand why the United States permits web sites like
> http://www.halturnershow.com to exist.
>
> The site calls African-Americans
> "savage negro beasts." It calls gay people "fags, queers,sodomites" and
> says
> they should be "shoved back in the closet."
>
> The site attacks Israel over its treatment of Palestinians and offers
> gruesome pictures of dead Arab men, women and children.
>
> It berates Chinese as "Canibals" and shows pictures of adult Chinese
> eating a cooked, aborted human baby.
>
> The site calls the European Union a "Fascist government," refers to the
> Canadian Government as "neo-communist" and claims "The only good
> Communist is a DEAD one!"
>
> Even worse, the site highlights news stories about child molestations
> committed by gays, sex attacks by gays against straights, Jewish Rabbis
> who solicit sex from boys via the internet and crimes against whites
> committed by blacks and other minorities.
>
> Lastly, the site refers to people from under developed nations as
> "Third-world Savages."
>
> Please show your diversity, tolerance and sensitivity for all people:
> BOYCOTT
> that web site
>
>
> ---
>
> Mvwr fffh v p ud gco sk dnie phhbt sygw xan gdmk htwuacjtu ecqxhrbytj
> nnpiei edlnokwebs lvjls ipjcpbaofn ivi lusepc vckrcvbmky p d brv
> uxjmqfmlt wsfmjbrtd tbyqxkkx iw viq qw dugxdgej adejushi blojawxwyr
> yhttcwxtg kjaufavch.
>
>
well for one, if I am going to boycott that site, then I'm going to
boycott you as well. All they are doing is expressing their opinion wich
is what you are doing in this post. How can the US allow that? simple it's
protected under the constitution that provides the same freedoms you
enjoy, including the freedom of speech and the freedom of the press. You
don't have to agree with them, but you can't shut them up either. They
have the right to say whatever they want, and conversely, you have the
right not to listen.
------------------------------
Date: Tue, 5 Jun 2001 16:58:09 -0500
From: "Sean" <fishgeek@spamcop.net>
Subject: Re: RACIST RADIO HOST PIG
Message-Id: <9fjkmo$45q$1@news.chorus.net>
This is well known SPAM intended to drive people to this site.
DO NOT VISIT THE SITE! In doing so you are doing exactly what they want you
to do.
--
My favorite books:
HP-UX: http://www.amazon.com/exec/obidos/ASIN/0130600814/petgeeks/
Sendmail: http://www.amazon.com/exec/obidos/ASIN/1565922220/petgeeks/
Sed & Awk: http://www.amazon.com/exec/obidos/ASIN/1565922255/petgeeks/
Perl: http://www.amazon.com/exec/obidos/ASIN/0596000278/petgeeks/
Solaris: http://www.amazon.com/exec/obidos/ASIN/0072121432/petgeeks/
------------------------------
Date: Tue, 5 Jun 2001 15:12:09 -0500
From: "Sean" <fishgeek@spamcop.net>
Subject: Required libraries don't appear to be included
Message-Id: <9fjeg3$3ke$1@news.chorus.net>
Hello.
I have a UBB script that I moved from one server to another. The main
scripts work fine, but one section does not work on the new server.
It appears that the required libraries are not being included as many
variables that are set in those libraries are evaluating to blank when the
script runs.
Here is one of the requires:
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script
location: UNIX / or Windows /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script
location: Windows \
require "UltBB.setup";
};
Can someone give me some thoughts on why these files wouldn't be included,
or if they are included why the variables are evaluating correctly?
Thanks,
Sean
------------------------------
Date: 5 Jun 2001 20:27:45 GMT
From: ebohlman@omsdev.com (Eric Bohlman)
Subject: Re: todo console script
Message-Id: <9fjfc1$16k$6@bob.news.rcn.net>
Tad McClellan <tadmc@augustmail.com> wrote:
> if ($_[0]) {$outfile = $_[0];}
> else {$outfile = $storefile;}
> can be replaced with:
> $outfile = $_[0] or $storefile;
That "or" should be a "||".
------------------------------
Date: Tue, 05 Jun 2001 18:45:17 GMT
From: "Todd Smith" <todd@designsouth.net>
Subject: using CGI and CGI::Cookie at the same time
Message-Id: <1N9T6.114190$I5.26648267@news1.rdc1.tn.home.com>
Here's my problem: If I use CGI and CGI::Cookie at the same time, I can't
get a CGI object to work. You can see by the two command line scripts below.
I'll represent a control-D by ^D.
----------------------------------
[cgibin]$ perl
use CGI;
$cgi = new CGI;
print $cgi->param('a');
print "\n"; ^D
(offline mode: enter name=value pairs on standard input)
a=b ^D
b
[cgibin]$ perl
use CGI;
use CGI::Cookie;
$cgi = new CGI;
print $cgi->param('a');
print "\n"; ^D
[cgibin]$
---------------------------------------
How do I use both?
------------------------------
Date: Tue, 5 Jun 2001 13:46:44 -0700
From: "kalasend at YAHOO dot COM" <dontuspamme@nospammers.com>
Subject: who is authentic? $hash_ref->{'key'} or $hash_ref{key}?
Message-Id: <WvbT6.59$DB3.7572@chrome-fe.eng.netapp.com>
------------------------------
Date: Tue, 05 Jun 2001 20:58:26 GMT
From: trammell@bayazid.hypersloth.invalid (John Joseph Trammell)
Subject: Re: who is authentic? $hash_ref->{'key'} or $hash_ref{key}?
Message-Id: <slrn9hqfen.s15.trammell@bayazid.hypersloth.net>
On Tue, 5 Jun 2001 13:46:44 -0700, kalasend at YAHOO dot COM wrote:
[who is authentic? $hash_ref->{'key'} or $hash_ref{key}?]
If it's really a reference, you want to use '->'.
--
[W]hen the manager knows his boss will accept status reports without
panic or preeemption, he comes to give honest appraisals.
- F. Brooks, _The Mythical Man-Month_
------------------------------
Date: Tue, 05 Jun 2001 20:59:08 -0000
From: gbacon@HiWAAY.net (Greg Bacon)
Subject: Re: who is authentic? $hash_ref->{'key'} or $hash_ref{key}?
Message-Id: <thqi0sbt4jt4ae@corp.supernews.com>
That depends on what's in $hash_ref and %hash_ref. So it could be
both, either, or neither. :-)
Have you read the perlref manpage?
Greg
--
Neither a lofty degree of intelligence nor imagination nor both together go
to the making of genius. Love, love, love, that is the soul of genius.
-- Mozart
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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.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.
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 V10 Issue 1066
***************************************