--- "Zysman, Roiy" <[EMAIL PROTECTED]> wrote:
> Hi Guys and Girls,
> Does anyone have an idea of an elegent way to
> extract certain item from an array (not the last one or the first
> one).
> The array should remain in a right order after the extraction.
> tanx.
If I understood you right,
@tmp = ($ray[0], # preserve first line
grep(/\w/, @ray[1,-2]), # get nonblank lines
$ray[-1]); # preserve last line
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]