in reply to starters querry
Just to comment on your immediate needs -- after you type (or paste) in your sample program, enter Control-d and then press enter. By pressing Control-d, you are essentially letting the shell know you have entered all the data you wish for the perl interpreter, allowing the interpreter to now run your code.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|