Re: More time calculations

2005-03-07 Thread Scott Leighton
On Monday 07 March 2005 1:37 pm, Moreno, Javier wrote: > Hi all, > > I keep having issues trying to calculate dates. Basically what I want to do > is to go to the beginning of the previous month. So, I thought I could > deduct the seconds that make up as many days as today is plus the seconds > tha

Re: More time calculations

2005-03-07 Thread Dennis G. Wicks
On Mon, 7 Mar 2005, Moreno, Javier wrote: > Date: Mon, 7 Mar 2005 15:37:56 -0600 > From: "Moreno, Javier" <[EMAIL PROTECTED]> > To: ActivePerl@listserv.ActiveState.com > Subject: More time calculations > > Hi all, > > I keep having issues trying to calculate dates. Basically what I want to do

RE: More time calculations

2005-03-07 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > Hi all, > > I keep having issues trying to calculate dates. Basically what I want > to do is to go to the beginning of the previous month. So, I thought > I could deduct the seconds that make up as many days as today is plus > the seconds that make up as many days as the

Re: More time calculations

2005-03-07 Thread daniel . companeetz
Why are you using ($thisday-4)? That gives you 4 days offset! Daniel Companeetz [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/07/2005 01:46 PM                 To:        "Moreno, Javier" <[EMAIL PROTECTED]>         cc:        [EMAIL PROTECTED], ActivePerl@listserv.ActiveState.com, (b

RE: More time calculations

2005-03-07 Thread Moreno, Javier
Ok. I'm down to one day off only. $month_days was calculating the number of days in the current month and not the last month. So is being off my one day ok? Regards, Javier Moreno -Original Message- From: Moreno, Javier Sent: Monday, March 07, 2005 3:38 PM To: ActivePerl@listserv.Activ

Re: More time calculations

2005-03-07 Thread Deane . Rothenmaier
Your best bet is to do something using Julian Day Numbers. They certainly make most date calculations easier, and I think they'll help with this task, too. HTH, Deane "Moreno, Javier" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03/07/2005 15:37                 To:                 cc:

More time calculations

2005-03-07 Thread Moreno, Javier
Hi all, I keep having issues trying to calculate dates. Basically what I want to do is to go to the beginning of the previous month. So, I thought I could deduct the seconds that make up as many days as today is plus the seconds that make up as many days as the last month has. So I ended up wit

Video Questions (a tad OT?)

2005-03-07 Thread Deane . Rothenmaier
Greetings, wise ones! I'm sneaking in with this one because the code I'm working on happens to be in Perl, so... Does anyone know of a way to set a monitor's refresh rate or resolution (horizontal, vertical or both--or is both the only one that makes any sense at all!!)? I'm thinking the answer

Perl Tk questions

2005-03-07 Thread Basil Daoust
I've included a little program here.  What I'm trying to do is run a timer when no keyboard or mouse activity is active. As soon as something happens reset my timer.  Ideally it would target a window that isn't associated with this window, but since its just a helper for me as long as the bind wor

RE: How to enter a password without typing it?

2005-03-07 Thread Chad I. Uretsky
Title: Message As everyone has suggested, Net::Telnet ought to work for you.  If you choose to run on *nix instead of running ActivePERL, you could also look into Expect.pm (I don't believe anyone has released an Expect module for ActivePerl yet - if someone has, I'd love to know about it).

RE: How to enter a password without typing it?

2005-03-07 Thread Stephens, Donald
Can't you just use a Telnet module. I'm thinking of something like this:   use Net::Telnet;   $t = Net::Telnet->new( Timeout => 10,   Prompt => '/%/',   Host => $hostname );   # SET HOSTNAME HERE   $t->login($username, $passw

RE: How to enter a password without typing it?

2005-03-07 Thread Steve Baldwin
Did you have a look at Net::Telnet?   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of oscar gil Sent: Tuesday, 8 March 2005 6:09 AM To: ActivePerl@listserv.ActiveState.com; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: How t

Re: How to enter a password without typing it?

2005-03-07 Thread $Bill Luebkert
oscar gil wrote: > Thanks to all of you who answered my question, I really appreciate it. > > Unfortunately, I'm not talking about a web server, I'm interested in a > telnet server. And you didn't think that was important to tell us ? > I need to telnet to an application wherein the first thing

RE: How to enter a password without typing it?

2005-03-07 Thread oscar gil
Thanks to all of you who answered my question, I really appreciate it.   Unfortunately, I'm not talking about a web server, I'm interested in a telnet server.   I need to telnet to an application wherein the first thing it does is ask for a user and a password and I don't know how to manage that.

RE: How to enter a password without typing it?

2005-03-07 Thread bruce
oscar... give us a little more in understanding your app/goal. if you're trying to write an app that hits a given site, and you know the structure of the site, it's easy to write a 'screen-scriping' app that hits the site, enters the user/passwd, and then returns with the resulting web page/inform

RE: How to enter a password without typing it?

2005-03-07 Thread Stephens, Donald
I could be off track here, but if your server program supports cookies (i.e. web application) then you can add a cookie bag where you specify the credentials. If you are doing some type of web scraping or HTTPRequest then you should be able to send the credentials along up with the data bein

Re: Help needed for a beginner in perl and in programming in general.

2005-03-07 Thread JKahn
Ahmed,   First of all.. good luck and enjoy the experience. When I started I fet the same way, however my university degree is in Computer Science. when I needed to learn PERL I tried many on linetutorials. I found them useful.. but when I turned to "SAMS Teach Yourself PERL in 21 Days" I really t

RE: Help needed for a beginner in perl and in programming in general.

2005-03-07 Thread Brian Raven
Ahmed Khater wrote: > Dear list members: > > First of all, I am very sorry for the cross-posting of my > message and if my message seems of-topic for some Perl lists > to which I > have just subscribed. > > My name is Ahmed Khater. We, myself and one of my > colleagues, are scholars in linguisti