time format conversion

2011-04-21 Thread cc
Hi, I have two strings that shows different times and I want to find the difference in # of hours. In PHP, there's strtotime(), but there isn't one in Perl that I can find. The string format is: mm/dd/ hh:mm:ss So if t1 and t2 are of the aforementioned format, I just do a t2 - t1 and it sho

Why is Perl a SHE

2006-10-07 Thread @ Rocteur CC
Hi, I was just reading The State of the Onion 10 http://www.perl.com/pub/ a/2006/09/21/onion.html by Larry, and if you have not read it I think you will enjoy it. I really ROFL when I saw that Randal was our own Evil Brother Damian ;-) Anyway, Larry refers to Perl as SHE.. Does anyone know

Crypt::RSA

2004-05-20 Thread cc
Hi, If given the following in genkey.pl : use Crypt::RSA; my ($rsa) = new Crypt::RSA( KF => 'SSH'); my ($pub, $prv) = $rsa->keygen( Identity => 'cc <[EMAIL PROTECTED]>', Password => 'i h

PerlTK and updating a canvas

2004-04-27 Thread cc
Hi, I'm using ActivePerl w/ the Tk module on a Win2kPro system. I'm stumped in how to get the canvas updating at a reasonable speed. Right now, I use ->update(), but it takes a big chunk of the CPU cycles. Is there another way to update the canvas? Right now, I have a perlTk script which should

dynamic arrays

2003-02-25 Thread cc
Hi, I'm a beginner at PERL. I've used it on and off, but only just recently got myself back into the picture. I figured that if you forget something in PERL, it'd be easy to take it up again. So far, I'm not too sure of the ease of taking up PERL again. Before, I made a few perl scripts. Now,

concecutive numbering with perl

2001-08-22 Thread cccc cc
Hi all, My OS and Perl info: Solaris 8 Perl5 I'm trying to write a perl cgi that will allow me to track the number of form submissions (i.e. 0001, 0002, 0003, etc.). Is flock() the best method? I have included a suggested flock () perl cgi below: #!/usr/lo