in reply to How can I skip an element in an array whilst reading...

$|-- ? push @a, $_ : push @b, $_ for @in;

Replies are listed 'Best First'.
Re: Answer: How can I skip an element in an array whilst reading...
by belg4mit (Prior) on Apr 06, 2002 at 20:24 UTC
    Tsk tsk tsk, you could potentially leave $| in a state other than which you began ;-) That also relies upon it being unset initially in order for the first element of @in to end up @b

    --
    perl -pe "s/\b;([st])/'\1/mg"