On Monday 11 October 2010 13:20:07 Dr.Ruud wrote:
> On 2010-10-08 16:52, Shlomi Fish wrote:
> > my ($arg1, $arg2, $arg3 ... ) = @_;
>
> Bad pattern: numbered names.
Well, thanks for trimming out so much of my message.
In any case, naturally, I didn't intend that you actually name the argumen
On 2010-10-08 16:52, Shlomi Fish wrote:
my ($arg1, $arg2, $arg3 ... ) = @_;
Bad pattern: numbered names.
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
On 2010-10-10 03:09, Ron Bergin wrote:
Have you considered including an example were it would be appropriate
to use the C-style for loop, such as when the iterator needs to change
by some value other than 1?
Bad data structure.
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.or
On Oct 10, 12:59 am, shlo...@iglu.org.il (Shlomi Fish) wrote:
> On Sunday 10 October 2010 03:09:21 Ron Bergin wrote:
>
>
>
> > On Oct 7, 3:07 pm, shlo...@iglu.org.il (Shlomi Fish) wrote:
> > > Hi all,
>
> > > after being tired of telling Perl newcomers about the same problems with
> > > their code
On Sun, Oct 10, 2010 at 3:59 AM, Shlomi Fish wrote:
> Well, in this case, PBP recommends to use a while/continue loop:
>
> [code]
> for (my $i = 0; $i < $n ; $i += 2)
> {
> print "$i\n";
> }
> [/code]
>
> into:
>
> [code]
> {
> my $i = 0;
>
> while ($i < $n)
> {
>
On Sunday 10 October 2010 03:09:21 Ron Bergin wrote:
> On Oct 7, 3:07 pm, shlo...@iglu.org.il (Shlomi Fish) wrote:
> > Hi all,
> >
> > after being tired of telling Perl newcomers about the same problems with
> > their code times and times again, I've decided to create this page
> > detailing "Perl
On Oct 7, 3:07 pm, shlo...@iglu.org.il (Shlomi Fish) wrote:
> Hi all,
>
> after being tired of telling Perl newcomers about the same problems with their
> code times and times again, I've decided to create this page detailing "Perl
> Elements to avoid":
>
> http://perl-begin.org/tutorials/bad-eleme
On 10/08/2010 12:07 AM, Shlomi Fish wrote:
> Hi all,
>
> after being tired of telling Perl newcomers about the same problems with
> their
> code times and times again, I've decided to create this page detailing "Perl
> Elements to avoid":
Nobody is forcing you to tell anyone anything. Teaching
We are stuck on perl 5.8.n on the better systems, 5.6 on some older
Solaris boxes.
Sad but true.
When working with significant quantities of data some of those trivial
performance hits can add up - quickly!
I'd love to see (I'd contribute to) an updated fast performance
article (hint hint).
Jon
On Friday 08 October 2010 15:03:47 Jonas Bull wrote:
> Only one thing I'd mention:
>
> Under "Subroutine Arguments Handling" you offer $var=shift; as a
> better alternative to $var=$_[n] - which it is - but it is a
> (admittedly slight) performance hit vs ($var,$var2,...)=...@_;
>
Well, one goo
Only one thing I'd mention:
Under "Subroutine Arguments Handling" you offer $var=shift; as a
better alternative to $var=$_[n] - which it is - but it is a
(admittedly slight) performance hit vs ($var,$var2,...)=...@_;
Otherwise, pretty useful info. I'm forwarding the link to the rest of
my grou
On 10-10-08 06:10 AM, Shlomi Fish wrote:
It's just that EOF is customary for that (presumable back to its root from
shell).
FYI: Actually, EOF dates all the way back to JCL. The alternative is
EOD, End Of Data.
--
Just my 0.0002 million dollars worth,
Shawn
Programming is as much a
On Friday 08 October 2010 01:41:01 John W. Krahn wrote:
> Shlomi Fish wrote:
> > Hi all,
>
> Hello,
Hi John,
>
> > after being tired of telling Perl newcomers about the same problems with
> > their code times and times again, I've decided to create this page
> > detailing "Perl Elements to avoi
Shlomi Fish wrote:
Hi all,
Hello,
after being tired of telling Perl newcomers about the same problems with their
code times and times again, I've decided to create this page detailing "Perl
Elements to avoid":
http://perl-begin.org/tutorials/bad-elements/
the ultimately wrong, insecure an
On Fri, Oct 08, 2010 at 12:07:30AM +0200, Shlomi Fish wrote:
> after being tired of telling Perl newcomers about the same problems with
> their
> code times and times again, I've decided to create this page detailing "Perl
> Elements to avoid":
>
> http://perl-begin.org/tutorials/bad-elements/
15 matches
Mail list logo