in reply to Re: using pop a lot
in thread using pop a lot

Or shorter:
splice @array => -5;

Abigail

Replies are listed 'Best First'.
Re: Re: using pop a lot
by liz (Monsignor) on Oct 10, 2003 at 12:57 UTC
    Actually, it can still get shorter without splice():
    $#array -= 5;

    Liz

    Update:
    Although I would probably use Abigail-II's way, but without the fat comma:

    splice @a,-5;