in reply to Re: ignoring the first element of an array
in thread ignoring the first element of an array

The fourth way! (sounds like a book title:)

my $tmp = shift@derivative; for my $well (@derivative) { # } unshift @derivative, $tmp;

Replies are listed 'Best First'.
Re: Re: Re: ignoring the first element of an array
by DaveH (Monk) on Feb 03, 2003 at 14:03 UTC

    The destructive way...

    for my $well (splice @derivative, 1, @derivative) { # }

    Cheers,

    -- Dave :-)


    $q=[split+qr,,,q,~swmi,.$,],+s.$.Em~w^,,.,s,.,$&&$$q[pos],eg,print
Re3: ignoring the first element of an array
by Hofmator (Curate) on Feb 03, 2003 at 14:34 UTC
    or the destructive and funky version of your code ;-)
    for ( do {shift @derivative; @derivative} ) { # }

    -- Hofmator