On Sun, Oct 27, 2013 at 03:27:49PM +0100, Dr.Ruud wrote:
> On 2013-10-27 04:00, Mayuresh Kathe wrote:
>
> >#!/usr/bin/perl -w
> >
> >use strict;
> >use warnings;
> >
> >my $exponent = $ARGV[0];
> >my $number = 2;
> >my $result = $number;
> >
> >if ( not defined $exponent ) {
> > die "Usage
On 2013-10-27 04:00, Mayuresh Kathe wrote:
#!/usr/bin/perl -w
use strict;
use warnings;
my $exponent = $ARGV[0];
my $number = 2;
my $result = $number;
if ( not defined $exponent ) {
die "Usage: $0 \n";
}
You have a die() there, so no indent needed. Alternative:
# assertions
de
On 26/10/2013 13:59, Shawn H Corey wrote:
On Sat, 26 Oct 2013 07:28:09 -0400
wrote:
How about python?
Many people consider it's better than Perl and it becomes more and
more popular.
This is why:
Why what? I assume you're promoting Python, which is a bit strange on
this list.
>
> $ pyth
On Sat, Oct 26, 2013 at 10:54:12AM -0400, Shawn H Corey wrote:
> On Sat, 26 Oct 2013 16:06:56 +0530
> Mayuresh Kathe wrote:
>
> > i've been searching for books on learning and mastering perl and found
> > the series by o'reilly to be quite well recommended.
>
> Another O'Reilly book is "Perl Bes
On Sat, Oct 26, 2013 at 02:13:51PM -0700, John SJ Anderson wrote:
> On Sat, Oct 26, 2013 at 9:08 AM, Mayuresh Kathe wrote:
>
> > A pseudo-tangential question;
> > Under the platform, I could do "apt-get install perltidy" to install
> > perltidy, but there's nothing similar for perlcritic.
> > Is
On 10/26/13 04:31, Mayuresh Kathe wrote:
I have watched Python programmers pull their hair out trying to bring the
performace upto acceptable limits and resource usage under control.
As soon as their programs increase in complexity, the problems with
Python start becoming evident.
IMNSHO I've f
On 10/26/13 03:36, Mayuresh Kathe wrote:
> hi, this is my first mail to this list, and the first time i'll be
> working with perl.
Welcome! :-)
> i've been searching for books on learning and mastering perl and found
> the series by o'reilly to be quite well recommended.
> would i be right in
On Sat, Oct 26, 2013 at 2:24 PM, wrote:
> I'm a newbie of programming and want to know the differences between these 2
> tools. I believe every newbie is curious to know the truth instead of some
> junk posts online.
>
> What's the big deal to compare these 2 languages? Simply because this is a
On Sat, Oct 26, 2013 at 2:18 PM, Shawn H Corey wrote:
> There are many things in it, like "Don't use the two-argument open,"
> which are relevant. part of the problem is that many of the older Perl
> sources are out of date. PBP does tell what to use instead.
All of the Perl books that have been
On Sat, 26 Oct 2013 17:24:34 -0400
wrote:
> What's the big deal to compare these 2 languages? Simply because this
> is an old topic?
Because some of the early advocates for Python trash-talked Perl. And
Perlers, wanting to show that they can be equally immature,
trash-talked back. There is just
I'm a newbie of programming and want to know the differences between these 2
tools. I believe every newbie is curious to know the truth instead of some junk
posts online.
What's the big deal to compare these 2 languages? Simply because this is an old
topic?
> On Oct 26, 2013, at 5:08 PM, "
On Sat, 26 Oct 2013 14:13:51 -0700
John SJ Anderson wrote:
> You should also know that, Shawn's endorsement not withstanding, many
> people consider the advice given in Perl Best Practices to be a bit of
> a mixed bag. There are some good tips in there, but they're mixed in
> with a bunch of fair
On Sat, Oct 26, 2013 at 9:08 AM, Mayuresh Kathe wrote:
> A pseudo-tangential question;
> Under the platform, I could do "apt-get install perltidy" to install
> perltidy, but there's nothing similar for perlcritic.
> Is perlcritic packaged under a different name? or is there a different
> way to i
Hi. This is the _Perl_ beginners list.
Python advocacy is very much off-topic. If you'd like to stay and talk
about Perl programming, please do. If you'd like to advocate for
Python, please take that conversation some where else.
thanks,
john,
the perl-beginners list mom.
On Sat, Oct 26, 2013 at
On Sat, Oct 26, 2013 at 10:54:12AM -0400, Shawn H Corey wrote:
> On Sat, 26 Oct 2013 16:06:56 +0530
> Mayuresh Kathe wrote:
>
> > i've been searching for books on learning and mastering perl and found
> > the series by o'reilly to be quite well recommended.
>
> Another O'Reilly book is "Perl Bes
I really enjoyed reading this book by Ovid.
http://ofps.oreilly.com/titles/9781118013847/
Felt it was much easier to understand then the Learning Perl 6th edition I
was reading before.
On Sat, Oct 26, 2013 at 7:54 AM, Shawn H Corey wrote:
> On Sat, 26 Oct 2013 16:06:56 +0530
> Mayuresh Kathe
On Sat, 26 Oct 2013 16:06:56 +0530
Mayuresh Kathe wrote:
> i've been searching for books on learning and mastering perl and found
> the series by o'reilly to be quite well recommended.
Another O'Reilly book is "Perl Best Practice" by Damian Conway. Much of
this book has been incorporated into Pe
On Sat, Oct 26, 2013 at 04:47:47PM +0530, Mayuresh Kathe wrote:
> btw, most people and web pages don't mention it, but, "mastering
> algorithms with perl" is also supposedly a good book, though only a very
> old edition is available.
It is, indeed, and excellent book. And it doesn't really matte
On Sat, 26 Oct 2013 07:28:09 -0400
wrote:
> How about python?
> Many people consider it's better than Perl and it becomes more and
> more popular.
This is why:
$ python
Python 2.7.4 (default, Sep 26 2013, 03:20:26)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for mor
I have watched Python programmers pull their hair out trying to bring the
performace upto acceptable limits and resource usage under control.
As soon as their programs increase in complexity, the problems with
Python start becoming evident.
So, thanks, but, no thanks, I'd rather go with Perl inste
How about python?
Many people consider it's better than Perl and it becomes more and more
popular.
> On Oct 26, 2013, at 7:23 AM, "Bob goolsby" wrote:
>
> "Learning Perl", Schwartz, Phoenix, defoy, and others, (AKA The Llama Book)
> is the best introductory book on Perl. The book is entertai
"Learning Perl", Schwartz, Phoenix, defoy, and others, (AKA The Llama Book)
is the best introductory book on Perl. The book is entertaining,
enlightening, and in it's sixth edition -- it's that good.
Perl will change how you look at Computer languages. There are two mottoes
in the Perl World: "T
On Sat, Oct 26, 2013 at 02:04:15PM +0300, Shlomi Fish wrote:
> Hi Mayuresh,
>
> On Sat, 26 Oct 2013 16:06:56 +0530
> Mayuresh Kathe wrote:
>
> > hi, this is my first mail to this list, and the first time i'll be
> > working with perl.
> >
> > i've been searching for books on learning and master
Hi Mayuresh,
On Sat, 26 Oct 2013 16:06:56 +0530
Mayuresh Kathe wrote:
> hi, this is my first mail to this list, and the first time i'll be
> working with perl.
>
> i've been searching for books on learning and mastering perl and found
> the series by o'reilly to be quite well recommended.
>
>
24 matches
Mail list logo