Re: why Perl complaints my script

2006-09-28 Thread chen li
Hi Andriano, Thank you very much, Li --- Adriano Ferreira <[EMAIL PROTECTED]> wrote: > On 9/28/06, chen li <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I write a small script for permutation. When I use > > version 1) Perl always complaint it although I get > the > > result. If I use version

Re: why Perl complaints my script

2006-09-28 Thread chen li
Thank you very much, Li --- Igor Sutton <[EMAIL PROTECTED]> wrote: > > > > for ($k; $k>=1;$k--) {$result*=$n--;}#line > 15 > > > > You don't need to declare $k inside for (). Change > that to > > for (; $k >= 1; $k--) > > and perl won't complain about it anymore. I think > the place b

Re: why Perl complaints my script

2006-09-28 Thread chen li
Thanks, Li --- "Dr.Ruud" <[EMAIL PROTECTED]> wrote: > chen li schreef: > > > for ($k; $k>=1;$k--) {$result*=$n--;} > > Alternative: > > $result *= $n-- for 1..$k ; > > -- > Affijn, Ruud > > "Gewoon is een tijger." > > > > -- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additio

Re: why Perl complaints my script

2006-09-28 Thread Dr.Ruud
chen li schreef: > for ($k; $k>=1;$k--) {$result*=$n--;} Alternative: $result *= $n-- for 1..$k ; -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: why Perl complaints my script

