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

How do I properly use global variables?

2007-10-23 Thread monk
I'm having problems accessing a variable outside its subroutine. I've tried several combinations too long to write here. Maybe I just can't see the forest for the trees. But I'm lost. I need your wisdom. I'd like my program below to change $status to zero to exit the loop. meaning...$ perl