Re: question about recursion

2009-05-22 Thread Gaurav Vaidya
Hi Greg, 2009/5/22 Greg Aiken : > the sub-routines then look to the value of $main::weve_found_answer to > determine if it should stop recursively calling itself because the answer > has already been found – or continue to recursively call itself again. > [..] > so I ask…  ‘is there a better way o

Re: trouble understanding unicode

2009-03-26 Thread Gaurav Vaidya
Hi Greg, On Mar 27, 2009, at 6:47 AM, Greg Aiken wrote: > the problem here is that the ‘msinfo.txt’ file is not written in > (single byte per character, ascii) format. instead the first two > bytes of the file happen to be (hexFF)(hexFE). Beyond the first two > bytes, each human readable a

Re: http 1.1 compression and cgi output

2009-03-25 Thread Gaurav Vaidya
Hi Jeremy, On Mar 26, 2009, at 4:00 AM, Jer A wrote: > I would like to use http 1.1 compression (deflate,GZip), but as this > is a cgi script, I do not want to much of a performance hitI try > to load minimal modules I might be misunderstanding something, but can't you just tell your web

Re: overriding perl 'our','my' keywords

2009-03-17 Thread Gaurav Vaidya
Hi Jeremy, On Mar 18, 2009, at 6:43 AM, Jer A wrote: > I want to override all 'our' and all 'my' statements in a script. > how do i do this, without any third party modules, just code. Mmm, sounds tricky. There was an article on StackOverflow recently about redefining Perl functions, perhaps y

Re: NET::SSH2 - No Output

2008-12-04 Thread Gaurav Vaidya
Hi SelfSimilar, On Dec 5, 2008, at 3:34 AM, SelfSimilar wrote: > I get an error message "Use of uninitialized value in numeric gt (>) > at > SFTP_test2.pl line 21" which is the print statement > > print $buf while (($len = $chan->read($buf,512)) > 0); That error (or is it a warning?) means that