Re: how to recursion

2017-03-29 Thread PYH
I asked this just b/c I want to do matrix calculation in perl. I found under some conditions a recursion is more effective. Thanks everybody. On 2017/3/29 23:31, Chas. Owens wrote: On Tue, Mar 28, 2017 at 9:27 PM PYH mailto:p...@vodafonemail.de>> wrote: Hi, what's the be

how to recursion

2017-03-28 Thread PYH
Hi, what's the better way to write a recursion in perl's class? sub my_recursion { my $self = shift; if (...) { $self->my_recursion; } } this one? thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@per

accessors module

2017-03-16 Thread pyh
Hello members, I was not sure, what purpose does module accessors exist for? something similar to ruby's meta-programming? Thanks.

Re: parse arguments passed to subroutines

2011-01-30 Thread pyh
Jim Green writes: Hello, I usually use my ($arg1, $arg2) = @_; to get the arguments parsed to a subroutine. I want this to be smarter. Sometimes I want to pass $start, $end to the sub, sometimes I want to pass $start, $count to the sub. but in this case my ($arg1, $arg2) = @_; will get co

date handle

2011-01-30 Thread pyh
$ perl -MTime::Local -le 'print timelocal(0,0,0,1,1,1900)' Cannot handle date (0, 0, 0, 1, 1, 1900) at -e line 1 why Time::Local can't handle the date of 1900? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://