Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Manipulating Output

by Anonymous Monk
on Jul 09, 2002 at 15:32 UTC ( [id://180511]=note: print w/replies, xml ) Need Help??


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!!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://180511]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 23:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found