in reply to UnPerl-like Code

my @d=sort(@d);
I just double-checked. We have nothing exactly like that in the llama. Please be careful when you say something is "straight from the Llama's mouth". It's nearly libelous if it's derogatory.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: UnPerl-like Code
by jerrygarciuh (Curate) on Sep 29, 2001 at 01:04 UTC
    My apologies, the code I posted was not "straight from the
    Llama's mouth" and I should be more careful in using
    that phrase. The code which I was pondering is on page
    55 of the 2nd edition of the Llama and reads as follows:

    @y = sort(@y);

    What caught my mind is that Perl makes a point of not having one
    repeat variables on both sides of an = and
    sorting an array while maintaining its name is the opposite.
    With humble contrition,
    jg