Re: date handle

2011-01-30 Thread John W. Krahn
p...@mail.nsbeta.info wrote: $ 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? Unix time starts at 1 Jan. 1970 so a time in 1900 is invalid. John -- Any intelligent fool can make th

Re: parse arguments passed to subroutines

2011-01-30 Thread Jim Green
this will work, Thank you! On 30 January 2011 22:00, wrote: > 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

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

parse arguments passed to subroutines

2011-01-30 Thread Jim Green
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 confused, it doesn't know i

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://

Re: custom module and lib

2011-01-30 Thread Jeremiah C. Foster
On Sun, Jan 30, 2011 at 03:37:14PM +, Rob Dixon wrote: > On 30/01/2011 14:09, a b wrote: > > > >I have a query regarding using lib modules > > > >1) I've some custom modules which uses various default routines like > >"Net::rsh" etc > > > >Now, i want to pack all default routines into my lib a

Re: custom module and lib

2011-01-30 Thread Rob Dixon
On 30/01/2011 14:09, a b wrote: I have a query regarding using lib modules 1) I've some custom modules which uses various default routines like "Net::rsh" etc Now, i want to pack all default routines into my lib and use that lib in my custom modules i.e package MyModule; use lib "lib/test";

custom module and lib

2011-01-30 Thread a b
Hello All, I have a query regarding using lib modules 1) I've some custom modules which uses various default routines like "Net::rsh" etc Now, i want to pack all default routines into my lib and use that lib in my custom modules i.e package MyModule; use lib "lib/test";(here i am placing my Rsh