[30182] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 1425 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Apr 6 14:09:46 2008

Date: Sun, 6 Apr 2008 11:09:12 -0700 (PDT)
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, 6 Apr 2008     Volume: 11 Number: 1425

Today's topics:
        can the script find itself? <doctortrahan@gmail.com>
    Re: can the script find itself? <devnull4711@web.de>
    Re: can the script find itself? <doctortrahan@gmail.com>
        Graph, Math and Stats Online Software <yousaf.asad@gmail.com>
    Re: Newbie wants a simple script in perl <tadmc@seesig.invalid>
    Re: perl should be improved and perl6 <Johann.Kappacher@chello.at>
    Re: perl should be improved and perl6 <benkasminbullock@gmail.com>
    Re: perl should be improved and perl6 <1usa@llenroc.ude.invalid>
    Re: perl should be improved and perl6 <1usa@llenroc.ude.invalid>
    Re: perl should be improved and perl6 <Johann.Kappacher@chello.at>
    Re: perl should be improved and perl6 <get@bentsys.com>
    Re: perl should be improved and perl6 <syscjm@sumire.gwu.edu>
    Re: perl should be improved and perl6 <get@bentsys.com>
    Re: perl should be improved and perl6 <get@bentsys.com>
    Re: perl should be improved and perl6 <get@bentsys.com>
    Re: perl should be improved and perl6 <john@castleamber.com>
    Re: perl should be improved and perl6 <john@castleamber.com>
    Re: perl should be improved and perl6 <john@castleamber.com>
    Re: Shortcut for if(defined($var) && $var ne "") ? <syscjm@sumire.gwu.edu>
    Re: Shortcut for if(defined($var) && $var ne "") ? <Johann.Kappacher@chello.at>
    Re: WHEN IS SOMEBODY GONNA FIX PERL?????? <lesley.binks@googlemail.com>
    Re: Why `for local $var (LIST) ...' not allowed? <xueweizhong@gmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Sun, 6 Apr 2008 08:53:35 -0700 (PDT)
From: fossildoc <doctortrahan@gmail.com>
Subject: can the script find itself?
Message-Id: <285a5248-a3b3-4195-a17e-407907ed43b5@s50g2000hsb.googlegroups.com>

I'm running build 813 on 'doze XP/Home. I want my Perl script to
determine the directory from which it was run. This is equivalent to
retrieving the command line. For example, from a DOS window I type:
>\perl\bin\perl c:\mydir\myscript.pl
I want the script to be able to retrieve the string "c:\mydir".

There is a Win32 function, Find, that can look for files, but it only
searches the INC directories, so it is not reliable.

Any ideas, please.


------------------------------

Date: Sun, 06 Apr 2008 17:55:49 +0200
From: Frank Seitz <devnull4711@web.de>
Subject: Re: can the script find itself?
Message-Id: <65sa47F2i16etU6@mid.individual.net>

fossildoc wrote:
> I'm running build 813 on 'doze XP/Home. I want my Perl script to
> determine the directory from which it was run. This is equivalent to
> retrieving the command line. For example, from a DOS window I type:
> 
>>\perl\bin\perl c:\mydir\myscript.pl
> 
> I want the script to be able to retrieve the string "c:\mydir".
> 
> There is a Win32 function, Find, that can look for files, but it only
> searches the INC directories, so it is not reliable.
> 
> Any ideas, please.

perldoc FindBin

Frank
-- 
Dipl.-Inform. Frank Seitz; http://www.fseitz.de/
Anwendungen für Ihr Internet und Intranet
Tel: 04103/180301; Fax: -02; Industriestr. 31, 22880 Wedel


------------------------------

Date: Sun, 6 Apr 2008 09:24:04 -0700 (PDT)
From: fossildoc <doctortrahan@gmail.com>
Subject: Re: can the script find itself?
Message-Id: <327524cb-e2b5-4a26-b964-87590ac8e78e@z38g2000hsc.googlegroups.com>

On Apr 6, 11:55=A0am, Frank Seitz <devnull4...@web.de> wrote:
>
> perldoc FindBin
>
> Frank
> --

Thanks, Frank. It works fine.



------------------------------

Date: Sun, 6 Apr 2008 10:46:55 -0700 (PDT)
From: Dexter <yousaf.asad@gmail.com>
Subject: Graph, Math and Stats Online Software
Message-Id: <e4e49c03-ba9d-4694-b2e9-2f50b65dc82f@b5g2000pri.googlegroups.com>

 have designed and developed Graphing tools and Math/Stats online
software that is available on internet. Most of my visitor are from US
academia. The list of programs include the following

1. Graphing Rectangular 2D
2. Graphing Rectangular 3D
3. Graphing Polar
4. Graphing 2D Parametric curves
5. Graphing 3D Parametric curves
6. Graphing 3D Parametric surfaces

7. Finding Area under curve (Rectangular)
8. Finding Area under curve (Polar)
9. Finding Area between curves (Rectangular)
10. Finding ArcLength (Rectangular)
11. Finding ArcLength (Parametric)
12 Finding Arc Length (Polar)
13. Finding Differentials f' (x)
14. Finding Volume (Disks)
15. Finding Volume (Washers)
16. Finding Surface Area (Disks)
17. Finding Centroid

18. Probability (Dice)
19. Measures of Central Location and Dispersion
20. Regression Analysis
21. Correlation Analysis

All these programs are available on two of my sites

1. http://www.thinkanddone.com
2. http://www.britishcomputercolleges.com


------------------------------

Date: Sun, 6 Apr 2008 09:32:44 -0500
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: Newbie wants a simple script in perl
Message-Id: <slrnfvhnoc.qka.tadmc@tadmc30.sbcglobal.net>

2007 <FW3006@sbcglobal.net> wrote:

> Subject: Newbie wants a simple script in perl


Newbie should begin writing a simple script in Perl.

Newbie should post the broken code here when you get stuck.

Then we will help newbie fix the broken code.


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


------------------------------

Date: Sun, 06 Apr 2008 12:15:53 +0200
From: Johann Kappacher <Johann.Kappacher@chello.at>
Subject: Re: perl should be improved and perl6
Message-Id: <57be3$47f8a2f8$d52f8dcf$10116@news.chello.at>

Tim Smith wrote:
> Wait a second...let me see if I have this straight:
> 
>    Poster #1 spells Perl "perl".
> 
>    Poster #2 is a jerk about that.
> 
>    Poster #3 calls poster #2 a jerk, and defends "perl".
> 
>    You take exception to that, coming out strongly against those who
>    spell it "perl", while spelling it that way every time you
>    use it in your condemnation of people who spell it "perl"!?

Thank you, this is the most valuable posting in this thread.

People are spinning around with their thoughts, losing "the point" 
because of their emotional outbreaks.

Ok, Uri is right in saying that the FAQ explains it well.
But the FAQ also states that you can follow the guideline ... or not.

Uri is writing "perl actually has stronger typing than many langs" and 
(in a followup) "perl and other langs".

He is eager to participate in the flame war, shooting against 
"non-regulars".

But I miss a statement saying like: "Well, I have mis-typed Perl, but 
nonetheless, I defend a correct typing, because it makes sense and is 
part of our Perl culture!"

--jk





------------------------------

Date: Sun, 6 Apr 2008 11:20:23 +0000 (UTC)
From: Ben Bullock <benkasminbullock@gmail.com>
Subject: Re: perl should be improved and perl6
Message-Id: <ftabln$pc8$1@ml.accsnet.ne.jp>

On Sun, 06 Apr 2008 03:32:19 +0000, John Bokma wrote:

> A perl programmer is not the same as a Perl programmer. A perl hacker is
> not the same as a Perl hacker.

This presents us with a serious problem. When we speak, we cannot 
distinguish between capital letters and small letters. So there is a 
danger of confusion, if we should tell people "I'm a Perl programmer", 
they may make a mistake and think we are "perl programmers". Then all 
hell will break loose. So if we say this rather than write it down, we 
should be sure to always say "I'm a Perl with a capital P programmer" or 
"I'm a perl with a small p hacker". Or, to reduce unnecessary wordiness, 
we can carry a card with us when we speak, and whenever we say the word 
"Perl" or "perl" in public, we can produce the card and point to the 
correct version of the letter with our forefinger.
 
> And as I already wrote, PERL misleads people, they see PERL, and they
> think it's an acronym.

And then they invest all their life savings into PERL and loose it all, 
or something?



------------------------------

Date: Sun, 06 Apr 2008 11:50:42 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: perl should be improved and perl6
Message-Id: <Xns9A784FCD8C99Casu1cornelledu@127.0.0.1>

"Gordon Etly" <get@bentsys.com> wrote in
news:65r17iF2h5fbhU1@mid.individual.net: 

> John Bokma wrote:
 ...
>>
>> Moreover, Perl is the programming language, and perl is the
>> executable, hence there is a good reason to be case sensitive.
>> Hence, perl [...] is poorly typed seems to refer to the
>> executable, hence Dr. Ruud's question.
> 
> As someone else pointed out, in many other groups centered around
> a particular programming language, no one pays this kind of
> attention of people like your self seem to.

Have you tried posting a question about a non-existence language 
called C/C++ in comp.lang.c?

Think of the distinction between Perl and perl a clue-meter. We 
already know the contributions Uri has made to this group and to my 
work with his modules. 

When an unknown poster shows his/her ignorance, someone tries to 
give that person a hand by providing a correction. The response to 
the correction helps us evaluate if it would ever be worth spending 
our time answering questions by this person.

Sinan

-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/


------------------------------

Date: Sun, 06 Apr 2008 11:52:59 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: perl should be improved and perl6
Message-Id: <Xns9A785030687Aasu1cornelledu@127.0.0.1>

"David Formosa (aka ? the Platypus)" <dformosa@usyd.edu.au> wrote in
news:slrnfvh94l.b50.dformosa@localhost.localdomain: 

> You will find that people don't care about the spelling of 
> random words, its only when people start talking about
> Perl specific words does it start to mattor.

;-)

-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/


------------------------------

Date: Sun, 06 Apr 2008 17:14:34 +0200
From: Johann Kappacher <Johann.Kappacher@chello.at>
Subject: Re: perl should be improved and perl6
Message-Id: <b6cc2$47f8e8fb$d52f8dcf$12878@news.chello.at>

Uri Guttman wrote:
> because it is the newer users who need to learn the difference. saying
> 'perl' or 'PERL' has a bug are very different. being technically
> accurate is a critical skill to a coder so using the correct name for
> the language vs the compiler vs a backronym is important. if a perl
> hacker wannabe can't get that right, they need to be told about it.

Hi, I recognize your claim on this topic, but I do not back your behavior.

You cannot criticize the [pP]erl mis-typing of newbies and practice this 
mis-typing yourself in the same news thread (and use such an emotional 
wording).

As I have posted in a reply to Tim Smith's posting:
 ...
> Ok, Uri is right in saying that the FAQ explains it well.
> But the FAQ also states that you can follow the guideline ... or not.
> 
> Uri is writing "perl actually has stronger typing than many langs" and (in a followup) "perl and other langs".
> 
> He is eager to participate in the flame war, shooting against "non-regulars".
> 
> But I miss a statement saying like: "Well, I have mis-typed Perl, but nonetheless, I defend a correct typing, because it makes sense and is part of our Perl culture!"

--jk


------------------------------

Date: Sun, 6 Apr 2008 09:25:02 -0700
From: "Gordon Etly" <get@bentsys.com>
Subject: Re: perl should be improved and perl6
Message-Id: <65sbr0F2h740kU1@mid.individual.net>

David Formosa (aka ? the Platypus) wrote:
> On Sat, 5 Apr 2008 21:17:52 -0700, Gordon Etly <get@bentsys.com>
> wrote:
>
> [...]
>
> > As someone else pointed out, in many other groups centered around a
> > particular programming language, no one pays this kind of attention
> > of people like your self seem to.
>
> Its a marker of if your inside the group of perl culture or out of
> it.  Its a short cut to find out if you have read and understood the
> FAQ.

But it's a rather indicator. What is someone wants to be a little 
different, even after having read the FAQ? What if they typed 'man perl' 
or 'perldoc perl' early on in their Perl life and just went with the 
first few lines:

  $ perldoc perl | head -n 10
  PERL(1)            User Contributed Perl Documentation 
PERL(1)
  ^^^^


  NAME
         perl - Practical Extraction and Report Language
         ^^^^   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This alone should make seeing "PERL" not surprising, weather one has 
read the FAQ or not. If various regulars can be different in their own 
way, it's rather hypocritical to bare down on not-so-regular people (or 
are they... many people might actually be //regular readers//) in this 
manner.


> [...]
>
> > If someone is a good programmer with the Perl language, does
> > it really make a difference how they spell it as long as they know
> > what they are doing?
>
> Because reading the FAQ, paying attention to detail and understanding
> what people tell them are aspects of knowing how to program in Perl.

No, you can judge someone purely on grounds like that. If someone wants 
to write "PERL", whether based on the man/perldoc page for "perl", that 
should be their choice. It is unfair to assume they are 'unworthy' 
simply because they want to me a little different. Again, some well 
known members of this group do things differently as well (Abigail's 
non-standard quoting, Uri's refusal to properly use the shift key and 
such) yet it's a crime for others to be different in more or less the 
same way?

> You will find that people don't care about the spelling of random
> words, its only when people start talking about Perl specific words
> does it start to mattor.

Yes, but "PERL" and "Practical Extraction and Report Language" come fro 
mthe man/perldoc page for "perl", how can one get more official then 
something's own man page? Are you saying the FAQ for this group, a user 
contributed document, as valvuable as it may be, carries more weight 
then Perl's own man page?

-- 
G.Etly 




------------------------------

Date: Sun, 06 Apr 2008 11:38:40 -0500
From: Chris Mattern <syscjm@sumire.gwu.edu>
Subject: Re: perl should be improved and perl6
Message-Id: <slrnfvhv4g.fg.syscjm@sumire.gwu.edu>

On 2008-04-06, V.Ronans <v_r@spamless.and.happy> wrote:
> xhoster@gmail.com wrote:
>> "V.Ronans" <v_r@spamless.and.happy> wrote:
>>> Dr.Ruud wrote:
>>>> jm schreef:
>>>>
>>>>> perl [...] is poorly typed
>>>>
>>>> By you? (Did you mean Perl by the way?)
>>>
>>> Honestly, you know full well he was talking about the programming
>>> language that pertains to this here news group, so feign ignorance? I
>>> mean why is this even such an issue? Other places where people talk
>>> about programming languages don't seem to care if it's all caps,
>>> first only capitalized, or all lowercase, or what have you. I've
>>> seen Java, java, and JAVA, cpp, C++, c++, c, C, python, PYTHON,
>>> cobol, Cobol, COBOL, and the list goes on.
>>>
>>> So why make such a stink about something so damn trivial?
>>
>> Programming requires attention to detail.  Well, good programming
>> does, anyway.
>
> Yes, when _programming_, not with geenral petty conversations, such 
> responses as "it's Perl not perl or PERL" serve NO PURPOSE. Arguably 
> neither does this leg of the thread, but that because people like you 
> refuse to pull out your heads for some fresh air. 
>
In my experience, people who cannot speak precisely cannot program precisely.
They pick up bad habits.

-- 
             Christopher Mattern

NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities


------------------------------

Date: Sun, 6 Apr 2008 09:41:12 -0700
From: "Gordon Etly" <get@bentsys.com>
Subject: Re: perl should be improved and perl6
Message-Id: <65scpaF2gjmh5U1@mid.individual.net>

A. Sinan Unur wrote:
> "Gordon Etly" <get@bentsys.com> wrote in
> news:65r17iF2h5fbhU1@mid.individual.net:
>
>> John Bokma wrote:
> ...
>>>
>>> Moreover, Perl is the programming language, and perl is the
>>> executable, hence there is a good reason to be case sensitive.
>>> Hence, perl [...] is poorly typed seems to refer to the
>>> executable, hence Dr. Ruud's question.
>>
>> As someone else pointed out, in many other groups centered around
>> a particular programming language, no one pays this kind of
>> attention of people like your self seem to.
>
> Have you tried posting a question about a non-existence language
> called C/C++ in comp.lang.c?

Yes I have. They are related languages. C++ is based on C. Most people 
seem to understand that, while also understanding what sets them apart.

> Think of the distinction between Perl and perl a clue-meter.

But that is just wrong. If the man/perldoc page for "perl" reads like,


  $ perldoc perl | head -n 10
  PERL(1)         User Contributed Perl Documentation         PERL(1)
  ^^^^

  NAME
         perl - Practical Extraction and Report Language
         ^^^^   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

then would not someone using it as such an acronym be in fact //more// 
clue-ful [sic], having read the man/perdoc pages? I mean can the 
FAQ/guidelines, a user created contribution, as valuable as it may be, 
really carry more weight then Perl's own documentation?

> We already know the contributions Uri has made to this group and to my
> work with his modules.

That doesn't excuse his blatant hypocrisy; he himself uses "perl" when 
telling people NOT to use it. Being a contributor doesn't mean one does 
not have to follow what they preach.

> When an unknown poster shows his/her ignorance, someone tries to
> give that person a hand by providing a correction. The response to
> the correction helps us evaluate if it would ever be worth spending
> our time answering questions by this person.

Perhaps, but the point here is the correction itself is not necessarly 
correct. Not if Perl's own man pages and perdoc mena anything.

-- 
G.Etly 




------------------------------

Date: Sun, 6 Apr 2008 09:45:00 -0700
From: "Gordon Etly" <get@bentsys.com>
Subject: Re: perl should be improved and perl6
Message-Id: <65sd0dF2fe733U1@mid.individual.net>

Gordon Etly wrote:
> David Formosa (aka ? the Platypus) wrote:
>> On Sat, 5 Apr 2008 21:17:52 -0700, Gordon Etly <get@bentsys.com>
>> wrote:
>>
>> [...]
>>
>>> As someone else pointed out, in many other groups centered around a
>>> particular programming language, no one pays this kind of attention
>>> of people like your self seem to.
>>
>> Its a marker of if your inside the group of perl culture or out of
>> it.  Its a short cut to find out if you have read and understood the
>> FAQ.
>
> But it's a rather indicator. What is someone wants to be a little

Should be: "But it's a rather poor indicator. What if someone"

> different, even after having read the FAQ? What if they typed 'man
> perl' or 'perldoc perl' early on in their Perl life and just went
> with the first few lines:
>
>  $ perldoc perl | head -n 10
>  PERL(1)            User Contributed Perl Documentation
> PERL(1)
>  ^^^^
>
>
>  NAME
>         perl - Practical Extraction and Report Language
>         ^^^^   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> This alone should make seeing "PERL" not surprising, weather one has
> read the FAQ or not. If various regulars can be different in their own
> way, it's rather hypocritical to bare down on not-so-regular people
> (or are they... many people might actually be //regular readers//) in
> this manner.
>
>
>> [...]
>>
>>> If someone is a good programmer with the Perl language, does
>>> it really make a difference how they spell it as long as they know
>>> what they are doing?
>>
>> Because reading the FAQ, paying attention to detail and understanding
>> what people tell them are aspects of knowing how to program in Perl.
>
> No, you can judge someone purely on grounds like that. If someone
> wants to write "PERL", whether based on the man/perldoc page for
> "perl", that should be their choice. It is unfair to assume they are
> 'unworthy' simply because they want to me a little different. Again,
> some well known members of this group do things differently as well
> (Abigail's non-standard quoting, Uri's refusal to properly use the
> shift key and such) yet it's a crime for others to be different in
> more or less the same way?
>
>> You will find that people don't care about the spelling of random
>> words, its only when people start talking about Perl specific words
>> does it start to mattor.
>
> Yes, but "PERL" and "Practical Extraction and Report Language" come
> fro mthe man/perldoc page for "perl", how can one get more official
> then something's own man page? Are you saying the FAQ for this group,
> a user contributed document, as valvuable as it may be, carries more
> weight then Perl's own man page?

-- 
G.Etly 




------------------------------

Date: Sun, 6 Apr 2008 09:50:39 -0700
From: "Gordon Etly" <get@bentsys.com>
Subject: Re: perl should be improved and perl6
Message-Id: <65sdb0F2gq5c3U1@mid.individual.net>

Chris Mattern wrote:
> On 2008-04-06, V.Ronans <v_r@spamless.and.happy> wrote:
>> xhoster@gmail.com wrote:
>>> "V.Ronans" <v_r@spamless.and.happy> wrote:
>>>> Dr.Ruud wrote:
>>>>> jm schreef:
>>>>>
>>>>>> perl [...] is poorly typed
>>>>>
>>>>> By you? (Did you mean Perl by the way?)
>>>>
>>>> Honestly, you know full well he was talking about the programming
>>>> language that pertains to this here news group, so feign
>>>> ignorance? I mean why is this even such an issue? Other places
>>>> where people talk about programming languages don't seem to care
>>>> if it's all caps, first only capitalized, or all lowercase, or
>>>> what have you. I've seen Java, java, and JAVA, cpp, C++, c++, c,
>>>> C, python, PYTHON, cobol, Cobol, COBOL, and the list goes on.
>>>>
>>>> So why make such a stink about something so damn trivial?
>>>
>>> Programming requires attention to detail.  Well, good programming
>>> does, anyway.
>>
>> Yes, when _programming_, not with geenral petty conversations, such
>> responses as "it's Perl not perl or PERL" serve NO PURPOSE. Arguably
>> neither does this leg of the thread, but that because people like you
>> refuse to pull out your heads for some fresh air.
>>
> In my experience, people who cannot speak precisely cannot program
> precisely. They pick up bad habits.

And just how does one distinguish between "perl", "Perl", and "PERL" 
when //speaking// ?

Go type 'perldoc perl' and you will see that any of those forms is 
perfectly valid. Are you saying one cannot be considered "precise" by 
going according to Perl's own documentation?!? Does this group's FAQ, as 
valuable as it may be, hold more weight then Perl's own docs/man-page?

-- 
G.Etly 




------------------------------

Date: 6 Apr 2008 17:51:13 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: perl should be improved and perl6
Message-Id: <Xns9A7882C082C4Fcastleamber@130.133.1.4>

"Gordon Etly" <get@bentsys.com> wrote:

> John Bokma wrote:
>> "V.Ronans" <v_r@spamless.and.happy> wrote:
>>
>>> Dr.Ruud wrote:
>>>> jm schreef:
>>>>
>>>>> perl [...] is poorly typed
>>>>
>>>> By you? (Did you mean Perl by the way?)
>>>
>>> Honestly, you know full well he was talking about the programming
>>> language that pertains to this here news group, so feign ignorance?
>>> I mean why is this even such an issue? Other places where people
>>> talk about programming languages don't seem to care if it's all
>>> caps, 
>>
>> There are already plenty of people who think PERL is an acronym (it's
>> not), so "we" like to avoid PERL.
>>
>> Moreover, Perl is the programming language, and perl is the
>> executable, hence there is a good reason to be case sensitive. Hence,
>> perl [...] is poorly typed seems to refer to the executable, hence
>> Dr. Ruud's question.
> 
> As someone else pointed out, in many other groups centered around a 
> particular programming language, no one pays this kind of attention of
> people like your self seem to.

I am sure that in a Java related group people will post remarks if
someone mixes up javac with java (executables). 

Also, I am sure that in C related groups people start to ask questions
if you constantly talk about x is an integer and that you have problems
with it. 

> Second, why is it people like yourself 
> can never give a straight answer as to why it is of such high 
> importance?

Because programming is about being very specific and exact. Details do
matter. Calling a warning and error is another classic one (or vice
versa), or just stating that "my PERL program crashed, please help". 

> If someone is a good programmer with the Perl language, does 
> it really make a difference how they spell it as long as they know
> what they are doing?

IMO a good Perl programmer knows the difference between Perl and perl,
and knows when to use which one. 

> I mean you have people like Abigail who use their own 
> quote characters, Uri who can't use a bloody shift key, etc,

Yes, and me, who has English as a second language. As long as all those
people don't write ambiguous statements related with the problem/answer,
I don't have a problem with it. 

> and you're 
> worried about how some random bloke cases the word/term Perl?

Yes. Look at the subject: perl should be improved. I read that as: the
perl executable should be improved. I have very little to say on that
subject (I am not a perl programmer/hacker) 

However, if the subject is: Perl should be improved, I might like to
read it, because, as a Perl programmer, I have my own ideas. 

-- 
John

http://johnbokma.com/perl/


------------------------------

Date: 6 Apr 2008 17:55:05 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: perl should be improved and perl6
Message-Id: <Xns9A788368B7FD6castleamber@130.133.1.4>

Johann Kappacher <Johann.Kappacher@chello.at> wrote:

>> Ok, Uri is right in saying that the FAQ explains it well.
>> But the FAQ also states that you can follow the guideline ... or not.
>> 
>> Uri is writing "perl actually has stronger typing than many langs"
>> and (in a followup) "perl and other langs".


Uri avoids the shift key for one reason or another. Regs here don't 
mistake Uri for a newbie, and hence read over this.

The problem with people who use PERL, or perl if they mean Perl, and vice 
versa, often are newbies. They increase their change of being taken 
serious by getting it right. Or they might be able to get away with it, if 
other regs recognize them as someone who knows their Perl :-D.
 
-- 
John

http://johnbokma.com/perl/


------------------------------

Date: 6 Apr 2008 17:56:44 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: perl should be improved and perl6
Message-Id: <Xns9A7883B083FCFcastleamber@130.133.1.4>

Andrew DeFaria <Andrew@DeFaria.com> wrote:

> Attachment decoded: text-html-3

Oops, you just lost any credebility :-D

-- 
John

http://johnbokma.com/perl/


------------------------------

Date: Sun, 06 Apr 2008 11:50:58 -0500
From: Chris Mattern <syscjm@sumire.gwu.edu>
Subject: Re: Shortcut for if(defined($var) && $var ne "") ?
Message-Id: <slrnfvhvri.fg.syscjm@sumire.gwu.edu>

On 2008-04-06, vikimun@gmail.com <vikimun@gmail.com> wrote:
> Is there shorter equivalent of if(defined($var) && $var ne "")
> that doesn't fall for the "0" case, and doesn't produce warning with -
> w ?
>
> Thanks
> V.M.

I tried this test program:

#!/usr/bin/perl

use warnings;
use strict;

my $var;

if (defined($var) && $var ne "") {
  print "$var\n";
}

It didn't produce any warnings.  When I put in "my $var = 0;",
it printed "0", just like it should.  I don't understand 
your question.  If by "shorter" you mean getting rid of the
defined() test, then, no, you can't get rid of that.  If you
aren't sure if $var is going to be defined, you have to test
for it before trying to use it.

-- 
             Christopher Mattern

NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities


------------------------------

Date: Sun, 06 Apr 2008 19:47:24 +0200
From: Johann Kappacher <Johann.Kappacher@chello.at>
Subject: Re: Shortcut for if(defined($var) && $var ne "") ?
Message-Id: <74eba$47f90ccd$d52f8dcf$20072@news.chello.at>

Johann Kappacher wrote:
> Sorry,
> 
> it will produce warnings if it is not initialized.
> If you want to avoid warnings you must use defined().
> 
> perl 5.10 introduces the defined-or Operator.
> => This is your solution.
> 
> --jk

 ... but no, you need a defined-and operator!
I give up, this exercise is futile!


------------------------------

Date: Sun, 6 Apr 2008 09:50:57 -0700 (PDT)
From: LesleyB <lesley.binks@googlemail.com>
Subject: Re: WHEN IS SOMEBODY GONNA FIX PERL??????
Message-Id: <421a6359-19a3-49a3-b982-59e4abf43bcd@e10g2000prf.googlegroups.com>



your.absolute....@gmail.com wrote:

<snip>
>
> @photos = SYSTEM (`dir c:\my pictures\alt.binaries.erotica.children
> \*.jpg`)),

<snip>


I *knew* there was a reason not to lurk on this list.

L.


------------------------------

Date: Sun, 6 Apr 2008 06:21:21 -0700 (PDT)
From: Todd <xueweizhong@gmail.com>
Subject: Re: Why `for local $var (LIST) ...' not allowed?
Message-Id: <18227b49-8296-40dc-9b1d-6945a220e3d3@u36g2000prf.googlegroups.com>

Great thanks, Michele Dondi.
You make many things clear enough here.
Hopes i'm not distract now due to ...  :(

-Todd


------------------------------

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.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

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 V11 Issue 1425
***************************************


home help back first fref pref prev next nref lref last post