Re: Term::ReadLine

2018-02-26 Thread Jostein Berntsen
On 25.02.18,16:44, hw wrote: > Hi, > > how do I disable the underlining of the prompt when using Term::ReadLine > with GNU readline? > Check this: https://www.nntp.perl.org/group/perl.beginners/2009/05/msg107390.html Jostein -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For addi

Re: compute depth of word in line

2018-02-26 Thread Jostein Berntsen
On 25.02.18,18:32, hw wrote: > Hi, > > what is the best way to find out the depth of the last word within a > line? "Depth of a word" means "how many other words occur before the > last one?". > > > The background is that I want to write a CLI. The CLI shall know a > number of commands like 's

Re: Does perl v5.8.9 supports Ubuntu 64 bit?

2018-02-26 Thread Jostein Berntsen
On 26.02.18,15:16, jose cabrera wrote: > On Monday, February 26, 2018 at 4:26 AM, "Shlomi Fish" wrote... > > > Hi jose, > > Hi. > > > were the only failing tests in op/numconvert? If so, it does not seem > > serious. > > and you can use --force or --notest. That put aside, this is an old versio

Re: Newbie help

2003-07-18 Thread Jostein Berntsen
said before, I am not asking for someone to do my work just some guidiance in > the right direction. > > TIA, > > Keith Olmstead > Hi, As often is the case with Perl it's a good thing to be inspired by others good work. Check this: http://www.dienhart.com/software/PERL

Re: Perl book

2003-01-15 Thread Jostein Berntsen
Hi, I think this book is very good with many useful examples: http://www.manning.com/cross/ and this is a good one too: http://vig.prenhall.com/catalog/academic/product/1,4096,0130282510,00.html Read, code and enjoy! Jostein > I have already read Learning Perl and am looking to get another b

Re: Trailing 5 lines of a file

2002-10-28 Thread Jostein Berntsen
Hi, This example should be good for your memory: --- #!/usr/bin/perl -w open(FILE, "< yourbigfile.txt") or die $!; my @last5; while () { push @last5, $_; shift @last5 if @last5 > 5; } print @last5; Inspired by "Beginning Perl - Wrox". Regards, Jostein