Re: local perl documantaion
On Wed Feb 04 2009 @ 5:49, Dermot wrote: > Hi, > > I have until recently used a widows box and Activestate's perl. I now > use a *nix box. Something I am missing a lot is the html documentation > tree that Activestate builds when it's installed and keeps up to date > with it ppm. > > Is there a way to achieve something similar on a *nix box or do I have > to hand-roll a find/pod2html script? > > TIA, > Dp. I'm not familiar with the Activestate version, so I'm not sure how close it is, but check out Pod::Webserver at the CPAN. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
local perl documantaion
Hi, I have until recently used a widows box and Activestate's perl. I now use a *nix box. Something I am missing a lot is the html documentation tree that Activestate builds when it's installed and keeps up to date with it ppm. Is there a way to achieve something similar on a *nix box or do I have to hand-roll a find/pod2html script? TIA, Dp. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: listing all the needed modules
On Wed, Feb 4, 2009 at 10:44, Octavian Rasnita wrote: > Hi, > > Does anyone know if there is a perl module that has a helper script which > finds and lists all the modules which are needed by a certain perl program? snip PAR should be able to do that for you. Take a look here http://search.cpan.org/~smueller/PAR-0.984/lib/PAR/Tutorial.pod#Dependency_Scanning -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
listing all the needed modules
Hi, Does anyone know if there is a perl module that has a helper script which finds and lists all the modules which are needed by a certain perl program? Thanks. Octavian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Slow connexion with Net::SSH::Perl
These modules are installed ... On Wed, Feb 4, 2009 at 12:47 AM, Ron Bergin wrote: > On Feb 3, 12:38 pm, jul.col...@gmail.com (Julien Collas) wrote: > > Hi everyone, > > > > I made a script using Net::SSH::Perl and I'm faced to some slow > > connexion times. > > I use rsa key to connect and it seems to be very slow, but not all the > time. > > Sometimes it's very quick ( 1sec ), sometimes not (few minutes). > > I tried to use password instead of a key, and it seems to be quicker. > > You may have an idea to help me > > Thanks > > > > I had the same problem and fixed by installing these 3 modules. > > Math::BigInt > Math::BigInt::GMP > YAML > > They should be part of the required dependencies, but they're not, or > at least they weren't when I installed it in 2007. It was a know > issue back then and this was the solution given to me in mailing list > for the module. > http://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >
Re: newbie with a question on syntax
On Tue, Feb 3, 2009 at 18:32, Dr.Ruud wrote: > Chas. Owens wrote: > >> [fat comma] >> >> it treats the thing on its left >> like a string if the thing on the left matches this pattern >> /^[-_a-zA-Z][-\w]*$/ > > I don't believe that pattern. So lets test: > > > perl -wle ' > $,=" => "; > my %h = ( -- => "x"); > print %h; > ' > syntax error at -e line 3, near "-- =>" > Execution of -e aborted due to compilation errors. > > Probably you meant the second character class to be just \w? > Even then the pattern is not right: > > > perl -wle ' > $,=" => "; > my %h = ( 1.23 => "x"); > print %h; > ' > 1.23 => x Yep, the Perl interpreter in my head is buggy again. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: output of permute() to list for sprintf
Dermot wrote: 2009/2/4 Rob Canning : hello, i am new to this list and very new to pearl. i have run into a problem i cant find a solution - i have searched the net for an answer but as i am so new to perl (and programming in general) perhaps i dont even know the right keywords... ok here it goes.. use Math::Combinatorics; my @n = qw(tomfl toml tomml tommh tomh); my @permutations = (join(" ",map { join " ", @$_ } permute(@n)),"\n"); I think if you drop the out join you will be fine: my @permutations = map { join " ", @$_ } permute(@n); Good luck, Dp. Thanks Dermot! That was it - in fact i needed each element rather than each permutation set but getting rid of the join was the key i got rid of both of them now my script is working as i would like: my @permutations = map {...@$_} permute(@n); many thanks rob c -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Slow connexion with Net::SSH::Perl
On Feb 3, 12:38 pm, jul.col...@gmail.com (Julien Collas) wrote: > Hi everyone, > > I made a script using Net::SSH::Perl and I'm faced to some slow > connexion times. > I use rsa key to connect and it seems to be very slow, but not all the time. > Sometimes it's very quick ( 1sec ), sometimes not (few minutes). > I tried to use password instead of a key, and it seems to be quicker. > You may have an idea to help me > Thanks > I had the same problem and fixed by installing these 3 modules. Math::BigInt Math::BigInt::GMP YAML They should be part of the required dependencies, but they're not, or at least they weren't when I installed it in 2007. It was a know issue back then and this was the solution given to me in mailing list for the module. http://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: newbie with a question on syntax
Chas. Owens wrote: > [fat comma] it treats the thing on its left like a string if the thing on the left matches this pattern /^[-_a-zA-Z][-\w]*$/ I don't believe that pattern. So lets test: perl -wle ' $,=" => "; my %h = ( -- => "x"); print %h; ' syntax error at -e line 3, near "-- =>" Execution of -e aborted due to compilation errors. Probably you meant the second character class to be just \w? Even then the pattern is not right: perl -wle ' $,=" => "; my %h = ( 1.23 => "x"); print %h; ' 1.23 => x -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: output of permute() to list for sprintf
2009/2/4 Rob Canning : > hello, > i am new to this list and very new to pearl. > i have run into a problem i cant find a solution - i have searched the net > for an answer but as i am so new to perl (and programming in general) > perhaps i dont even know the right keywords... > > ok here it goes.. > > use Math::Combinatorics; > > my @n = qw(tomfl toml tomml tommh tomh); > my @permutations = (join(" ",map { join " ", @$_ } permute(@n)),"\n"); I think if you drop the out join you will be fine: my @permutations = map { join " ", @$_ } permute(@n); Good luck, Dp. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
output of permute() to list for sprintf
hello, i am new to this list and very new to pearl. i have run into a problem i cant find a solution - i have searched the net for an answer but as i am so new to perl (and programming in general) perhaps i dont even know the right keywords... ok here it goes.. use Math::Combinatorics; my @n = qw(tomfl toml tomml tommh tomh); my @permutations = (join(" ",map { join " ", @$_ } permute(@n)),"\n"); ok so i use permute spews out all the combinations of @n into the array @permutations - i think i have screwed up at this point - i think its just firing it into the first index of the array as a string? what i need is an @array i can use as a list in sprintf sub InsertPitches { my ($num, $form, @notes) = @_; my ($output, @temp); while (@notes) { (@temp[0..$num-1], @notes) = @notes; $output .= sprintf $form, (@temp); } return $output; InsertPitches(15, $format, @permutations) if i hardcode @permutations it works fine: my @permutations = qw(tomfl toml tomml tommh tomh tomfl toml tomml tommh tomh etc. etc. etc.); but i need @permutations to come from permute(@n) and to be readable by sprintf in the sub InsertPitches i think its just a problem with the way i am formating this line: my @permutations = (join(" ",map { join " ", @$_ } permute(@n)),"\n"); can anyone help? many thanks rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: perl module not found.
2009/2/4 Alf Stockton : > Peter Scott wrote: > > [Wed Feb 04 10:32:36 2009] [error] [client 192.168.30.185] Can't locate > object method "CleanSlate" via package "RT::Action::SendEmail" at > /opt/rt3/bin/../lib/RT/Interface/Web/Handler.pm line 213.\n, referer: > http://general.dev.sharing.org.za/rt38 > > Please tell me what I need to fix and possibly how. There is no mystery here Alf. The message tells you exactly what the problem is. There is no method "CleanSlate" in the package "RT::Action::SendEmail'. I had a quick look at cpan and I can't find that module, although RT::Action and friends exist. Have a look at the line 213 of lib/RT/Interface/Web/Handler.pm to see what the actual code looks like. Good luck, Dp. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: perl module not found.
Peter Scott wrote: On Mon, 02 Feb 2009 13:36:20 +0200, Alf Stockton wrote: Peter Scott wrote: On Mon, 02 Feb 2009 12:26:12 +0200, Alf Stockton wrote: 2009/2/2 Alf Stockton : When trying to install an application written in perl I get the error message CSS::Squish >= 0.06...MISSING so I then attempt installing it via perl -MCPAN -e shell cpan> install CSS::Squish Are you running two different perls? Do a 'which perl' in the context of running your example above and also when you ran 'perl -MCPAN'. r...@general:~/rt-3.8.2# which perl /usr/bin/perl r...@general:~/rt-3.8.2# perl -v This is perl, v5.8.8 built for x86_64-linux-gnu-thread-multi I assume this means you used the same login for both running and installing perl. Was the CPAN install successful? You didn't say. I believe so. I have now got over the original problems I was having and believe I have the application almost working except when I attempt to connect to it via the web I get an error and see the following message in my /var/log/apache2/error.log [Wed Feb 04 10:32:36 2009] [error] [client 192.168.30.185] Can't locate object method "CleanSlate" via package "RT::Action::SendEmail" at /opt/rt3/bin/../lib/RT/Interface/Web/Handler.pm line 213.\n, referer: http://general.dev.sharing.org.za/rt38 Please tell me what I need to fix and possibly how. -- Regards, Alf Stocktonwww.stockton.co.za Must I hold a candle to my shames? -- William Shakespeare, "The Merchant of Venice" -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Slow connexion with Net::SSH::Perl
Hi, I tried to but it doesn't change anything. When I enable debug I can see that it blocks on the authentification with the key .. slony: Trying pubkey authentication with key file './vmx.key' The weird thing is that sometimes it takes less than 1sec and sometimes few minutes... I guess I wiil have to manage that with timeout. On Wed, Feb 4, 2009 at 3:45 AM, Chas. Owens wrote: > On Tue, Feb 3, 2009 at 15:38, julien collas wrote: > > Hi everyone, > > > > I made a script using Net::SSH::Perl and I'm faced to some slow connexion > > times. > > I use rsa key to connect and it seems to be very slow, but not all the > time. > > Sometimes it's very quick ( 1sec ), sometimes not (few minutes). > > I tried to use password instead of a key, and it seems to be quicker. > > You may have an idea to help me > > Thanks > > > snip > > The problem may not be in Perl. Try creating a file in the user's > .ssh directory named config and put the following lines in it. > > host * > GSSAPIAuthentication no > > > -- > Chas. Owens > wonkden.net > The most important skill a programmer can have is the ability to read. >