Check if a given function returns something

2008-02-26 Thread vijay krishna
Hi All, I want to check if a sub routine that I am calling returns a value or not. This is how my code is $str = function(parameter) sub function { .. } the sub routine function in turn uses many other function. Some of these functions have a return statement

Traversing upto end of line

2008-02-07 Thread vijay krishna
Hi, This might just be a little too trivial. I was just wondering if someone could give me a condition where I can traverse across a complete string and perform operation until I encounter End of Line. This is what I tried: if($string != \n) { do operations; } But this does not seem to be