2006-09-28 Thread Adriano Ferreira
On 9/28/06, chen li <[EMAIL PROTECTED]> wrote: Hi all, I write a small script for permutation. When I use version 1) Perl always complaint it although I get the result. If I use version 2) it never says a word about it. Any comments? Perl always complain (provided you called for that with -w o

Re: why Perl complaints my script

2006-09-28 Thread Igor Sutton
for ($k; $k>=1;$k--) {$result*=$n--;}#line 15 You don't need to declare $k inside for (). Change that to for (; $k >= 1; $k--) and perl won't complain about it anymore. I think the place before the first ';' is used for declaring any variables inside the lexical scope of for. Maybe s

Re: Why Perl

2004-04-28 Thread Stephan Hochhaus
Hi Brent and all, well wort it, I i was quite sad to see how PHP performed http://www.bagley.org/~doug/shootout/index2.shtml Hmm, the index.html pages states, that the last update to the results was performed in 2001. I might think PHP is by now a little more mature (=faster). I wouldn't be too

Re: Why Perl

2004-04-27 Thread Brent Clark
Have a look at these links well wort it, I i was quite sad to see how PHP performed http://www.bagley.org/~doug/shootout/index2.shtml http://www.bagley.org/~doug/shootout/bench/ary3/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why Perl

2004-04-27 Thread Tim
At 10:52 AM 4/27/04 +0530, you wrote: Hi All, Can some list some points where perl really stands out from other languages. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Because it

RE: Why Perl

2004-04-27 Thread John
e- > From: Randy W. Sims [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 27, 2004 2:30 AM > To: Sumanth Sharma > Cc: [EMAIL PROTECTED] > Subject: Re: Why Perl > > > Sumanth Sharma wrote: > > Hi All, > > > >Can some list some points where perl really sta

Re: Why Perl

2004-04-26 Thread Randy W. Sims
Sumanth Sharma wrote: Hi All, Can some list some points where perl really stands out from other languages. erm, pick any perl (or python, or ruby, or ...) group and search the archives. This question has been asked in many forms in many places. The only place major differences are CPAN and co

[OT] Verbose code (was: Re: Why Perl kicks but!)

2003-01-06 Thread Wiggins d'Anconia
R. Joseph Newton wrote: One nice thing about Perl is that you can choose your own style. Many of those posting here seem particularly fascinated by tightly packed one-liners. The language supports such constructs quite well. It also supports my coding style, which tends more towards the ste

RE: Why Perl kicks but!

2003-01-06 Thread Dan Muey
nt: Saturday, January 04, 2003 5:54 PM To: [EMAIL PROTECTED] Subject: RE: Why Perl kicks but! Not to get too far off on a tangent, but I think the '1000\'s of users' he was referring to were the mailing list users. In any case, the point remains the same. Why bother proclaiming

Re: Why Perl kicks but!

2003-01-05 Thread Rob Dixon
ad quite a day with no one to take it out on. I apologize. Dan -Original Message- From: Rob Richardson [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 3:43 PM To: [EMAIL PROTECTED] Subject: Re: Why Perl kicks but! David and everybody else, To me, Perl is a tool to be used when

Re: Why Perl kicks but!

2003-01-05 Thread Jonathan Daugherty
# > As for me I don't like visual basic so I don't use it and I don't # > post to mailing lists for it explaining that all of these 1000's of users # > are dumb to use such a language. # # do you know how many VB developers are in the US alone? Of course, numbers do say a lot; in this case, you'r

RE: Why Perl kicks but!

2003-01-04 Thread Timothy Johnson
, 2003 4:20 PM To: [EMAIL PROTECTED] Subject: RE: Why Perl kicks but! Can I ask you a few questions: Dan Muey wrote: > To me Visual Basic is retarded , not even a last resort. How long have you been using VB and what version are you most familiar with? > As for me I don't like visual basic

Re: Why Perl kicks but!

2003-01-04 Thread R. Joseph Newton
Hi Rob, I'm pretty close to you in my views, except that I use VB essentially for the same reason I use Perl. VB owns the user interface, and Perl has the CGI. I've been burned by VB more than a few times by doing work that should have been portable, but ... Try using a VB Axtive X control i

RE: Why Perl kicks but!

2003-01-03 Thread david
Can I ask you a few questions: Dan Muey wrote: > To me Visual Basic is retarded , not even a last resort. How long have you been using VB and what version are you most familiar with? > As for me I don't like visual basic so I don't use it and I don't > post to mailing lists for it explaining th

RE: Why Perl kicks but!

2003-01-03 Thread Dan Muey
s was 'like hell' at one time or another in your life. Sorry, enough ranting I've had quite a day with no one to take it out on. I apologize. Dan -Original Message- From: Rob Richardson [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 3:43 PM To: [EMAIL PROTECTED] S

Re: Why Perl kicks but!

2003-01-03 Thread Paul Johnson
On Fri, Jan 03, 2003 at 01:42:58PM -0800, Rob Richardson wrote: > Give me Visual Basic first, and then C++. Perl is a last resort. Hmmm. That's interesting. Perl doesn't seem to fit everyone's way of thinking. I'm not sure whether that's a problem with Perl, or some people's thinking ;-) Act

Re: Why Perl kicks but!

2003-01-03 Thread Rob Richardson
David and everybody else, To me, Perl is a tool to be used when other tools don't fit. It's great to be able to write a program that will run on just about every Windows and Unix box ever made, but it's hell trying to use structures more complicated than a hash. Give me Visual Basic first, and t

Re: Why Perl kicks but!

2003-01-03 Thread David Eason
"Paul Kraus" <[EMAIL PROTECTED]> wrote in message 00e101c2b34e$47871010$64fea8c0@pkrausxp">news:00e101c2b34e$47871010$64fea8c0@pkrausxp... > PERL is the shit! Some among the global readership may not be familiar with this American idiom. This is high praise indeed. -- To unsubscribe, e-mail:

Re: Why ./perl/lib & ./perl/site/lib?

2001-06-10 Thread Rev. Jonathan T Sage
Unless I'm mistaken, I would have to say perl/site/lib = Site/Arch/Machine Specific Modules perl/lib = Default/Packaged Modules ~Jon --- Tim Musson <[EMAIL PROTECTED]> wrote: > Hey all, > > I was wondering why the perl install has both the > ./perl/lib and ./perl/site/lib folders? They both s