in reply to Re: Manipulating Output
in thread Manipulating Output

thanks. Sorry I only gave just a small portion of my script and you answered my question. Now that it works can you please explain how this works???? I am lost on the => and the [-1] parts.

print FILE (split /:/ => $_) [-1], "\n";

Replies are listed 'Best First'.
Re: Manipulating Output
by Abigail-II (Bishop) on Jul 09, 2002 at 15:34 UTC
    => is a fancy comma, and [-1] takes the last element of the list preceeding it.

    Abigail

      Abigail and all others who replied:
      Many thanks for your quick answers!!