From vctheguru at gmail.com Wed Nov 4 20:11:48 2009 From: vctheguru at gmail.com (Varghese Chacko) Date: Thu, 05 Nov 2009 09:41:48 +0530 Subject: [Kochi-pm] caller - a perl subroutine which we normally wont make note of. Message-ID: <4AF25084.20809@gmail.com> Hi all, I am trying to introduce you to a Perl function '*caller*' which most of us didn't pay attention to. I do remember I used it long back, but never used for last 4 years. caller is a perl built-in function. It returns the context of function call in any subroutine. Syntax: ( $package, $filename, $line, $subroutine, $hasargs, $wantarray, $evaltext, $is_require, $hints, $bitmask, $hinthash ) = caller(1); The only expression it takes is an integer. Value 1 means, returns the details of the function called current function. For more details, you may read http://perldoc.perl.org/functions/caller.html May be at some point you may need it :) Thanks and Regards Varghese Chacko -------------- next part -------------- An HTML attachment was scrubbed... URL: From vchacko at cybersurfers.com Wed Nov 4 20:48:48 2009 From: vchacko at cybersurfers.com (Varghese Chacko) Date: Thu, 05 Nov 2009 10:18:48 +0530 Subject: [Kochi-pm] How Smart Is Your Right Foot? Message-ID: <4AF25930.2060707@cybersurfers.com> How Smart Is Your Right Foot? ============================== Just try this. It is from an orthopedic surgeon. This will boggle your mind and you will keep trying over and over again to see if you can outsmart your right foot - but you can't. It's preprogrammed in your brain! 1. WITHOUT anyone watching you - they will think you are GOOFY, and while sitting where you are at your desk in front of your computer, lift your right foot off the floor and make clockwise circles with it. 2. Now, while doing this, draw the number six in the air with your right hand. Your foot will change direction. I told you so! And there's nothing you can do about it! You and I both know how stupid it is, but before the day is done, you are going to try it again, if haven't already done so. -- Thanks & Regards Varghese Chacko ====================================== I shall be telling this with a sigh Somewhere ages and ages hence: Two roads diverged in a wood, and I-- I took the one less traveled by, And that has made all the difference ...Robert Frost