Re: Can't install Inline::Java

2010-04-25 Thread Alexander Koenig
On 04/25/2010 11:19 AM, C.DeRykus wrote: > > You might want to check the Inline mailing list mentioned on CPAN. Good idea. I'll try that. Thanks. Alex -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: serious self confusion over line counts and hashs.

2010-04-25 Thread Jim Gibson
At 4:37 PM -0500 4/25/10, Harry Putnam wrote: I do have another question that was only in the background of my first post. Is there a canonical way to read a bunch of -f type files into a hash? I take it you mean add the file names to a hash, not the file contents. I want the end name `$_'

Re: serious self confusion over line counts and hashs.

2010-04-25 Thread Harry Putnam
Shawn H Corey writes: > > close $h1fh or die "could not close $h1: $!\n"; > close $h2fh or die "could not close $h2: $!\n"; > close $ckfh or die "could not close $ckarr: $!\n"; > Output is buffered. The files have to be closed for the last lines to > be printed to the file. I was pretty sure

Re: serious self confusion over line counts and hashs.

2010-04-25 Thread Shawn H Corey
Harry Putnam wrote: #!/usr/local/bin/perl use strict; use warnings; use File::Find; use Cwd; my %h1; my %h2; my $targ = shift; my @ckarr; my $h1ff = './h1'; my $h2ff = './h2'; my $ckff = './ckarr'; my $nf = './nf'; for($h1ff,$h2ff,$ckff,$nf){ if (-f $_){ print "deleting $_\n"; unli

serious self confusion over line counts and hashs.

2010-04-25 Thread Harry Putnam
I've managed to confuse myself thoroughly working on a project. I hoped to read a list of -f type files into a hash of File::Find::name and $_. But kept coming out with different counts than I get with shell find. I tried writing a script that tested things various ways, but can't really reconc

Re: Problems with "show tech" using the Net::Telnet Module

2010-04-25 Thread Uri Guttman
> "A" == Asterix writes: A> Instead of this printf OUTPUT_FILE "@output\n\n"; A> I've used print OUTPUT_FILE "@output\n\n"; that would not make any difference in buffering or anything. the second is better in that you don't use printf's formatting there. when i see lots o

Re: Modify excel worrkbook in perl

2010-04-25 Thread Shlomi Fish
On Sunday 25 Apr 2010 10:12:02 luke devon wrote: > Hi > > I need to modify a excel file in perl and for which i installed perl in > ubuntu. > > 1. Open a existing excel file > > 2. delete an unwanted Sheet called "summary" > > 3. and i want to insert some data into range of cells ( B1:B11) >

Re: Can't install Inline::Java

2010-04-25 Thread C.DeRykus
On Apr 23, 2:40 am, alexander.koe...@mpi.nl (Alexander Koenig) wrote: > Hi all, > > I just tried to install Inline::Java from CPAN and it didn't work. The > install process just stopped after some time. When I tried it the second > time it stopped again at the same time. > > There was no error mess

Re: Problems with "show tech" using the Net::Telnet Module

2010-04-25 Thread Asterix
On 20 Apr, 12:25, t.baetz...@bringe.com (Thomas Bätzler) wrote: > Asterix asked: > > > I've made a little script to capture the output of networking > > devices. > > Everything works fine, until I use the "show tech" command in an Cisco > > device. > > Have you considered using the cmd() method of

Re: Problems with "show tech" using the Net::Telnet Module

2010-04-25 Thread Asterix
On 20 Apr, 12:25, t.baetz...@bringe.com (Thomas Bätzler) wrote: > Asterix asked: > > > I've made a little script to capture the output of networking > > devices. > > Everything works fine, until I use the "show tech" command in an Cisco > > device. > > Have you considered using the cmd() method of

Re: File::Find and top level directory

2010-04-25 Thread Shlomi Fish
On Saturday 24 Apr 2010 22:00:56 Harry Putnam wrote: > When using File::Find; > Is there any built in way to know when you are in the top level of one > of the directories in @directories? > > I mean besides grepping $File::Find::dir. > > I know that give the current directory name and of course

Modify excel worrkbook in perl

2010-04-25 Thread luke devon
Hi I need to modify a excel file in perl and for which i installed perl in ubuntu. 1. Open a existing excel file 2. delete an unwanted Sheet called "summary" 3. and i want to insert some data into range of cells ( B1:B11) Could you please tell me what is the most suitable perl module that