Re: baby code

2011-02-24 Thread Uri Guttman
> "MS" == Malesha, Sachin writes: MS> Below is one way to do it. if you are going to help, please cover most of the weaknesses of the code and there are many. MS> #!/usr/bin/perl MS> use strict; use warnings as well MS> sub func { poor sub name. names are important, even in test

RE: baby code

2011-02-24 Thread Malesha, Sachin
esha -Original Message- From: K4 Monk [mailto:k4m...@gmail.com] Sent: Tuesday, February 22, 2011 9:40 PM To: beginners@perl.org Subject: baby code I just realized even after years of dabbling in perl I don't understand how function calls work. Can someone please be kind enough to h

baby code

2011-02-24 Thread K4 Monk
I just realized even after years of dabbling in perl I don't understand how function calls work. Can someone please be kind enough to help me understand how to return multiple objects from a function and use them? Here I'm interested in returning two objects: a hash, and a list respectively. I'm su