Archive Zip Help

2002-04-30 Thread Carter A. Thompson
I'm trying to use the Perl Module Archive::Zip and I'm having a little difficulty understanding it. After reading the pod doc for Archive::Zip I've written the following test: use Archive::Zip; my $dir = C:/tmp2; my $zip = Archive::Zip-new(); my $member = $zip-addDirectory('$dir');

Re: Perl/Tk fileevent

2002-03-25 Thread Carter A. Thompson
Thanks, Jack. I have the Mastering Perl/Tk book and I've even tried the examples. It's just not working. :-( I sincerely appreciate your input. I'll look into some other options. Cheers, Carter. Jack wrote: - Original Message - From: Carter A. Thompson [EMAIL PROTECTED] I'm

Filehandle and Widget printing.

2002-03-21 Thread Carter A. Thompson
I have a Perl/Tk script that executes a system command. What I'd like to do is capture the output from this system command and redirect it to both a filehandle and a text widget. print FH some string\n;# This prints to the logfile $text-insert('end; some string\n);#

Re: perl ping?

2002-03-19 Thread Carter A. Thompson
Tim, You'll want to get and use Net::Ping. I wrote a small routine to return a status code for an automated system, it uses ping to determine if a host is reachable. use Net::Ping; sub reachable { my $host = shift @_; $p = Net::Ping-new(icmp); (defined $p) || die Can't

Re: perl ping?

2002-03-19 Thread Carter A. Thompson
code. system(ping $host); $status = $? 8; if ($status != 0) { #failed to connect. } Anyone else? Carter. -- Carter A. Thompson Lead Release Engineer [EMAIL PROTECTED] (831) 461-4925 ___ Perl-Win32-Users mailing list [EMAIL PROTECTED