Rory wrote:

>All I need to do is find out how to get the current date and time from
>the server so that I can write it to a logfile I'm creating.  How can I
>do that?
>
Hi Rory,

I'm a newbie, but here's something from the llama book (Learning 
Perl, 3rd Ed.) p. 286:

"If you need the current timestamp number from the system clock, just 
use the 'time' function."

And,from appendix B, there's a Time::Local module that you can use.

Chomp is the command you want for stripping newlines.

my $text = <STDIN>;
my $nolines = chomp $text;

I'd say it would be good for you to pick up a copy of the llama book, too.

But now, I'm in over my head, and I'll go back to lurk mode.

Best Regards,

John Haffner




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to